On 21/01/2012 1:46 PM, Bruce Steele wrote:
I suspect this is a very basic question that is answered somewhere but I have
done lots of searches and have been able to find a good answer.
I am trying to compile a C program using Sqlite3 APIs.
the program contains an include sqlite3.h line.
I am using mingw (GCC) compiler on a Win7 PC.
What I am looking for is the correct Command line including all the correct
switches and in the correct order.
I use cygwin on win7, but this should do (works for me): gcc your-prog.c
-lsqlite3
Naturally, you probably want to add some flags like '-g -Wall' but
that's orthogonal.
I either get the WinMain16 linker error or file not found error with all the
compile commands I have tried.
That means you don't define a main() function in (any of) your
source(s), which has nothing to do with sqlite. You might try a general
programming help list if that's your "main" problem.
Hint: posting small snippets of code that show the problem, and the
resulting error messages, helps folks help you.
Ryan
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users