[fpc-pascal] A linking error when compiling with FPC 2.4.4

Marco van de Voort marcov at stack.nl
Mon Oct 31 13:13:11 CET 2011


In our previous episode, Michael Van Canneyt said:
> > finer. (-dyn and static in separate packages, so that the static one alone
> > gets the dependency. Lazarus then only depends on the dyn packages).
> 
> That would be a regular nightmare, because there are many packages that depend 
> on fcl-db, and this would split all these packages in 2 variants.
> 
> There is a good reason that apache, php, ODBC and many other large programs/
> libraries introduced dynamically loadable packages. It saves you from 
> having to recompile everything for your particular system, and thus makes
> maintenance and installation simpler.
> 
> So if anything, IMHO we should make all packages that link in external C libs 
> "dynamically loaded".

This only shifts the problem from having to say "install the static version
of the C lib" to having to say "install the relevant FPC/lazarus db package".

With one benefit (you can provide custom errormessages), and one
major disadvantage (a lot of release engineering and versioning)



More information about the fpc-pascal mailing list