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

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Aug 15 15:59:56 CEST 2012


On 15 August 2012 14:39, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>> FCL-DB uses dynamic linking by default, and looks for the unversioned
>> shared library. So what specific Firebird version is the FCL-DB coded
>> too?
> I have no idea, which is why I also said in my first reply:

Umm, so ideally the ibconnection.pp unit should really be split into
various units with version numbers in their names. That way we will
know to which Firebird version they are referring too.

eg:   ibconnection.pp   // old interbase only (eg: Delphi 7)

Include files could probably be used to reduce some duplication of code.

> As mentioned in my previous replies, applications should never look at the
> unversioned link in the first place when dynamically loading a library.

OK, for now I'll modify my fcl-db and synapse code to look for the
versioned shared libraries that I know I have tested with. eg:

Thanks for all the help guys.

  - Graeme -

fpGUI - a cross-platform Free Pascal GUI toolkit

More information about the fpc-pascal mailing list