[fpc-pascal] trying to use C code in .pas on WIN32
Jonas Maebe
jonas at freepascal.org
Mon Jan 28 21:27:53 CET 2019
On 28/01/19 16:19, conlin664 via fpc-pascal wrote:
> when I don't try and call the C routine the number of unresolved objects is
> only 213
>
> compiler switches:
>
> -TWin32 -va -Mfpc -vw -Sg -Ci -O1 -Cp386 -OpPENTIUM3 -Ratt -gl -p- -b-
>
> I had -XS in there, but it doesn't seem to change anything.
>
> So I'm just looking to static link external C code to a pascal program on a
> windows machine
https://svn.freepascal.org/svn/fpc/trunk/tests/test/cg/tcalext.pp links
ctest.o from
https://svn.freepascal.org/svn/fpc/trunk/tests/test/cg/obj/win32/i386/,
which was compiled from
https://svn.freepascal.org/svn/fpc/trunk/tests/test/cg/obj/ctest.c
Jonas
More information about the fpc-pascal
mailing list