[fpc-pascal] Re: linux: should we hard-code versioned orunversioned shared libraries in our apps?

Ludo Brands ludo.brands at free.fr
Wed Aug 15 17:30:19 CEST 2012

> So why does FCL-DB look at the unversioned *.so by default? 
> Wouldn't it make more sense to change FCL-DB to look for 
> libfbclient.so.2 instead? 2 being the latest major version of 
> Firebird DB, and that is also the latest version that 
> ibconnection.pp was written for.
Completely agreed.

The default library file can be overrided but this is all but self
explaining (and barely documented AFAIK):
- firebird: uses ibase60dyn; ... InitialiseIBase60('libraryname');
- postgres: uses postgres3dyn; ... InitialisePostgres3('libraryname');
- mysql5.1: uses mysql51dyn; ... InitialiseMysql('libraryname');
It can only be done at run-time, so no way to activate any connections in
the OI.

A libraryfilename property for the different sqldb components would be nice.


More information about the fpc-pascal mailing list