Hi Eli,

what's missing here:

[EMAIL PROTECTED]:~/sqlite/sqltest> g++ -L/usr/local/lib -o test sqliteTest.cpp

is the library to link against. Try g++ -L/usr/local/lib -o test sqliteTest.cpp -lsqlite or (as /usr/local/lib is usually in the library search path anyway) g++ -o test sqliteTest.cpp -lsqlite

The ldconfig stuff is only for the so-called dynamic linker to find the
library at run time. It has no effect at link time.

/eno

Yet another note: you are naming your binary "test". So don't forget to
call it with full or relative path (e.g. "./test"), as there is a UNIX
"test" command which would be called by default when running "test".
When I did that for the first time it took me hours to figure that out ;-)



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to