[fpc-pascal] Link with GCC object files
Andreas Berger
Andreas at TheBergerClan.org
Wed Aug 22 23:12:36 CEST 2018
Thank you Sven, this will be a big help
Regards,
Andreas
On 22/08/2018 12:12, Sven Barth via fpc-pascal wrote:
> Andreas <andreasberger.516 at gmail.com
> <mailto: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
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180822/fb9bfdea/attachment.html>
More information about the fpc-pascal
mailing list