# Special notes for Fedora users: Change in Implicit DSO Linking In Fedora, if you want to use class UpSqlConnPgsql (to access postgresql), then you must explicitly add -lpq to the compile command. In other linux distributions, it libpq is linked automatically when needed) As is stated in Fedora Development mailing list: "The change will force explicit declaration of links rather than implicitly detecting links. More detailed info is here: https://fedoraproject.org/wiki/UnderstandingDSOLinkChange" In short you should do: g++ -o testUpPgsql examples/testUpPgsql.cc -lUpTools -lpq