[haXe] DEFINE_ENTRY_POINT
Nicolas Cannasse
ncannasse at motion-twin.com
Tue Feb 27 14:16:41 CET 2007
> Hey Nicolas,
>
> I've looked more into this, and it appears that, if the function I'm
> passing varies in declaration by even the slightest. ie
>
> extern void main( void );
>
> instead of
>
> extern "C" void main( void );
>
> then it complains. Therefore, what does the DEFINE_ENTRY_POINT link the
> entry function as? If the library I'm wrapping forces extern of a
> different signature, can I easily force this in the neko definition?
Uhm... this is because you are using C++ (.cpp extension) I guess ?
Try using .c extension, since I don't think you're using classes.
Nicolas
More information about the Haxe
mailing list