logo       

Help with MySQL C++ API: msg#00035

db.mysql.c++

Subject: Help with MySQL C++ API

Hello all,

I am attempting to use the C++ API, however, I receive very interesting
errors when I compile my project. I do have referenced the mysqlcppapi
header files (#include mysqlcppap/mysqlcppapi.h), however, the compiler
(g++) is telling me that the variables are unreferenced (Connection,
Query, etc) and cannot be found. Any advise on what I should try next?

Note: The install was successful and the examples (simple1.cc,
complic1.cc, etc) do appear to work. However, when I create database class
that is a wrapper around the MySQL C++ API, this is where the errors are
generated (I'm attempting at exposing just a few functions via one class
instead of sprinkling database connection code throughout my app).

Thanks,
Mark
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise