Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. //this function queries the database and then probably will set the db_vars to them
  2. //** but furst lets see how to make a database query **//
  3. void disassembled_preparation::query_db() {
  4. Driver *driver;
  5. Connection *connect;
  6. Statement *statement;
  7. ResultSet *results;
  8.  
  9. driver = mysql::get_driver_instance();
  10.  
  11. }
  12.  
  13. and i am linking with
  14.  
  15. -l mysqlcppconn
  16.  
  17.  
  18. error
  19.  
  20. In function `disassembled_preparation::query_db()':
  21. disassembled_preparation.cpp:(.text+0x7b3): undefined reference to `sql::mysql::get_driver_instance()'
  22. collect2: error: ld returned 1 exit status
  23. make: *** [exec] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement