User forums > Using Code::Blocks

Endless problems with wxwidgets

<< < (3/3)

troels:

--- Quote from: denk_mal on January 29, 2008, 10:12:22 am ---Could you please tell me how you do this?

--- End quote ---

The /MT compiler option:
Properties->C/C++->Code Generation->Runtime library->Multithreaded (/MT)
Using /MT, "Microsoft Visual C++ 200X Redistributable Package" is not needed, for deployment.

The CRT gets statically linked to your executable, an option MinGW sadly cannot offer, because the CRT code is proprietary.


--- Quote from: denk_mal on January 29, 2008, 10:12:22 am ---You should post your solution to Microsoft also. They even don't know the trick :)

--- End quote ---
This is not a "solution", it is a regular compiler option.


--- Quote from: denk_mal on January 29, 2008, 10:12:22 am ---They even don't know the trick :)

--- End quote ---
Sure they do. Most VC users know too.

Troels

denk_mal:
On a logical base this semms to be a real and correct solution.
I've tried it on a 'short jump' in my project and got a lot of unreferenced symbols
(including unresloved external reference wxStringData::Free(void) )
but I'll tried again when I have more time.

thanks
denk_mal

JGM:

--- Quote from: nc3b on January 28, 2008, 10:51:55 pm ---The reason I wanted to use vcc this time is that mingw produces so much larger executables, it's almost obscene:)).

--- End quote ---

A dirty solution would be to use upx ( http://upx.sourceforge.net/ ) only adds a little overhead for decompressing the real executable.

nc3b:
thank you for the upx idea  :)

Belgabor:
Indeed upx does wonders for wxWidgets/MinGW programs. The overhead might actually be offset by the time you save loading the file from hd.

Navigation

[0] Message Index

[*] Previous page

Go to full version