Try to add -ldl to g++ flags like this:

g++ -o localVal Topic.o LinguisticDataStore.o StringUtil.o CppSQLite3.o
LocalValidator.o -L../Debug -lpthread  -lsns -lcommon -ltagger -ldl
-lboost_regex-mt -lZThread ../Debug/libsqlite3.cerod.fedo.a /usr/lib/libz.a


Pavel

On Fri, Nov 20, 2009 at 3:00 PM, Priyang Rathod <priy...@gmail.com> wrote:
> Hi,
>
> I have a novice question. The question is more related the the CEROD
> extension but I'd really appreciate any help.
>
> I am using sqlite 3.6.14.2 and the evaluation version of the CEROD
> extension for compression and encryption on Fedora Core 5. I could build
> the extended sqlite library and the command-line tool by following the
> instructions in the README. I tried the command-line tool and it works
> fine. But when I try to use the library in my project, it fails to link.
>
> FYI:
> - I included 'zlib' in the project Makefile.
> - When I use the sqlite library *without* the extension, it compiles and
> works fine.
>
> Here is the link error I get when using the sqlite+CEROD version:
>
> g++ -o localVal Topic.o LinguisticDataStore.o StringUtil.o CppSQLite3.o
> LocalValidator.o -L../Debug -lpthread  -lsns -lcommon -ltagger
> -lboost_regex-mt -lZThread ../Debug/libsqlite3.cerod.fedo.a /usr/lib/libz.a
> ../Debug/libsqlite3.cerod.fedo.a(sqlite3.o): In function
> `unixDlError':/mnt/hgfs/[...]/sqlite-3.6.14.2/sqlite3.c:25735: undefined
> reference to `dlerror'
> ../Debug/libsqlite3.cerod.fedo.a(sqlite3.o): In function
> `unixDlSym':/mnt/hgfs/[...]/sqlite-3.6.14.2/sqlite3.c:25762: undefined
> reference to `dlsym'
> ../Debug/libsqlite3.cerod.fedo.a(sqlite3.o): In function
> `unixDlClose':/mnt/hgfs/[...]/sqlite-3.6.14.2/sqlite3.c:25766: undefined
> reference to `dlclose'
> ../Debug/libsqlite3.cerod.fedo.a(sqlite3.o): In function
> `unixDlOpen':/mnt/hgfs/[...]/sqlite-3.6.14.2/sqlite3.c:25721: undefined
> reference to `dlopen'
> collect2: ld returned 1 exit status
> make: *** [localVal] Error 1
>
> I have already spent over a day trying to figure out what's going on. So
> any help would be greatly appreciated.
>
> Thanks,
> Priyang
>
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to