Re: [sqlite] Trying to build a static library
On Nov 17, 2007 12:07 PM, A.J.Millan <[EMAIL PROTECTED]> wrote: > > sources/where.c: In function `int whereClauseInsert(WhereClause*, Expr*, > int)': > sources/where.c:231: error: invalid conversion from `void*' to `WhereTerm*' > My first guess is you are trying to compile it as C++. Otherwise I see no reason for that to fail. -- Cory Nelson - To unsubscribe, send email to [EMAIL PROTECTED] -
Re: [sqlite] Trying to build a static library
I use gcc for compiling Sqlite for both Windows and Linux and others. On Windoze I use Dev-Cpp as and IDE over the top of Mingw. You might look at the compiler options and ensure that you are just specifying plain vanilla ANSI C. A.J.Millan wrote: John: Thanks for your feedback, but the question is: are you compiling gcc in Linux or in Windows-32 with minGW? The problem is that I'm using the GNU gcc compiler under Windows (minGW), trying to build a static library as a C (not C++) project, and get a lot of compiler error. All related to type conversion. As an example here is the first: sources/where.c: In function `int whereClauseInsert(WhereClause*, Expr*, int)': sources/where.c:231: error: invalid conversion from `void*' to `WhereTerm*' Perhaps I'm missing some compiler option, but by the moment the system work pretty well compiling projects in both C and C++ using that platform. Some idea? I use static libraries and gcc. Just use --enable-static and you should get the link library created. A.J.Millan wrote: Hi all: Instead the supplied DLL, I would like to statically link the SQLite library in a new project, and I wonder if someone has build a SQLite static library xxx.a using minGW in Windows and the sources/headers contanied in the sqlite-source-3_5_2.zip Any tips on that are welcome. - To unsubscribe, send email to [EMAIL PROTECTED] - - To unsubscribe, send email to [EMAIL PROTECTED] -
Re: [sqlite] Trying to build a static library
John: Thanks for your feedback, but the question is: are you compiling gcc in Linux or in Windows-32 with minGW? The problem is that I'm using the GNU gcc compiler under Windows (minGW), trying to build a static library as a C (not C++) project, and get a lot of compiler error. All related to type conversion. As an example here is the first: sources/where.c: In function `int whereClauseInsert(WhereClause*, Expr*, int)': sources/where.c:231: error: invalid conversion from `void*' to `WhereTerm*' Perhaps I'm missing some compiler option, but by the moment the system work pretty well compiling projects in both C and C++ using that platform. Some idea? I use static libraries and gcc. Just use --enable-static and you should get the link library created. A.J.Millan wrote: Hi all: Instead the supplied DLL, I would like to statically link the SQLite library in a new project, and I wonder if someone has build a SQLite static library xxx.a using minGW in Windows and the sources/headers contanied in the sqlite-source-3_5_2.zip Any tips on that are welcome. - To unsubscribe, send email to [EMAIL PROTECTED] -
Re: [sqlite] Trying to build a static library
I use static libraries and gcc. Just use --enable-static and you should get the link library created. A.J.Millan wrote: Hi all: Instead the supplied DLL, I would like to statically link the SQLite library in a new project, and I wonder if someone has build a SQLite static library xxx.a using minGW in Windows and the sources/headers contanied in the sqlite-source-3_5_2.zip Any tips on that are welcome. A.J.Millan - To unsubscribe, send email to [EMAIL PROTECTED] - - To unsubscribe, send email to [EMAIL PROTECTED] -
[sqlite] Trying to build a static library
Hi all: Instead the supplied DLL, I would like to statically link the SQLite library in a new project, and I wonder if someone has build a SQLite static library xxx.a using minGW in Windows and the sources/headers contanied in the sqlite-source-3_5_2.zip Any tips on that are welcome. A.J.Millan - To unsubscribe, send email to [EMAIL PROTECTED] -