Sign in Join

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

Mailing lists / fpc-pascal / 2011-07

library questions

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Rainer Stratmann

When compiling a library 'abc.so' in Linux and then include it with linklib in a program there is a link error at the end of the compile process.

I tried to move the library to /usr/lib with no effect. Then change the name to 'libabc.so', also no effect.

Does it work when the library is in the same directory like the program? Or must it be in the /usr/lib directory?

best regards, Rainer

Reply by email

Rainer Stratmann
to leledumbo
leledumbo wrote
{$linklib xxx} would link libxxx.so so you already do it right. The problem might be in your code then. What's the linker error?

A general error written in the output window of lazarus. Is it possible to get an individual error from the linker? I got it work now with unit dynlibs, thanks.

Reply by email