using an up to date mingw version.
My config is monolothic and unicode, think that's all.
Also is there a way I can config codeblocks so that instead of having to distribute a dll with the program, the dependencies are embedded in the executable?
Here's how I build my wxWidgets I put the following in a batch file and run it.
CD build\msw
SET PATH=C:\MinGW\bin;C:\MinGW\mingw32\bin
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
PAUSE
To do what you want I would suggest the below way to build a static multilib version of wxWidgets
CD build\msw
SET PATH=C:\MinGW\bin;C:\MinGW\mingw32\bin
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=0 BUILD=release UNICODE=1 clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=0 BUILD=release UNICODE=1
PAUSE
Note: I am not sure how to use the above in Code::Blocks, but I think the wizard mentioned above does it automatically.
Tim S
using an up to date mingw version.
My config is monolothic and unicode, think that's all.
Also is there a way I can config codeblocks so that instead of having to distribute a dll with the program, the dependencies are embedded in the executable?
If you want to embed all dependencies within your application, then use static build of wxWidgets. To compile wxWidgets in static, Monolithic, Unicode mode, use the following command.
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=1 BUILD=release UNICODE=1 clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=1 BUILD=release UNICODE=1
Note: I am not sure how to use the above in Code::Blocks, but I think the wizard mentioned above does it automatically.
The wizard won't be helpful if you want to compile wxWidgets. But if you want to write an application with wxWidgets, the wizard will be very helpful. It accepts any build of wxWidgets and the only thing you need to do is to select appropriate options.