Re: [sqlite] Linking libsqlite statically

2005-08-16 Thread Clay Dowling
D. Kettler said: > When I add the -static flag to my g++ command it gives me 'undefined > reference to' errors for every instance where I attempt to use a sqlite > function. > > This is on a Debian (testing) system and yes I have both libsqlite3 and > libsqlite3-dev installed. There are libsqlit

Re: [sqlite] Linking libsqlite statically

2005-08-15 Thread D. Kettler
On Mon, 15 Aug 2005, Curtis King wrote: On 15-Aug-05, at 7:12 PM, D. Kettler wrote: g++ -o kumacgen kumacgen.cpp /usr/lib/libsqlite3.a add -lpthread to your link line. ck Thank you! I should have thought of that, d'oh. Anyway, it works now. -- David Kettler [EMAIL PROTECTED]

Re: [sqlite] Linking libsqlite statically

2005-08-15 Thread Curtis King
On 15-Aug-05, at 7:12 PM, D. Kettler wrote: g++ -o kumacgen kumacgen.cpp /usr/lib/libsqlite3.a add -lpthread to your link line. ck

RE: [sqlite] Linking libsqlite statically

2005-08-15 Thread D. Kettler
On Tue, 16 Aug 2005, Ulrik Petersen wrote: Hi, There are libsqlite3.a, libsqlite3.la, and libsqlite3.so files in /usr/lib/ Could you show us the exact command line you are trying to use when running g++ ? I'm especially interested in the version where you give the /usr/lib/libsqlite3.a full

Re: [sqlite] Linking libsqlite statically

2005-08-15 Thread Curtis King
On 15-Aug-05, at 5:39 PM, D. Kettler wrote: Project? DLL? Visual Studio? I said I was using Linux and g++ just link with full path to libsqlite3.a example: gcc -o foo foo.o /usr/local/lib/libsqlite3.a man gcc ck

RE: [sqlite] Linking libsqlite statically

2005-08-15 Thread Aaron Schneider
ooked and confirmed that sqlite3.h doesn't seem to have those values defined. -Original Message- From: D. Kettler [mailto:[EMAIL PROTECTED] Sent: Monday, August 15, 2005 5:37 PM To: sqlite-users@sqlite.org Subject: RE: [sqlite] Linking libsqlite statically On Mon, 15 Aug 2005, Aaron

RE: [sqlite] Linking libsqlite statically

2005-08-15 Thread Ulrik Petersen
Hi, > There are libsqlite3.a, libsqlite3.la, and libsqlite3.so files > in /usr/lib/ Could you show us the exact command line you are trying to use when running g++ ? I'm especially interested in the version where you give the /usr/lib/libsqlite3.a fully qualified filename on the commandline. Yo

RE: [sqlite] Linking libsqlite statically

2005-08-15 Thread D. Kettler
On Mon, 15 Aug 2005, Aaron Schneider wrote: If you compile and use the header files from the projects, they will add a __declspec(dllimport) to the beginning of the files. In Visual Studio, this changes the symbol defs, so functions used in your linked code will not work. To fix it, just

RE: [sqlite] Linking libsqlite statically

2005-08-15 Thread Aaron Schneider
>> If you compile and use the header files from the projects, they will >> add a __declspec(dllimport) to the beginning of the files. In Visual >> Studio, this changes the symbol defs, so functions used in your linked >> code will not work. >> >> To fix it, just change the "#define SQLITE_EXPOR

RE: [sqlite] Linking libsqlite statically

2005-08-15 Thread D. Kettler
On Mon, 15 Aug 2005, Aaron Schneider wrote: If you compile and use the header files from the projects, they will add a __declspec(dllimport) to the beginning of the files. In Visual Studio, this changes the symbol defs, so functions used in your linked code will not work. To fix it, just chang

RE: [sqlite] Linking libsqlite statically

2005-08-15 Thread Aaron Schneider
>When I add the -static flag to my g++ command it gives me 'undefined >reference to' errors for every instance where I attempt to use a sqlite >function. If you compile and use the header files from the projects, they will add a __declspec(dllimport) to the beginning of the files. In Visual Stu