[fpc-pascal] Using C functions

Andrew Haines AndrewD207 at aol.com
Sun Nov 22 17:59:40 CET 2009


Ivo Steinmann wrote:
>>>   
>> Thanks, I thought so.
>>
>> I am considering to write a C library (cdecl) to wrap the calls to the
>> C library(fastcall), but it doesn't feel right.
>> ------------------------------------------------------------------------
>>

You can compile your c wrapper and link the .o file directly in your
pascal unit so that a .so is not needed at runtime.

{$link my_c_wrapper.o}

Regards,

Andrew



More information about the fpc-pascal mailing list