[fpc-pascal] Link with GCC object files

Sven Barth pascaldragon at googlemail.com
Wed Aug 22 17:12:06 CEST 2018


Andreas <andreasberger.516 at gmail.com> schrieb am Mi., 22. Aug. 2018, 12:59:

> 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

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180822/48842adb/attachment.html>


More information about the fpc-pascal mailing list