[fpc-pascal] Is it possible to link to SO libraries that have filename ending like '.so.0'

Marco van de Voort marcov at stack.nl
Wed Jan 5 17:53:08 CET 2005

> > fixed in newer FPC versions ? Or maybe it's all already working, but I
> > have to pass some command-line parameter to FPC or use some {$...}
> > preprocessor directive to make it work ?
> It is not possible for the compiler to detect if you want to link to a
> specific version or to the generic .so file. If you specify a complete
> filename then you must also pass the correct path where the file is
> located (In most cases /usr/lib) otherwise the linker can't find it. That
> means that the compiler needs to search for the file. This is not
> implemented.

I wouldn't advise this anyway (to put this in the compiler. Better use an
installer (script or bin) to search stuff like this, and make the symlink if

There are simply too many naming conventions, directories etc to do this
right, and upfront in a FPC release that must be good for at least a year.

Moreover it makes shipping binary libraries near impossible. (which is why
the generic one must exist always anyway)

More information about the fpc-pascal mailing list