User forums > General (but related to Code::Blocks)

Codeblocks wxwidgets + sqlite

(1/3) > >>

woser:
Hi, I've build wxwidgets static library (2.8.12) and works ok, and now I compile sqlite, and I try sqlcipher too, Everyone works ok when I use console project but when I create Project of wxwidgets application and when I connect library sqlite to codeblocks, program don't run, can anybody help me, everyone library was compiled static ?

compiled example :  http://dl.dropbox.com/u/26886994/Release.zip

stahta01:
I suggest reading all the FAQs
http://wiki.codeblocks.org/index.php?title=FAQ

Then either post a Code::Blocks/wxSmith question; or, then on Full Compiler logging and post your question in the wxForum. http://forums.wxwidgets.org/

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Tim S.

woser:

--- Code: ----------------- Clean: Release in wx_test4 ---------------

Cleaned "wx_test4 - Release"

-------------- Build: Release in wx_test4 ---------------

mingw32-g++.exe -Wall -pipe -Wno-attributes -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -DWX_PRECOMP  -O2    -IC:\wxWidgets-2.8.12\include -IC:\wxWidgets-2.8.12\contrib\include -IC:\wxWidgets-2.8.12\lib\gcc_lib\mswu  -c C:\MY_PROJECT\wx_test4\wx_pch.h -o wx_pch.h.gch\Release_wx_pch_h_gch
cc1plus.exe: warning: C:\MY_PROJECT\wx_test4\wx_pch.h.gch/Debug_wx_pch_h_gch: created and used with differing settings of '-maccumulate-outgoing-args'
cc1plus.exe: warning: ./wx_pch.h.gch/Debug_wx_pch_h_gch: created and used with differing settings of '-mthreads'
mingw32-g++.exe -Wall -pipe -Wno-attributes -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -DWX_PRECOMP  -O2    -IC:\wxWidgets-2.8.12\include -IC:\wxWidgets-2.8.12\contrib\include -IC:\wxWidgets-2.8.12\lib\gcc_lib\mswu  -c C:\MY_PROJECT\wx_test4\wx_test4App.cpp -o obj\Release\wx_test4App.o
cc1plus.exe: warning: ./wx_pch.h.gch/Debug_wx_pch_h_gch: created and used with differing settings of '-mthreads'
windres.exe -IC:\wxWidgets-2.8.12\include -IC:\wxWidgets-2.8.12\lib\gcc_lib\mswu  -J rc -O coff -i C:\MY_PRO~1\wx_test4\resource.rc -o obj\Release\resource.res
mingw32-g++.exe -Wall -pipe -Wno-attributes -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -DWX_PRECOMP  -O2    -IC:\wxWidgets-2.8.12\include -IC:\wxWidgets-2.8.12\contrib\include -IC:\wxWidgets-2.8.12\lib\gcc_lib\mswu  -c C:\MY_PROJECT\wx_test4\wx_test4Main.cpp -o obj\Release\wx_test4Main.o
cc1plus.exe: warning: ./wx_pch.h.gch/Debug_wx_pch_h_gch: created and used with differing settings of '-mthreads'
mingw32-g++.exe -LC:\wxWidgets-2.8.12\lib\gcc_lib  -o bin\Release\wx_test4.exe obj\Release\wx_test4App.o obj\Release\wx_test4Main.o  obj\Release\resource.res  -s -static-libgcc  -lwxmsw28u_aui -lwxmsw28u_media -lwxbase28u_net -lwxbase28u_xml -lwxmsw28u_adv -lwxmsw28u_html -lwxmsw28u_core -lwxbase28u -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 ..\SQLCIPHER\libSQLCIPHER.a ..\SQLCIPHER\lib\libeay32.dll.a  -mwindows
Output size is 2,93 MB
Process terminated with status 0 (0 minutes, 13 seconds)
0 errors, 4 warnings (0 minutes, 13 seconds)
 


--- End code ---

MortenMacFly:

--- Quote from: woser on January 25, 2012, 10:42:36 pm ---
--- Code: ---Output size is 2,93 MB
Process terminated with status 0 (0 minutes, 13 seconds)
0 errors, 4 warnings (0 minutes, 13 seconds)

--- End code ---

--- End quote ---
This indicates an executable was definitely created. What is your problem?

woser:
Exe start but immediately end.... nothing show on the screen

I've tried almost everything, when I try to debug it is nothing happen, even when I create breakpoints on, app init, Library of sqlite works ok when I create console program, but when I use wxwidgets program run, and end immiadiately, but when I try a debug program stay and nothing happen.

Build log for debug:


--- Code: ---
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__    -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_test4\wx_pch.h -o wx_pch.h.gch\Debug_wx_pch_h_gch
cc1plus.exe: warning: C:\MY_PROJECT\wx_test4\wx_pch.h.gch/Release_wx_pch_h_gch: created with -gnone, but used with -gdwarf-2
cc1plus.exe: warning: ./wx_pch.h.gch/Release_wx_pch_h_gch: created with -gnone, but used with -gdwarf-2
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__    -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_test4\wx_test4App.cpp -o obj\Debug\wx_test4App.o
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_test4\resource.rc -o obj\Debug\resource.res
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__    -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_test4\wx_test4Main.cpp -o obj\Debug\wx_test4Main.o
mingw32-g++.exe -LC:\wxWidgets-2.8.12\lib\gcc_lib  -o bin\Debug\wx_test4.exe obj\Debug\wx_test4App.o obj\Debug\wx_test4Main.o  obj\Debug\resource.res  -mthreads  -lwxmsw28ud_aui -lwxmsw28ud_media -lwxbase28ud_net -lwxbase28ud_xml -lwxmsw28ud_adv -lwxmsw28ud_html -lwxmsw28ud_core -lwxbase28ud -lwxpngd -lwxjpegd -lwxtiffd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32  -mwindows
Output size is 30,78 MB
Process terminated with status 0 (0 minutes, 37 seconds)
0 errors, 2 warnings (0 minutes, 37 seconds)

--- End code ---

Screenshot:


ZIP file with compiled library and source, and sample program which cannot work, everything prepared for code:blocks :

http://dl.dropbox.com/u/26886994/MY_PROJECT.ZIP (32mb)


Everything working when I compile it for visual studio 2010 compiler, and compile the same code.... But i need MinGW

Navigation

[0] Message Index

[#] Next page

Go to full version