[fpc-pascal] Re: Problems linking C library on Linux (*.so & *.a files)

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Feb 13 14:20:07 CET 2009

On 13 Feb 2009, at 13:44, Guillermo Martínez Jiménez wrote:

>> From: Jonas Maebe
>> 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.
> That's a good tip. That's logic, because I don't use that symbol  
> directly.

You're referring to smart linking. Indeed, smart linking should also  
be disabled (use -XS to force regular static linking)


More information about the fpc-pascal mailing list