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

Alexandre Pretyman alexandre.pretyman at gmail.com
Wed Jun 24 14:04:27 EDT 2015


You seem to be missing the argument to tell the linker to actually
look in /usr/local/lib:
-L/usr/local/lib -lodb-mysql

For more information, you can follow this link: http://bfy.tw/V1d =)

On 24 June 2015 at 11:52, Teererai Marange <selection989 at gmail.com> wrote:

> 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
>



-- 
Alexandre Pretyman


More information about the odb-users mailing list