Under linux and windows I am using libodbc++ (see libodbcxx.sourceforge.net
). Code quality so-so, but the interface is similar to JDBC. On *nix (and possibly Mac — don't know) as the implementation of ODBC is better to use unixODBC (see www.unixodbc.org
you can see an example of use and to find information about the PostgreSQL driver.
If you have time try to write a post on this topic.