User forums > Using Code::Blocks

[RESOLVED] Compiling wxWidgets SHARED=0 used with CODEBLOCKS

<< < (2/4) > >>

Michael:

--- Quote from: barbarello on February 13, 2006, 12:36:17 pm ---However I need to copy each time wxmsw26_gcc_cb.dll (6 Mo) and mingwm10.dll with my exe (weight under 300Ko...)

--- End quote ---

You can build a static wxWidgets library, instead of dynamic. Then you can distribute your .exe without including the dll. Anyway, the size of the .exe will be bigger than with linking with dll. An idea would be to build wxWidgets non-monolithic, but its seems that there are some issues (it was discussed somewhere in the forum, if I remember correctly).

Michael

barbarello:
Yes it's exactly what i try to do....with parameters SHARE=0....

Michael:
Did you try by using the same parameters as described in one of the topics cited above, but just changing SHARE to 0?

Michael

TDragon:

--- Quote from: barbarello on February 13, 2006, 11:10:42 am ---So the folder created is gcc_msw

--- End quote ---
So change every occurence of "gcc_dll" in the build options (linker directories, compiler directories) to "gcc_msw". Or if the directory containing the library files is "gcc_lib", change to that.

Also remove WXUSINGDLL from the #defines.

Compile. Enjoy.

barbarello:
Thanks a lot
I'm going to try this!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version