[odb-users] error during linking process for hello world example with sqlite database

Teererai Marange selection989 at gmail.com
Wed Jun 24 11:52:42 EDT 2015


In attempting to get the hello world example program from the documentation
to work, I am failing to link the application using the following command
entered in terminal:

 g++ -o driver driver.o person-odb.o -L/usr/local/lib/libodb-sqlite-2.4.so
-lodb-mysql -lodb

The following error is returned by terminal:

/usr/bin/ld: cannot find -lodb-mysql
collect2: error: ld returned 1 exit status

Upon installation of libodb-sqlite-2.4, I was informed that the libraries
were located in /usr/local/lib and can confirm that the shared objects do
indeed exist there. In addition to this, I am using libodb-2.4 and am using
g++ version 4.8.



-- 
Regards,

Teererai Marange


More information about the odb-users mailing list