Anyone done this using codeblocks?
I am just trying to get it working on Ubuntu 8.10 by:
- sudo apt-get install iodbc (to get an ODBC managaer that configures Datasource names etc)
- sudo apt-get install libmyodbc (to get the library to /usr/lib/odbc/libmyodbc.so)
Then put /usr/lib/odbc/libmyodbc.so into Link-library list of Codeblocks via Projects->Buildoptions->select Linker tab and the Add button.
The db application linked OK, but the program stopped before entry to main outputting message '/home/ken/projects/ls/bin/Debug/ls: error while loading shared libraries: libmyodbc3_r-3.51.15.so: cannot open shared object file: No such file or directory'.
The sudo apt-get install libmyodbc does not generate a file named libmyodbc3_r-3.51.15.so, so I downloaded a fairly recent ODBC .gz file from MySQL.com and installed. It contained several lib-files, one called libmyodbc3_r-3.51.27.so that I renamed to libmyodbc3_r-3.51.15.so. The program still did not go into main. The same message appeared.
I am going around in circles here, so would be grateful for hints.