Thank you, You have right :) Thank's a lot :)
2012/1/28 Black, Michael (IS) <michael.bla...@ngc.com> > I don't think you want shell.c in your library. That has a "main" which > will conflict. > > You don't need it anways. > > > > Michael D. Black > > Senior Scientist > > Advanced Analytics Directorate > > Advanced GEOINT Solutions Operating Unit > > Northrop Grumman Information Systems > > ________________________________ > From: sqlite-users-boun...@sqlite.org [sqlite-users-boun...@sqlite.org] > on behalf of Robert Gdula [robert.gd...@gmail.com] > Sent: Saturday, January 28, 2012 9:46 AM > To: sqlite-users@sqlite.org > Subject: EXT :[sqlite] Problem with sqlite and codeblocks (mingw) > > Hi, I have a problem with compilation sqlite for mingw and code:blocks, > everything is ok and compilation don't show any abnormal information, but > when I try only add library of sqlite to the linker of sample wxwidgets > program it doesn't work. Everything is ok when I use normal cosole program > for C++ but when I use wxwidgets everything is wrong, program compile > without any errors and warning but don't show anything on the screen, when > I try debugging. > > It is my build log of sqlite library (everything build as a static > library): > > [ 33,3%] mingw32-gcc.exe -Wall -g -Weffc++ -w -Wextra -g > -IC:\MY_PROJECT\SQLCIPHER\lib -c C:\MY_PROJECT\sqlite\shell.c -o > obj\Debug\shell.o > cc1.exe: warning: command line option '-Weffc++' is valid for C++/ObjC++ > but not for C [enabled by default] > [ 66,7%] mingw32-gcc.exe -Wall -g -Weffc++ -w -Wextra -g > -IC:\MY_PROJECT\SQLCIPHER\lib -c C:\MY_PROJECT\sqlite\sqlite3.c -o > obj\Debug\sqlite3.o > cc1.exe: warning: command line option '-Weffc++' is valid for C++/ObjC++ > but not for C [enabled by default] > [100,0%] ar.exe -r -s libsqlite.a obj\Debug\shell.o obj\Debug\sqlite3.o > ar.exe: creating libsqlite.a > Output size is 1,28 MB > > The sam build log for my sample wxwidgets_app: > > -------------- Build: Debug in Wx_test_sql --------------- > > [ 20,0%] mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ > -DwxUSE_UNICODE -Wno-attributes -Winvalid-pch -include wx_pch.h > -DWX_PRECOMP -Wall -g -D__WXDEBUG__ -Weffc++ -w -Wextra -g > -IC:\wxWidgets-2.8.12\include -IC:\wxWidgets-2.8.12\contrib\include > -IC:\wxWidgets-2.8.12\lib\gcc_lib\mswud -c > C:\MY_PROJECT\Wx_test_sql\wx_pch.h -o wx_pch.h.gch\Debug_wx_pch_h_gch > [ 40,0%] mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ > -DwxUSE_UNICODE -Wno-attributes -Winvalid-pch -include wx_pch.h > -DWX_PRECOMP -Wall -g -D__WXDEBUG__ -Weffc++ -w -Wextra -g > -IC:\wxWidgets-2.8.12\include -IC:\wxWidgets-2.8.12\contrib\include > -IC:\wxWidgets-2.8.12\lib\gcc_lib\mswud -c > C:\MY_PROJECT\Wx_test_sql\Wx_test_sqlApp.cpp -o obj\Debug\Wx_test_sqlApp.o > [ 60,0%] windres.exe -IC:\wxWidgets-2.8.12\include > -IC:\wxWidgets-2.8.12\lib\gcc_lib\mswud -J rc -O coff -i > C:\MY_PRO~1\WX_TES~3\resource.rc -o obj\Debug\resource.res > [ 80,0%] mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ > -DwxUSE_UNICODE -Wno-attributes -Winvalid-pch -include wx_pch.h > -DWX_PRECOMP -Wall -g -D__WXDEBUG__ -Weffc++ -w -Wextra -g > -IC:\wxWidgets-2.8.12\include -IC:\wxWidgets-2.8.12\contrib\include > -IC:\wxWidgets-2.8.12\lib\gcc_lib\mswud -c > C:\MY_PROJECT\Wx_test_sql\Wx_test_sqlMain.cpp -o > obj\Debug\Wx_test_sqlMain.o > [100,0%] mingw32-g++.exe -LC:\wxWidgets-2.8.12\lib\gcc_lib -o > bin\Debug\Wx_test_sql.exe obj\Debug\Wx_test_sqlApp.o > obj\Debug\Wx_test_sqlMain.o obj\Debug\resource.res -mthreads > -lwxmsw28ud_richtext -lwxmsw28ud_xrc -lwxmsw28ud_aui -lwxmsw28ud_media > -lwxbase28ud_net -lwxbase28ud_xml -lwxmsw28ud_adv -lwxmsw28ud_html > -lwxmsw28ud_core -lwxbase28ud -lwxpngd -lwxjpegd -lwxtiffd -lwxzlibd > -lwxregexud -lwxexpatd ..\sqlite\libsqlite.a -lkernel32 -luser32 -lgdi32 > -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid > -lcomctl32 -lwsock32 -lodbc32 -mwindows > Output size is 31,03 MB > Process terminated with status 0 (0 minutes, 14 seconds) > 0 errors, 0 warnings (0 minutes, 14 seconds) > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users