Hi,
Q:”What is the Best way to access database with C++ in linux ?”
I wanted to access Database from C++ in Linux.
I am currently using :
libpqxx of PostgreSQL under c++ (gcc).
but i wanted to use:
unixODBC/iODBC with any database..
but then i have to use some c++ database library like :
DATABASE template library (DTL)
http://dtemplatelib.sourceforge.net/dtl_introduction.htm
or
libODBC++/FreeODBC++
http://orcane.net/freeodbc++/
DTL is too complicated to use and documented poorly !!
and libODBC++ doesn’t compile properly
and it’s interface also looks complicated and poorly documented..
libpqxx of PostgreSQL works great ! …
but i am kinda limited to one database platform…
Please advice me , if you know any better solution.
Thanks for your time .