Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //this function queries the database and then probably will set the db_vars to them
- //** but furst lets see how to make a database query **//
- void disassembled_preparation::query_db() {
- Driver *driver;
- Connection *connect;
- Statement *statement;
- ResultSet *results;
- driver = mysql::get_driver_instance();
- }
- and i am linking with
- -l mysqlcppconn
- error
- In function `disassembled_preparation::query_db()':
- disassembled_preparation.cpp:(.text+0x7b3): undefined reference to `sql::mysql::get_driver_instance()'
- collect2: error: ld returned 1 exit status
- make: *** [exec] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement