User forums > Using Code::Blocks

To make a portable exe with codeblocks and wxwidgets

(1/1)

Nucleorion:
I want to compile a program to be portable using codeblocks and wxwidgets but when I run it directly from the release folder, not from codeblocks, it asks me for wxmsw30u_gcc_custom.dll I've already found it, added it and it works.

Would not be a problem, if there is no choice but to add that dll, if it were not because it occupies more than 24 megs.

Is there any way for a simple windows program to take up less space?

And how do you have to do everything in the exe?

BlueHazzard:
This is not a question for codeblocks. This is a general programming question and not topic of this forum.

Just to give you some hints before this thread gets locked:
To minimize the executable size there are many possibilities: Link only the parts of the library you need. I have no idea if this works with wxWidgets, but the base library should be way smaller then than the whole monolithic library
A other way is not to use wxWidgets but the MFC library directly if you develop only for windows
A other possibility is binary compression: https://upx.github.io/

Nucleorion:
Ok, thanks you :)

Navigation

[0] Message Index

Go to full version