So, I wrote a C++ wrapper for CTLIB, which makes it trivial to connect to, and retrieve results from, Sybase databases. An example program can be seen here. The library consists essentially of two classes: SybInt - the Sybase interface, and DTable - which stores results of queries. For details of the public API see here.
This library is released under the LGPL.