Tuesday, September 21, 2004, 6:04:53 AM, Peter wrote: > Hello all, I've been using MinGW to compile SQLite for > over a year already and encountered a problem I've never > seen before when trying to compile SQLite 3.0.7.
There is a problem in the Makefile in 3.0.7, fixed in CVS yesterday. Windows build doesn't need pthread library at all. Just change LIBPTHREAD=-lpthread to LIBPTHREAD= e > The error message is as follows: > $ mingw32-make > ./libtool --mode=link gcc -g -O2 -DOS_WIN=1 -I. -I../src -DNDEBUG > -DHAVE_READLINE=1 -I/mingw/include/readline -lpthread \ > -o sqlite3 ../src/shell.c libsqlite3.la -lreadline > gcc -g -O2 -DOS_WIN=1 -I. -I../src -DNDEBUG -DHAVE_READLINE=1 > -I/mingw/include/readline -o sqlite3 ../src/shell.c > ./.libs/libsqlite3.a -lpthread -lreadline > c:\msys\mingw\bin\..\lib\gcc\mingw32\3.4.1\..\..\..\..\mingw32\bin\ld.exe: cannot > find -lpthread > collect2: ld returned 1 exit status > c:\msys\mingw\bin\mingw32-make.exe: *** [sqlite3.exe] Error 1