[sqlite] Library Linking Issues on Ubuntu

2009-04-02 Thread centipede moto
> >#include > >#include > >#include > >#include > >#include > > > >int main() > >{ > >// create the database > >sqlite3 *db; > >int rc; > > > >rc = sqlite3_open("cmx.db", &db); > >} > > This code will not create a database file, because there is > no schema to store. > You ha

Re: [sqlite] Library Linking Issues on Ubuntu

2009-04-02 Thread Kees Nuyt
On Thu, 2 Apr 2009 00:20:15 -0700, centipede moto wrote: >g++ -Wall cmxmc.cpp -lsqlite3 -o cmxmc I won't comment on your compile / link problems, I'm not familiar with Ubuntu and g++. I hope you read the documentation and FAQ on the SQLite site. >Here is my app code: > >#include >#include >#i

Re: [sqlite] Library Linking Issues on Ubuntu

2009-04-02 Thread Mihai Limbasan
Have you also installed the corresponding development package? Don't know its name, but typically if you install a package named abcdefgh, its devel package is named abcdefgh-devel. On 04/02/2009 10:20 AM, centipede moto wrote: > I keep getting: > > undefined reference to `sqlite3_open' > > Erro

[sqlite] Library Linking Issues on Ubuntu

2009-04-02 Thread centipede moto
I keep getting: undefined reference to `sqlite3_open' Errors. I have seen forum posts etc on this but none of the suggestions are helping. I've tried including the sqlite3.c file in my compile but I get tons of errors and it won't build. I've tried adding -lsqlite3 to my compile code, then I