Hola!

I've just installed soci but I'm unable to make it work.

$ cat a.cpp
#include <soci/soci.h>

main()
{
        soci::session dbh("sqlite3://a.sq3");
}

$ g++ a.cpp -lsoci_core-gcc-3_0

$ ./a.out
terminate called after throwing an instance of 'soci::soci_error'
  what():  Failed to find shared library for backend sqlite3
Aborted

$ strace ./a.out 2>&1 | grep sqli
open("./libsoci_sqlite3.so", O_RDONLY)  = -1 ENOENT (No such file or directory)
write(2, "Failed to find shared library fo"..., 49Failed to find shared library 
for backend sqlite3) = 49


The library it should be loading is at /usr/local/lib/libsoci_sqlite3-gcc-3_0.so

This happens using debian packages or building myself from git
repository (following SJ Henriksen instructions from
http://sourceforge.net/mailarchive/message.php?msg_id=8be61fe01002120359o429ed07yb6096ad9439c6004%40mail.gmail.com,
i understand that cmake is the preferred way to build soci now, but
don't know how to do that)

What am I doing wrong?

Thanks!
-- 
Horacio J. Peña
[email protected]
[email protected]

------------------------------------------------------------------------------

_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to