Sign in Join

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

Mailing lists / fpc-pascal / 2009-02

Re: fpc-pascal Digest, Vol 56, Issue 21

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Guillermo Martínez Jiménez

Hi.

I've tried your suggestion about the symbol stripping and had the same result. Thanks anyway.

I'll load the library manually.

Show quoted text 31 lines
From: Jonas Maebe >> Link time error, I guess. But according to your original message, >> the name >> of the library is liballeg_unshareable.a. So you would have to use -k >> liballeg_unshareable.a, not "-klalleg_unshareable.a". The linker only >> prepends "lib" if you use "-k-lalleg_unshareable.a" (note the extra >> "-"). >> And if you use it with {$l } in the source, you also need the full >> exact >> name: {$l liballeg_unshareable.a} (because you are linking like a >> regular >> object file in that case, not as a library). >> > > I've used this command line: > > fpc test.pp -Fu../lib/ -k/usr/local/lib/liballeg_unsharable.a > > Not link time error but run time error. Tried also {$l > liballeg_unsharable.a} at sources and the same: not link time error > but run time error. Maybe the problem is that the default FPC config file enables symbol stripping. So even though the routines from the library are in your program, dynamically loaded libraries won't be able to find them since the symbol names are gone. Try compiling the program with -Xs- to disable symbol stripping. Jonas

Reply by email