[Spread-users] compile spread toolkit c++
John Schultz
jschultz at spreadconcepts.com
Thu Apr 4 21:58:57 EDT 2013
It looks like the function that you are passing into E_attach_fd has the wrong type and C++ is more picky about types.
Change your function to have the signature:
void my_callback_fcn(int fd, int code, void *arg);
Cheers!
-----
John Lane Schultz
Spread Concepts LLC
Phn: 301 830 8100
Cell: 443 838 2200
On Apr 4, 2013, at 9:25 PM, Fermín Suárez Mendoza wrote:
How about someone show me what should I do to successfully compile Qt4 user.c example, because copying the code as it is I have the problem that I can not activate the E_attach_fd to receive automatic messages.
In if I see that the problem is with maintaining defined _REENTRANT up unlike running compile in c becomes undefined.
If anyone knows that flags or amending the code to work would be helpful.
Note: The sample code compiles fine, in fact I did a test user.c copying the file changing the extension to compile cpp and try to get the error but the extension has no problem c
invalid conversion from 'int (*) ()' to 'void (*) (int, int, void *)' [-fpermissive]
Sorry for my English, but is translated by google, but I'm good at reading hehehehe ...
_______________________________________________
Spread-users mailing list
Spread-users at lists.spread.org
http://lists.spread.org/mailman/listinfo/spread-users
More information about the Spread-users
mailing list