Hi guys,

first thank you a lot for the great SQLite database. 

I just want to introduce my work:

At the moment I write a little cgi library with C++. The 
following thins work fine:

- parse GET/POST (Query String)
- (un)set cookies
- file functions
- string functions
- html output optimation
- a little template system
- a search engine class

Now I want to include some SQLite functions. I started with this 
[1] piece of code. I added the following includes:

#include <cstdlib> // for the exit() function which is used by 
the example
#include <stdio.h> // for the basic in/output stuff

I downloaded this [2] and put it into /usr/lib/sqlite
I compiled my programm with this:

$ gcc sqltest.cpp -I/usr/lib/sqlite

and got the following result:

##############################################################
linux:/home/christian/Desktop # gcc sqltest.cpp -I/usr/lib/sqlite
/tmp/ccsdAdPd.o(.text+0xda): In function `main':
: undefined reference to `sqlite_open'
/tmp/ccsdAdPd.o(.text+0x127): In function `main':
: undefined reference to `sqlite_exec'
/tmp/ccsdAdPd.o(.text+0x157): In function `main':
: undefined reference to `sqlite_close'
/tmp/ccsdAdPd.o(.eh_frame+0x11): undefined reference to 
`__gxx_personality_v0'
collect2: ld returned 1 exit status
linux:/home/christian/Desktop #
##############################################################

Whats wrong?

Thanks - Christian

[1] http://sqlite.org/quickstart.html (the C programm)
[2] http://sqlite.org/sqlite_source.zip

-- 
Linux is like a wigwam - no gates, no windows and an apache 
inside.


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

Reply via email to