I am trying to find out whether or not to use an underscore prefix when declaring external C
functions in FPC using 'external name xxx'. It looks like on Windows the underscore is not needed,
whereas on Mac OS X the underscore is required, even when on both platforms 'nm' reveals that the
to-be-linked-in C library has an underscore before the C function names.
Note that the Mac OS X Pascal (Carbon) Interfaces for fpc use the underscore, whereas the same
Pascal Interfaces for gpc don't.
Is this just a mess or do I miss the true logic behind it ?
Regards,
Adriaan van Os
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal