User forums > Using Code::Blocks

Compiled faile after update wxwidget 2.9.1

<< < (2/3) > >>

xunxun:

--- Quote from: thundercrawl on November 15, 2010, 08:55:35 am ---I have added these lib to the link path, but the export exe file is so big.. and cannot execute.

here the compile and link info...


-------------- Build: Debug in EH02 ---------------

mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -Wno-attributes -Wall  -g -D__WXDEBUG__    -ID:\wxWidgets-2.9.1\include -ID:\wxWidgets-2.9.1\contrib\include -ID:\wxWidgets-2.9.1\lib\gcc_lib\mswud  -c D:\DengYC\Projects\EH02\EH02Main.cpp -o obj\Debug\EH02Main.o
windres.exe -i D:\DengYC\Projects\EH02\resource.rc -J rc -o obj\Debug\resource.res -O coff -ID:\wxWidgets-2.9.1\include -ID:\wxWidgets-2.9.1\lib\gcc_lib\mswud
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -Wno-attributes -Wall  -g -D__WXDEBUG__    -ID:\wxWidgets-2.9.1\include -ID:\wxWidgets-2.9.1\contrib\include -ID:\wxWidgets-2.9.1\lib\gcc_lib\mswud  -c D:\DengYC\Projects\EH02\EH02App.cpp -o obj\Debug\EH02App.o
mingw32-g++.exe -LD:\wxWidgets-2.9.1\lib\gcc_lib  -o bin\Debug\EH02.exe obj\Debug\EH02Main.o obj\Debug\EH02App.o  obj\Debug\resource.res  -mthreads  -lwxmsw29ud_core -lwxbase29ud -lwxpngd -lwxjpegd -lwxtiffd -lwxzlibd -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32  -mwindows


does anybody know why?


--- End quote ---

Well, try building release dll.

Jenna:
And please always use code-tags, if you post large pieces of code, it enhances the readability a lot.

thundercrawl:
Thanks, resolved by compile the shared lib, but the compiled  file is still more larger thank wx2.8.1 about 30% more bigger..

By the way, what is code-tags?? related to CB or BBS replay?

ptDev:

--- Quote from: thundercrawl on November 15, 2010, 09:59:54 am ---Thanks, resolved by compile the shared lib, but the compiled  file is still more larger thank wx2.8.1 about 30% more bigger..

--- End quote ---

I've been developing with wx2.9.x for my projects for a while, and I can assure you it's normal that it's larger...
The wx2.9.x series is being compiled with partial debug information, by default (even if you compile in release mode). Even once you compile your programs, you will be showered by assert messages... ;)

To override this, pass the option CXXFLAGS="-DwxDEBUG_LEVEL=0" to mingw32-make when you build the libraries, and make sure all your Code::Blocks wx2.9.x projects also have wxDEBUG_LEVEL=0 in the defines list. The size of the libraries should shrink to something closer to how large wx2.8.x was. It will always be larger, though. 2.9.x has *lots* of new classes. :)

oBFusCATed:

--- Quote from: thundercrawl on November 15, 2010, 09:59:54 am ---By the way, what is code-tags?? related to CB or BBS replay?

--- End quote ---

[ code ] [/ code ] (you have to remove the spaces)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version