[fpc-pascal] Help needed with interfacing to C-object-files.
Marc Santhoff
M.Santhoff at t-online.de
Mon Mar 7 23:54:22 CET 2005
Am Mo, den 07.03.2005 schrieb Koenraad Lelong um 22:36:
> Hi,
> I'm trying to make an interface to a kind of library, but I'm stuck. Any
> pointers are welcome.
> There is a C-header file, but this is common for a number of C-modules.
> If I translate (h2pas) this file, and use it, the linker tries to find
> an o-file, which does not exist. Any suggestions how to handle this ?
You've got to compile the C files to .o (gcc -c thesource.c) and then
link them into your pascal unit ({$L thesource.o}). This way it should
work, I'm using some C stuff like that.
HTH,
Marc
More information about the fpc-pascal
mailing list