Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2021-12

Creating a shared library (Linux)

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Rainer Stratmann
to Rainer Stratmann

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:

Show quoted text 19 lines
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 - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply by email