[fpc-pascal] Creating a shared library (Linux)
Rainer Stratmann
rainerstratmann at t-online.de
Wed Dec 29 00:54:48 CET 2021
Ok.
'lib' is placed in front of the output file and '.so' afterwards.
So the library is "libmylib.so"
And "nm -D libmylib.so" works now.
But it is confusing, because it is nowhere explained in the compiler.
[x] Konventionen anwenden
[x] use conventions
In the Project settings -> path window could be better explained.
Am Dienstag, 28. Dezember 2021, 13:10:56 CET schrieb Rainer Stratmann via fpc-
pascal:
> https://www.freepascal.org/docs-html/prog/progse55.html
>
> When analysing the mylib.o output file under Linux with
>
> nm -D mylib.o
>
> the answer is: no symbols.
>
> I have an export section in the library and in the past it worked already,
> but I did not remember exactly how.
>
> How can I get a shared library?
> What compiler switches do I have to set?
>
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list