[haXe] DEFINE_ENTRY_POINT

Lee McColl Sylvester lee at designrealm.co.uk
Tue Feb 27 11:04:27 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?

Thanks,
Lee





Lee McColl Sylvester wrote:
> Hi list,
>
> How should DEFINE_ENTRY_POINT be used?  I've tried DEFINE_ENTRY_POINT( 
> myentry ), but I get:
>
> error C2732: linkage specification contradicts earlier specification 
> for 'myentry'
>
> Anyone else have this issue?
>
> Thanks,
> Lee
>
>
>




More information about the Haxe mailing list