Discussion:
[fpc-pascal] Link with GCC object files
Andreas
2018-08-22 10:58:23 UTC
Permalink
Hi, I have a question. Is it possible to link FPC for Linux (PC and ARM)
with GCC or other C++ object files?

Regards,
Andreas Berger


_______________________________________________
fpc-pascal maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/
Sven Barth via fpc-pascal
2018-08-22 15:12:06 UTC
Permalink
Post by Andreas
Hi, I have a question. Is it possible to link FPC for Linux (PC and ARM)
with GCC or other C++ object files?
You can use the $L directive for this (
https://freepascal.org/docs-html/current/prog/progsu43.html#x50-490001.2.43
).
If you use C++ it's recommended to use "extern "C"" however even though FPC
supports cppdecl (as it can't handle all cases currently). And classes
won't work either.

Regards,
Sven
Andreas Berger
2018-08-22 21:12:36 UTC
Permalink
Thank you Sven, this will be a big help

Regards,
Andreas
Post by Andreas
Hi, I have a question. Is it possible to link FPC for Linux (PC and ARM)
with GCC or other C++ object files?
You can use the $L directive for this (
https://freepascal.org/docs-html/current/prog/progsu43.html#x50-490001.2.43
).
If you use C++ it's recommended to use "extern "C"" however even
though FPC supports cppdecl (as it can't handle all cases currently).
And classes won't work either.
Regards,
Sven
_______________________________________________
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Loading...