-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hope someone can help me. Thanks in advance!
I have followed the build instructions from the main site, and everything
seems OK. The 'make test' works fine. No errors.
I then run 'make install'. That seems to go OK. Then I run 'libtool --finish
/usr/local/lib'. The libraries appear in /usr/local/lib, which is also in my
/etc/ld.so.conf file. In addition, my LD_LIBRARY_PATH contains /usr/local/lib.
But when I try to compile a simple test, I get a linker complaint about
undefined references to `sqlite_open' and 'sqlite_close'.
Here is the output from installation onward:
pandora:/home/eli/sqlite/bld-2.8.13 # make install
/usr/bin/install -c -d //usr/local/lib
./libtool --mode=install /usr/bin/install -c libsqlite.la //usr/local/lib
/usr/bin/install -c .libs/libsqlite.so.0.8.6 //usr/local/lib/
libsqlite.so.0.8.6
(cd //usr/local/lib && rm -f libsqlite.so.0 && ln -s libsqlite.so.0.8.6
libsqlite.so.0)
(cd //usr/local/lib && rm -f libsqlite.so && ln -s libsqlite.so.0.8.6
libsqlite.so)
/usr/bin/install -c .libs/libsqlite.lai //usr/local/lib/libsqlite.la
/usr/bin/install -c .libs/libsqlite.a //usr/local/lib/libsqlite.a
ranlib //usr/local/lib/libsqlite.a
chmod 644 //usr/local/lib/libsqlite.a
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
/usr/bin/install -c -d //usr/local/bin
./libtool --mode=install /usr/bin/install -c sqlite //usr/local/bin
/usr/bin/install -c .libs/sqlite //usr/local/bin/sqlite
/usr/bin/install -c -d //usr/local/include
/usr/bin/install -c -m 0644 sqlite.h //usr/local/include
/usr/bin/install -c -d //usr/local/lib/pkgconfig;
/usr/bin/install -c -m 0644 sqlite.pc //usr/local/lib/pkgconfig;
pandora:/home/eli/sqlite/bld-2.8.13 #
pandora:/home/eli/sqlite/bld-2.8.13 # libtool --finish /usr/local/lib
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
- ----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
- ----------------------------------------------------------------------
pandora:/home/eli/sqlite/bld-2.8.13 #
[EMAIL PROTECTED]:~/sqlite/sqltest> g++ -L/usr/local/lib -o test sqliteTest.cpp
/tmp/ccjQcUbV.o(.text+0x1e): In function `main':
: undefined reference to `sqlite_open'
/tmp/ccjQcUbV.o(.text+0x2f): In function `main':
: undefined reference to `sqlite_close'
collect2: ld returned 1 exit status
[EMAIL PROTECTED]:~/sqlite/sqltest>
Thanks for any help,
Eli
- --
"Liberty means responsibility. That is why most men dread it"
- George Bernard Shaw
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQFAaE5Lucd29Sgpe1wRAhaOAKDPgsHG18X30BSadKqWGsycQQq1RACeKFLH
4nHtQnb6N0STNB47teOMx2g=
=dNJq
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]