<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.codeblocks.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mispunt</id>
	<title>Code::Blocks - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.codeblocks.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mispunt"/>
	<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php/Special:Contributions/Mispunt"/>
	<updated>2026-05-24T02:39:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=209</id>
		<title>Compiling wxWidgets 2.6.2 to develop Code::Blocks (MSW)</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=209"/>
		<updated>2005-09-16T09:46:10Z</updated>

		<summary type="html">&lt;p&gt;Mispunt: /* Build the STC library */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are the instructions to compile wxWidgets do you can compile Code::Blocks on your own.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' These instructions are MS Windows (TM) specific, but because we are using MinGW it should be possible to use these instructions with some modifications on other platforms.&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
If you don't have the Code::Blocks + MinGW bundle, grab the latest MinGW stuff from the [http://www.mingw.org/download.shtml#hdr2 MinGW site] and install it under a directory you like.&lt;br /&gt;
'''NOTE:''' In these instroctions we're calling the MinGW directory &amp;lt;MINGW&amp;gt;, so you have to replace that with you're own directory.&lt;br /&gt;
&lt;br /&gt;
'''If you DO have the Code::Blocks + MinGW bundle, or have already installed MINGW on your own, you can skip this section.'''&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' The files are compressed in the tar.gz format. You need a third-party extraction utility to unzip them. (like 7-zip)&lt;br /&gt;
&lt;br /&gt;
You need at least the following files:&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-core-3.4.2-20040916-1.tar.gz?download gcc-core-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-g++-3.4.2-20040916-1.tar.gz?download gcc-g++-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-runtime-3.7.tar.gz?download mingw-runtime-3.7.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-utils-0.3.tar.gz?download mingw-utils-0.3.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/w32api-3.2.tar.gz?download w32api-3.2.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/binutils-2.15.91-20040904-1.tar.gz?download binutils-2.15.91-20040904-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe?download mingw32-make-3.80.0-3.exe]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gdb-5.2.1-1.exe?download gdb-5.2.1-1.exe]&lt;br /&gt;
GDB is not really needed, but could be usefull for debugging.&lt;br /&gt;
&lt;br /&gt;
After you install, make sure you have the following directories under your path:&lt;br /&gt;
* &amp;lt;MINGW&amp;gt;\bin;&lt;br /&gt;
* &amp;lt;MINGW&amp;gt;\mingw32\bin;&lt;br /&gt;
&lt;br /&gt;
== Download and Install the wxWidgets source code ==&lt;br /&gt;
The wxWidgets 2.6.1 distribution can be found at the [http://www.wxwidgets.org/dl_msw2.htm#stable wxWidgets website]. (Note that ther e is also a winhelp file available.) You can get choose between an installer and a zip file. You can just get the zip file because the installer is also a zipped version.&lt;br /&gt;
&lt;br /&gt;
If you use the plain zip version, make sure to unzip using the full path. Otherwise the directories won't be created correctly.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' In the rest of these instructions we are calling the wxWidgets directory &amp;lt;WXWIN&amp;gt; you have to change it to your own directory. (e.g. &amp;quot;c:\wxWidgets-2.6.1&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' you do not need MSYS. Furthermore, you cannot have MSYS in your path, or the wxWidgets compilation will fail. Thus if you have MSYS installed, ensure that &amp;lt;MSYS&amp;gt;\bin '''is not''' in your path before compiling wxWidgets. wxWidgets must be compiled from a &amp;quot;regular&amp;quot; command line (cmd.exe), not from a unix-like shell. BTW, The same problem would probably arise as well if cygwin is in the path.&lt;br /&gt;
&lt;br /&gt;
== Check make version ==&lt;br /&gt;
If you didn't install MingW yourself you have to make sure you have the right version of make. Open the command prompt and type:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -v&amp;lt;/tt&amp;gt;&lt;br /&gt;
If the version is 3.80 or greater it is allright to go on, else you have to install the new make.&lt;br /&gt;
&lt;br /&gt;
== Building wxWidgets ==&lt;br /&gt;
Now it is time to compile wxWidgets, open the command promt and change to the wxWidgets directory:&lt;br /&gt;
 &amp;lt;tt&amp;gt;cd &amp;lt;WXWIN&amp;gt;\build\msw&amp;lt;/tt&amp;gt;&lt;br /&gt;
Now we are on the right place we are first going to clean up the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean &amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' make sure you use the same options to clean that you use for the build step below.  the clean target uses these environment variables and only cleans that version of the generated object and library files (so it will actually not clean the intended files if these variables are not present) &amp;lt;br&amp;gt;&lt;br /&gt;
'''NOTE:''' if you still have problems with compiling after cleaning, you may want to remove the directory in the build\msw directory. (it contains object files...)&lt;br /&gt;
When everything is clean we can compile wxWidgets:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' these options are the official Code::Blocks options. When you want another version of wxWidgets (unicode or debug) you have to make sure you build a MONOLITHIC version. (One big dll)&lt;br /&gt;
Now you can get a cup of coffee, or do something else, because this could take a long time.&lt;br /&gt;
&lt;br /&gt;
== Build the STC library (Not needed for CVS HEAD version) ==&lt;br /&gt;
If you closed the command promt, you have to open it again.&lt;br /&gt;
We are going to the STC directory&lt;br /&gt;
 &amp;lt;tt&amp;gt;cd ..\..\contrib\build\stc&amp;lt;/tt&amp;gt;&lt;br /&gt;
We clean the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean&amp;lt;/tt&amp;gt;&lt;br /&gt;
And we going to compile it. Make sure you have the same build options as before.&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
So now everything is compiled for using codeblocks.&lt;br /&gt;
&lt;br /&gt;
== Copy libraries ==&lt;br /&gt;
When compilation is finished it is usefull to copy the libs to another directory. By doing this you can make several builds (e.g. debug and release).&lt;br /&gt;
* So first we create a directory this could be done in &amp;lt;WXWIN&amp;gt;\lib.&lt;br /&gt;
* Then we go to the directory &amp;lt;WXWIN&amp;gt;\lib\gcc_dll (could called diffrent when you changed the build options)&lt;br /&gt;
* Now we move all the files (.a .dll) and the directory (msw) to the directory of your choice. (for me it is &amp;lt;WXWIN&amp;gt;\lib\codeblocks)&lt;br /&gt;
'''NOTE:''' Make sure you everything is removed from the directory &amp;lt;WXWIN&amp;gt;\lib\gcc_dll else you can get trouble when compiling another version.&lt;br /&gt;
&lt;br /&gt;
== Setting up paths ==&lt;br /&gt;
Everything is done now, and we can start compiling Code::Blocks, couldn't we? No! First we have to setup the paths.&lt;br /&gt;
Open the codeblocks project (CodeBlocks-wx2.6.0.cbp) and go to the Build options.&lt;br /&gt;
From there you have to go to the tab Directories and Compiler. Here you have to add the following paths (Remember to replace &amp;lt;WXWIN&amp;gt;)&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\lib\codeblocks\msw&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\contrib\include&lt;br /&gt;
The first path is used to find the right setup.h for the build you are using. The other two are for the normal include files.&lt;br /&gt;
&lt;br /&gt;
Now go to the Linker tab and add the following path:&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\lib\codeblocks&lt;br /&gt;
'''NOTE:''' You have to replace this with the directory of your own choice in the previous section!&lt;br /&gt;
&lt;br /&gt;
Finally, go to the resource tab and add the following path (Remember to replace &amp;lt;WXWIN&amp;gt;)&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
&lt;br /&gt;
Now you are finished with the configuration and you can hit the compile button (CTRL-F9). Be aware that Code::Blocks is not officially  support wxWidgets 2.6.1 so it is possible that new files are not yet in the project. You have to do this by your self.&lt;br /&gt;
&lt;br /&gt;
== Post compilation steps (before running C::B) ==&lt;br /&gt;
&lt;br /&gt;
When compilation process is finished, simply run the update.bat script. It will ensure that all resource files (that C::B uses) are in the right place and up to date.&lt;br /&gt;
&lt;br /&gt;
Note: This step requires appropriate zip command, which you likely have already set up and working. However, in case you have not, you should find something usable  [ftp://ftp.uu.net/pub/archiving/zip/WIN32/ here].&lt;br /&gt;
&lt;br /&gt;
----------&lt;br /&gt;
&lt;br /&gt;
Edit: I didn't see any update.bat script but no matter.  Two changes to this howto to get everything to work.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
1.  When creating a wx project in codeblocks, the link stage fails with cannot find -lwxmsw.  I needed to:&amp;lt;br&amp;gt;&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks\libwxmsw26.a to C:\wxWidgets-2.6.1\lib\codeblocks\libwxmsw.a &amp;lt;br&amp;gt;&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks\libwxmsw26_stc.a to C:\wxWidgets-2.6.1\lib\codeblocks\libwxmsw_stc.a &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or mess with the autogenerated makefile (they don't use WX_VER anymore it seems...) which is more of a hassle. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
2.  You will still get --enable-auto-import errors.  Looks like you just need to add a define: &amp;lt;br&amp;gt;&lt;br /&gt;
project-&amp;gt;build options-&amp;gt;compiler-&amp;gt;#defines &amp;lt;br&amp;gt;&lt;br /&gt;
WXUSINGDLL &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Lastly it will look for wxmsw26_gcc_cb.dll and not find it.  Either put  &amp;lt;br&amp;gt;&lt;br /&gt;
C:\wxWidgets-2.6.1\lib\codeblocks in your PATH, put wxmsw26_gcc_cb.dll and wxmsw26_stc_gcc_cb.dll in C:\windows\system32, or add C:\wxWidgets-2.6.1\lib\codeblocks to compile-&amp;gt;compiler options-&amp;gt;programs-&amp;gt;additional paths &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Rebuild and everything should run ok.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
====Building wxWidgets 2.6.1 mingw32 &amp;amp; vc++ toolkit 2003 ====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
I'll just throw in my notes on the process for both compiler versions as getting vc++ toolkit to work is quite a pain.  Code blocks needs a couple changes to support wxWidgets on the vc++ toolkit seamlessly.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
--------------------&lt;br /&gt;
for mingw32 compiler&lt;br /&gt;
--------------------&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&lt;br /&gt;
cd &amp;lt;WXWIN&amp;gt;\build\msw &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb clean &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;&lt;br /&gt;
stc is no longer needed for latest codeblocks (cvs version) which uses wxscintilla: &amp;lt;br&amp;gt;&lt;br /&gt;
cd ..\..\contrib\build\stc &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb clean &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/i&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&lt;br /&gt;
cd &amp;lt;WXWIN&amp;gt;\lib; move gcc_dll codeblocks_gcc&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
codeblocks &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
project-&amp;gt;build options&lt;br /&gt;
	directories-&amp;gt;compiler&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\lib\codeblocks_gcc\msw&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\contrib\include&lt;br /&gt;
	directories-&amp;gt;linker&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\lib\codeblocks_gcc&lt;br /&gt;
	directories-&amp;gt;resource compiler&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
	compiler-&amp;gt;#defines&lt;br /&gt;
		WXUSINGDLL&lt;br /&gt;
&lt;br /&gt;
compile-&amp;gt;compiler options&lt;br /&gt;
	programs-&amp;gt;additional paths&lt;br /&gt;
		C:\wxWidgets-2.6.1\lib\codeblocks_gcc&lt;br /&gt;
-OR- copy C:\wxWidgets-2.6.1\lib\codeblocks_gcc\wxmsw26_gcc_cb.dll&lt;br /&gt;
     to application exe directory or c:\windows\system32&lt;br /&gt;
-OR- change project-&amp;gt;properties-&amp;gt;targets-&amp;gt;execution working dir&lt;br /&gt;
     to C:\wxWidgets-2.6.1\lib\codeblocks_gcc (not recommended)&lt;br /&gt;
&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks_gcc\libwxmsw26.a&lt;br /&gt;
to C:\wxWidgets-2.6.1\lib\codeblocks_gcc\libwxmsw.a&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks_gcc\libwxmsw26_stc.a&lt;br /&gt;
to C:\wxWidgets-2.6.1\lib\codeblocks_gcc\libwxmsw_stc.a&lt;br /&gt;
&lt;br /&gt;
compile-&amp;gt;rebuild&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
------------------------------&lt;br /&gt;
for vc++ toolkit 2003 compiler&lt;br /&gt;
------------------------------&lt;br /&gt;
install VCToolkitSetup.exe &amp;lt;br&amp;gt;&lt;br /&gt;
install PlatformSDK &amp;lt;br&amp;gt;&lt;br /&gt;
install .NET Framework SDK Version 1.1 &amp;lt;br&amp;gt;&lt;br /&gt;
run PlatformSDK-&amp;gt;Set Windows XP 32-bit Build Environment (Retail) &amp;lt;br&amp;gt;&lt;br /&gt;
C:\Program Files\Microsoft Visual C++ Toolkit 2003\vcvars32.bat (not needed) &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
set DOTNETSDK=C:\Program Files\Microsoft.NET\SDK\v1.1 (not needed) &amp;lt;br&amp;gt;&lt;br /&gt;
set MSVC=C:\Program Files\Microsoft Visual C++ Toolkit 2003 &amp;lt;br&amp;gt;&lt;br /&gt;
set MSSDK=C:\Program Files\Microsoft Platform SDK &amp;lt;br&amp;gt;&lt;br /&gt;
set VC7=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 &amp;lt;br&amp;gt;&lt;br /&gt;
set INCLUDE=%MSVC%\include;%MSSDK%\include &amp;lt;br&amp;gt;&lt;br /&gt;
set LIB=%MSVC%\lib;%MSSDK%\lib;%VC7%\lib &amp;lt;br&amp;gt;&lt;br /&gt;
set PATH=%MSVC%\bin;%MSSDK%\bin;%PATH% &amp;lt;br&amp;gt;&lt;br /&gt;
set PATH=%PATH%;%MSSDK%\bin\Win64 &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&lt;br /&gt;
cd &amp;lt;WXWIN&amp;gt;\build\msw &amp;lt;br&amp;gt;&lt;br /&gt;
nmake -f makefile.vc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb clean &amp;lt;br&amp;gt;&lt;br /&gt;
nmake -f makefile.vc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;&lt;br /&gt;
stc is no longer needed for latest codeblocks (cvs version) which uses wxscintilla: &amp;lt;br&amp;gt;&lt;br /&gt;
cd ..\..\contrib\build\stc &amp;lt;br&amp;gt;&lt;br /&gt;
nmake -f makefile.vc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb clean &amp;lt;br&amp;gt;&lt;br /&gt;
nmake -f makefile.vc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/i&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&lt;br /&gt;
cd &amp;lt;WXWIN&amp;gt;\lib; move vc_dll codeblocks_vc&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
codeblocks &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
project-&amp;gt;build options&lt;br /&gt;
	directories-&amp;gt;compiler&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\lib\codeblocks_vc\msw &lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\include &lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\contrib\include&lt;br /&gt;
	directories-&amp;gt;linker&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\lib\codeblocks_vc&lt;br /&gt;
	directories-&amp;gt;resource compiler&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
	compiler-&amp;gt;#defines&lt;br /&gt;
		WXUSINGDLL&lt;br /&gt;
	compiler-&amp;gt;compiler flags&lt;br /&gt;
		enable c++ exception handling (or other options: /GX [same as /EHsc])&lt;br /&gt;
	compiler-&amp;gt;other options&lt;br /&gt;
		delete -D__GNUWIN32__&lt;br /&gt;
	linker-&amp;gt;link libraries&lt;br /&gt;
		delete ctl3d32&lt;br /&gt;
&lt;br /&gt;
compile-&amp;gt;compiler options&lt;br /&gt;
	programs-&amp;gt;additional paths&lt;br /&gt;
		C:\wxWidgets-2.6.1\lib\codeblocks_vc&lt;br /&gt;
-OR- copy C:\wxWidgets-2.6.1\lib\codeblocks_vc\wxmsw26_vc_cb.dll&lt;br /&gt;
     to application exe directory or c:\windows\system32&lt;br /&gt;
-OR- change project-&amp;gt;properties-&amp;gt;targets-&amp;gt;execution working dir&lt;br /&gt;
     to C:\wxWidgets-2.6.1\lib\codeblocks_vc (not recommended)&lt;br /&gt;
&lt;br /&gt;
compile-&amp;gt;compiler options&lt;br /&gt;
	programs-&amp;gt;additional paths&lt;br /&gt;
		C:\Program Files\Microsoft Platform SDK\Bin&lt;br /&gt;
 	directories-&amp;gt;compiler&lt;br /&gt;
		add C:\Program Files\Microsoft Platform SDK\Include		&lt;br /&gt;
	directories-&amp;gt;linker&lt;br /&gt;
		add C:\Program Files\Microsoft Platform SDK\Lib&lt;br /&gt;
&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks_vc\wxmsw26.exp&lt;br /&gt;
     to C:\wxWidgets-2.6.1\lib\codeblocks_vc\wxmsw.exp&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks_vc\wxmsw26.lib&lt;br /&gt;
     to C:\wxWidgets-2.6.1\lib\codeblocks_vc\wxmsw.lib&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks_vc\wxmsw26_stc.exp&lt;br /&gt;
     to C:\wxWidgets-2.6.1\lib\codeblocks_vc\wxmsw_stc.exp&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks_vc\wxmsw26_stc.lib&lt;br /&gt;
     to C:\wxWidgets-2.6.1\lib\codeblocks_vc\wxmsw_stc.lib&lt;br /&gt;
&lt;br /&gt;
compile-&amp;gt;rebuild&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
building from the commandline (wxwidgets demos) &amp;lt;br&amp;gt;&lt;br /&gt;
nmake -f makefile.vc SHARED=1 MONOLITHIC=1 BUILD=release &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Building codeblocks from source (using makefile)====&lt;br /&gt;
&lt;br /&gt;
Codeblocks can be used to build the source but here is how to build using just makefiles.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
build wxWidgets-2.6.1 dll using mingw32&lt;br /&gt;
   mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=cb clean&lt;br /&gt;
   mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=cb&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\gcc_dll to C:\wxWidgets-2.6.1\lib\gcc_dllUnicode (copy since wxDockIt expects gcc_dll to exists)&lt;br /&gt;
checkout CVS source codeblocks module (used VERSION_1_0 branch)&lt;br /&gt;
(beware path lengths - best to checkout to root directory - c:\)&lt;br /&gt;
download http://prdownloads.sourceforge.net/wxextended/wxDockIt_2.1.zip?download&lt;br /&gt;
extract wxDockIt to codeblocks\src\src&lt;br /&gt;
patch codeblocks\src\src\wxDockit\build\msw\makefile.gcc&lt;br /&gt;
   change &amp;quot;$(CXX) -shared -fPIC -o $@ $(WXDOCKIT_DLL_OBJECTS) $(LDFLAGS) -mthreads -L$(WX_DIR)$(__WXLIBPATH_FILENAMES) -L..\..\$(__WXDOCKIT_OUTPUT_FOLDER_FILENAMES_1) $(__DEBUGINFO) -mthreads -Wl,--out-implib,..\..\lib\gcc_dll\libwxdockit$(WXLIBPOSTFIX).a  -lwxmsw$(WX_VERSION)$(WXLIBPOSTFIX)_adv -lwxbase$(WX_VERSION)$(WXLIBPOSTFIX)_xml -lwxmsw$(WX_VERSION)$(WXLIBPOSTFIX)_core -lwxbase$(WX_VERSION)$(WXLIBPOSTFIX) -lwxtiff$(WX3RDPARTLIBPOSTFIX) -lwxjpeg$(WX3RDPARTLIBPOSTFIX) -lwxpng$(WX3RDPARTLIBPOSTFIX) -lwxzlib$(WX3RDPARTLIBPOSTFIX) -lwxregex$(WXLIBPOSTFIX) -lwxexpat$(WX3RDPARTLIBPOSTFIX) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32&amp;quot;&lt;br /&gt;
   to     &amp;quot;$(CXX) -shared -fPIC -o $@ $(WXDOCKIT_DLL_OBJECTS) $(LDFLAGS) -mthreads -L$(WX_DIR)$(__WXLIBPATH_FILENAMES) -L..\..\$(__WXDOCKIT_OUTPUT_FOLDER_FILENAMES_1) $(__DEBUGINFO) -mthreads -Wl,--out-implib,..\..\lib\gcc_dll\libwxdockit$(WXLIBPOSTFIX).a  -lwxmsw$(WX_VERSION)$(WXLIBPOSTFIX) -lwxtiff$(WX3RDPARTLIBPOSTFIX) -lwxjpeg$(WX3RDPARTLIBPOSTFIX) -lwxpng$(WX3RDPARTLIBPOSTFIX) -lwxzlib$(WX3RDPARTLIBPOSTFIX) -lwxregex$(WXLIBPOSTFIX) -lwxexpat$(WX3RDPARTLIBPOSTFIX) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32&amp;quot;&lt;br /&gt;
compile wxDockIt&lt;br /&gt;
   cd codeblocks\src\src\wxDockit\build\msw&lt;br /&gt;
   mingw32-make -f makefile.gcc WX_DIR=C:\wxWidgets-2.6.1 WX_SHARED=1 WX_DEBUG=0 WX_UNICODE=1 WX_VERSION=26 clean&lt;br /&gt;
   mingw32-make -f makefile.gcc WX_DIR=C:\wxWidgets-2.6.1 WX_SHARED=1 WX_DEBUG=0 WX_UNICODE=1 WX_VERSION=26&lt;br /&gt;
move codeblocks\src\src\wxDockit\build\msw\gcc_dll to codeblocks\src\src\wxDockit\build\msw\gcc_dllUnicode&lt;br /&gt;
edit codeblocks\src\src\Makefile.wx2.6&lt;br /&gt;
   change WX_DIR=C:/Devel/wxWindows-2.6.1 to WX_DIR=C:/wxWidgets-2.6.1&lt;br /&gt;
   change WX_CFG=NonUnicode to WX_CFG=Unicode&lt;br /&gt;
   global search+replace: replace &amp;quot; -lwxmsw26&amp;quot; with &amp;quot; -lwxmsw26u&amp;quot;&lt;br /&gt;
   global search+replace: replace &amp;quot;/msw&amp;quot; with &amp;quot;/mswu&amp;quot;&lt;br /&gt;
   replace &amp;quot;-Lsrc/wxDockit/lib&amp;quot; with &amp;quot;-Lsrc/wxDockit/lib/gcc_dll$(WX_CFG)&amp;quot;&lt;br /&gt;
   replace &amp;quot;..\wxDockit\lib\libwxdockit.a&amp;quot; with &amp;quot;src\wxDockit\lib\gcc_dll$(WX_CFG)\libwxdockitu.a&amp;quot;&lt;br /&gt;
edit C:\wxWidgets-2.6.1\lib\gcc_dllUnicode\mswu\wx\setup.h&lt;br /&gt;
   change &amp;quot;#define wxUSE_UNICODE 0&amp;quot; to &amp;quot;#define wxUSE_UNICODE 1&amp;quot;&lt;br /&gt;
start-&amp;gt;run-&amp;gt;cmd&lt;br /&gt;
cd codeblocks\src&lt;br /&gt;
mingw32-make -f Makefile.wx2.6 clean&lt;br /&gt;
mingw32-make -f Makefile.wx2.6&lt;br /&gt;
download ftp://ftp.info-zip.org/pub/infozip/MSDOS/zip231x.zip (infozip)&lt;br /&gt;
put zip.exe in some directory in your PATH (e.g. C:\MinGW\bin)&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\gcc_dllUnicode\wxmsw26u_gcc_cb.dll to codeblocks\src\output\wxmsw26u_gcc_cb.dll and codeblocks\src\devel\wxmsw26u_gcc_cb.dll&lt;br /&gt;
copy src\src\wxDockit\lib\gcc_dllUnicode\wxdockitu.dll to and codeblocks\src\output\wxdockitu.dll and codeblocks\src\devel\wxdockitu.dll&lt;br /&gt;
update.bat&lt;br /&gt;
output\CodeBlocks.exe&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mispunt</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=FAQ&amp;diff=215</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=FAQ&amp;diff=215"/>
		<updated>2005-09-15T13:21:23Z</updated>

		<summary type="html">&lt;p&gt;Mispunt: /* What compiler can I use with Code::Blocks? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
&lt;br /&gt;
== Is it possible to integrate the win32-help as in dev-cpp, to get help on the items under the caret? ==&lt;br /&gt;
&lt;br /&gt;
Integration of the win32 API helpfile should be a no-brainer. Someone could just write a really simple plugin and, upon invocation (through a shortcut possibly), look at the word under the cursor and invoke windows help... If you think you 're up to the task, I can help you with all the info you need. If not, I could write it myself but no promises on a release date ;)&lt;br /&gt;
&lt;br /&gt;
== Launching for the first time, Code::Blocks tells me I need to install GNU make. Is this necessary on a Windows system? ==&lt;br /&gt;
&lt;br /&gt;
Since version 1.0-beta5, no it is not. Code::Blocks works with GNU &amp;quot;make&amp;quot; [http://www.mingw.org/download.shtml (here)] or without it (default). To choose the build method, go to &amp;quot;Project/Build options&amp;quot;, switch to the &amp;quot;Other&amp;quot; tab and select the build method you prefer.&lt;br /&gt;
&lt;br /&gt;
== What licence is Code::Blocks released under? ==&lt;br /&gt;
&lt;br /&gt;
GNU General Public License 2 ([http://www.gnu.org/licenses/gpl.txt GPL])&lt;br /&gt;
&lt;br /&gt;
= Compiling =&lt;br /&gt;
&lt;br /&gt;
== What compiler can I use with Code::Blocks? ==&lt;br /&gt;
&lt;br /&gt;
Code::Blocks philosophy is to be able to use any compiler on earth! Well, almost.&lt;br /&gt;
&lt;br /&gt;
As a matter of fact it largely depends on the used compiler plugin. The one provided with the default Code::Blocks installation, supports GNU GCC (MinGW/Cygwin), MS Visual C++ Free Toolkit 2003, Borland's C++ Compiler 5.5, DigitalMars Free Compiler., OpenWatcom and Small Device C Compiler (SDCC).&lt;br /&gt;
&lt;br /&gt;
== I imported a MSVCToolkit project/workspace, but Code::Blocks insists on trying to use GCC. What's wrong? ==&lt;br /&gt;
&lt;br /&gt;
A little documentation problem ^^;. The &amp;quot;default compiler&amp;quot; is usually GCC, so when you imported it with &amp;quot;the default compiler&amp;quot;, you told it to use GCC. To fix this situation, go to &amp;quot;Project&amp;quot;, &amp;quot;Build Options&amp;quot; and select VC++ Toolkit as your compiler.&lt;br /&gt;
&lt;br /&gt;
== I 'm using gcc compiler from an existing dev-cpp installation. How can I make it work? ==&lt;br /&gt;
&lt;br /&gt;
''As of version 1.0-beta6, if a default MinGW installation is not detected, a Dev-C++ installation is checked for and is used if detected.''&lt;br /&gt;
&lt;br /&gt;
You need to take two steps. First, set the compiler master path to the dev-cpp folder. It's under &amp;quot;Settings/Configure plugins/Compiler&amp;quot; in the &amp;quot;Programs&amp;quot; tab...&lt;br /&gt;
Second, you have to add two additional compiler (include) dirs. Go to &amp;quot;Settings/Configure plugins/Compiler&amp;quot; and in the &amp;quot;Compiler dirs&amp;quot; tab add &amp;quot;dev-cpp\include\c++&amp;quot; and &amp;quot;dev-cpp\include\c++\mingw32&amp;quot; (substituting &amp;quot;dev-cpp&amp;quot; with the actual dev-cpp installation folder).&lt;br /&gt;
&lt;br /&gt;
== I just installed Code::Blocks Beta4 and I can't compile anything with BCC. ==&lt;br /&gt;
&lt;br /&gt;
BCC is not supported 100% yet, unfortunately... The next release (namely 1.0-beta6) should address all BCC issues.&lt;br /&gt;
&lt;br /&gt;
== My project should be compiled with a custom makefile. Is it possible with Code::Blocks? ==&lt;br /&gt;
&lt;br /&gt;
Yes, as of version 1.0-beta4 it is supported. Go to project options and you 'll notice a &amp;quot;Custom Makefile&amp;quot; checkbox. If you check this, Code::Blocks will not create another Makefile for compiling but instead always use this Makefile. You have to understand, though, that it is your sole responsibility to keep this Makefile up to date.&lt;br /&gt;
Also make sure that &amp;quot;GNU make&amp;quot; is the selected build method for the specific compiler.&lt;br /&gt;
&lt;br /&gt;
== I have downloaded MS VC++ Toolkit 2003 for a compiler. How do I tell Code::Blocks that it is my compiler? ==&lt;br /&gt;
&lt;br /&gt;
Click on &amp;quot;Project/Build options&amp;quot; and select the compiler you want for your project/target.&lt;br /&gt;
&lt;br /&gt;
== When compiling a wxWidgets project, I get several &amp;quot;variable 'vtable for xxxx' can't be auto-imported&amp;quot;. What's wrong? ==&lt;br /&gt;
&lt;br /&gt;
You need to add WXUSINGDLL in &amp;quot;Project-&amp;gt;Build options-&amp;gt;Compiler #defines&amp;quot; and rebuild your project (or create a new project and use the &amp;quot;Using wxWidgets DLL&amp;quot; project option which adds &amp;quot;-DWXUSINGDLL&amp;quot; to Project-&amp;gt;Build options-&amp;gt;Other options).&lt;br /&gt;
Other errors with the same resolution are:&lt;br /&gt;
'unresolved external symbol &amp;quot;char const * const wxEmptyString&amp;quot; (?wxEmptyString@@3PBDB)' or similar.&lt;br /&gt;
If you were using 1.0-finalbeta and were trying to build a statically linked wxWidgets project, the cause of the problem was some faulty templates. But that's fixed now.&lt;br /&gt;
&lt;br /&gt;
== I can't compile a multithreaded app with VC Toolkit! Where are the libraries? ==&lt;br /&gt;
&lt;br /&gt;
sorry, no fix for your problem...&lt;br /&gt;
&lt;br /&gt;
Your problem doesn't come from CodeBlocks. It exists, because the free VC toolkit (VCTK) doesn't provide all the libraries and tools which are coming with Visual C++ (VC) which isn't free, unfortunately.&lt;br /&gt;
&lt;br /&gt;
Try buying a full-fledged VC++, or even better, download MinGW :)&lt;br /&gt;
&lt;br /&gt;
The libraries that can be obtained free of charge are:&lt;br /&gt;
&lt;br /&gt;
Paths:&lt;br /&gt;
 (VCT3) Visual C++ Toolkit 2003 - C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib&lt;br /&gt;
 (PSDK) Platform SDK - C:\Program Files\Microsoft Platform SDK\Lib&lt;br /&gt;
 (NSDK) .NET 1.1 SDK - C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib&lt;br /&gt;
&lt;br /&gt;
C runtime libs:&lt;br /&gt;
 LIBC.LIB 	Single-threaded, static link                                          (VCT3, NSDK)&lt;br /&gt;
 LIBCMT.LIB 	Multithreaded, static link                                            (VCT3, NSDK)&lt;br /&gt;
 MSVCRT.LIB 	Multithreaded, dynamic link (import library for MSVCR71.DLL)          (NSDK)&lt;br /&gt;
 LIBCD.LIB 	Single-threaded, static link (debug)                                  (VCT3, NSDK)&lt;br /&gt;
 LIBCMTD.LIB 	Multithreaded, static link (debug)                                    (NSDK)&lt;br /&gt;
 MSVCRTD.LIB 	Multithreaded, dynamic link (import library for MSVCR71D.DLL) (debug) (NSDK)&lt;br /&gt;
&lt;br /&gt;
C++ libs:&lt;br /&gt;
 LIBCP.LIB 	Single-threaded, static link                                          (VCT3, PSDK)&lt;br /&gt;
 LIBCPMT.LIB 	Multithreaded, static link                                            (VCT3)&lt;br /&gt;
 MSVCPRT.LIB 	Multithreaded, dynamic link (import library for MSVCP71.dll)          (none)&lt;br /&gt;
 LIBCPD.LIB 	Single-threaded, static link (debug)                                  (VCT3)&lt;br /&gt;
 LIBCPMTD.LIB 	Multithreaded, static link (debug)                                    (none)&lt;br /&gt;
 MSVCPRTD.LIB 	Multithreaded, dynamic link (import library for MSVCP71D.DLL) (debug) (none)&lt;br /&gt;
&lt;br /&gt;
Try setting the library linker directories to:&lt;br /&gt;
 C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib&lt;br /&gt;
 C:\Program Files\Microsoft Platform SDK\Lib&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib&lt;br /&gt;
in that order.&lt;br /&gt;
&lt;br /&gt;
The ones listed as (none) above are actually present in the IA64 and AMD64 subdirectories of the PSDK lib directory.  Not sure if these would work on 32-bit windows, however, they may if they are&lt;br /&gt;
meant to work in 32-bit compatibility mode on the 64-bit processors.  Worth a try.  Otherwise, you&lt;br /&gt;
can link statically to the C++ library instead of using MSVCP71.dll.  If you really want to link against MSVCP71.dll you can try to create MSVCP71.LIB from the dll using lib.exe and sed.  Search google for &amp;quot;exports.sed&amp;quot; for detailed steps.&lt;br /&gt;
&lt;br /&gt;
See also: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_c_run.2d.time_libraries.asp&lt;br /&gt;
&lt;br /&gt;
== Where are the libraries for the OpenGL / SDL / etc. projects? ==&lt;br /&gt;
&lt;br /&gt;
They're not bundled. The templates were provided for your convenience, but you need to download the libraries on your own.&lt;br /&gt;
In common terms, &amp;quot;batteries not included&amp;quot; :)&lt;br /&gt;
&lt;br /&gt;
== Is it possible to use Visual C++ 6.0 with Code::Blocks? ==&lt;br /&gt;
&lt;br /&gt;
As they say in ##C++ on FreeNode:&amp;lt;br&amp;gt;&lt;br /&gt;
cylon&amp;gt; msvc++6 is not a C++ compiler. It was made before the C++ standard, so it compiles some language that isn't C++. Upgrade.&lt;/div&gt;</summary>
		<author><name>Mispunt</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=110</id>
		<title>Compiling wxWidgets 2.6.2 to develop Code::Blocks (MSW)</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=110"/>
		<updated>2005-06-09T09:50:50Z</updated>

		<summary type="html">&lt;p&gt;Mispunt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are the instructions to compile wxWidgets do you can compile Code::Blocks on your own.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' These instructions are MS Windows (TM) specific, but because we are using MinGW it should be possible to use these instructions with some modifications on other platforms.&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
If you don't have the Code::Blocks + MinGW bundle, grab the latest MinGW stuff from the [http://www.mingw.org/download.shtml#hdr2 MinGW site] and install it under a directory you like.&lt;br /&gt;
'''NOTE:''' In these instroctions we're calling the MinGW directory &amp;lt;MINGW&amp;gt;, so you have to replace that with you're own directory.&lt;br /&gt;
&lt;br /&gt;
'''If you DO have the Code::Blocks + MinGW bundle, or have already installed MINGW on your own, you can skip this section.'''&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' The files are compressed in the tar.gz format. You need a third-party extraction utility to unzip them. (like 7-zip)&lt;br /&gt;
&lt;br /&gt;
You need at least the following files:&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-core-3.4.2-20040916-1.tar.gz?download gcc-core-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-g++-3.4.2-20040916-1.tar.gz?download gcc-g++-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-runtime-3.7.tar.gz?download mingw-runtime-3.7.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-utils-0.3.tar.gz?download mingw-utils-0.3.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/w32api-3.2.tar.gz?download w32api-3.2.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/binutils-2.15.91-20040904-1.tar.gz?download binutils-2.15.91-20040904-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe?download mingw32-make-3.80.0-3.exe]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gdb-5.2.1-1.exe?download gdb-5.2.1-1.exe]&lt;br /&gt;
GDB is not really needed, but could be usefull for debugging.&lt;br /&gt;
&lt;br /&gt;
After you install, make sure you have the following directories under your path:&lt;br /&gt;
* &amp;lt;MINGW&amp;gt;\bin;&lt;br /&gt;
* &amp;lt;MINGW&amp;gt;\mingw32\bin;&lt;br /&gt;
&lt;br /&gt;
== Download and Install the wxWidgets source code ==&lt;br /&gt;
The wxWidgets 2.6.1 distribution can be found at the [http://www.wxwidgets.org/dl_msw2.htm#stable wxWidgets website]. (Note that ther e is also a winhelp file available.) You can get choose between an installer and a zip file. You can just get the zip file because the installer is also a zipped version.&lt;br /&gt;
&lt;br /&gt;
If you use the plain zip version, make sure to unzip using the full path. Otherwise the directories won't be created correctly.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' In the rest of these instructions we are calling the wxWidgets directory &amp;lt;WXWIN&amp;gt; you have to change it to your own directory. (e.g. &amp;quot;c:\wxWidgets-2.6.1&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
== Check make version ==&lt;br /&gt;
If you didn't install MingW yourself you have to make sure you have the right version of make. Open the command prompt and type:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -v&amp;lt;/tt&amp;gt;&lt;br /&gt;
If the version is 3.80 or greater it is allright to go on, else you have to install the new make.&lt;br /&gt;
&lt;br /&gt;
== Building wxWidgets ==&lt;br /&gt;
Now it is time to compile wxWidgets, open the command promt and change to the wxWidgets directory:&lt;br /&gt;
 &amp;lt;tt&amp;gt;cd &amp;lt;WXWIN&amp;gt;\build\msw&amp;lt;/tt&amp;gt;&lt;br /&gt;
Now we are on the right place we are first going to clean up the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc clean&amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' if you still have problems with compiling after cleaning, you may want to remove the directory in the build\msw directory. (it contains object files...)&lt;br /&gt;
When everything is clean we can compile wxWidgets:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' these options are the official Code::Blocks options. When you want another version of wxWidgets (unicode or debug) you have to make sure you build a MONOLITHIC version. (One big dll)&lt;br /&gt;
Now you can get a cup of coffee, or do something else, because this could take a long time.&lt;br /&gt;
&lt;br /&gt;
== Build the STC library ==&lt;br /&gt;
If you closed the command promt, you have to open it again.&lt;br /&gt;
We are going to the STC directory&lt;br /&gt;
 &amp;lt;tt&amp;gt;cd ..\..\contrib\build\stc&amp;lt;/tt&amp;gt;&lt;br /&gt;
We clean the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc clean&amp;lt;/tt&amp;gt;&lt;br /&gt;
And we going to compile it. Make sure you have the same build options as before.&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
So now everything is compiled for using codeblocks.&lt;br /&gt;
&lt;br /&gt;
== Copy libraries ==&lt;br /&gt;
When compilation is finished it is usefull to copy the libs to another directory. By doing this you can make several builds (e.g. debug and release).&lt;br /&gt;
* So first we create a directory this could be done in &amp;lt;WXWIN&amp;gt;\lib.&lt;br /&gt;
* Then we go to the directory &amp;lt;WXWIN&amp;gt;\lib\gcc_dll (could called diffrent when you changed the build options)&lt;br /&gt;
* Now we move all the files (.a .dll) and the directory (msw) to the directory of your choice. (for me it is &amp;lt;WXWIN&amp;gt;\lib\codeblocks)&lt;br /&gt;
'''NOTE:''' Make sure you everything is removed from the directory &amp;lt;WXWIN&amp;gt;\lib\gcc_dll else you can get trouble when compiling another version.&lt;br /&gt;
&lt;br /&gt;
== Setting up paths ==&lt;br /&gt;
Everything is done now, and we can start compiling Code::Blocks, couldn't we? No! First we have to setup the paths.&lt;br /&gt;
Open the codeblocks project (CodeBlocks-wx2.6.0.cbp) and go to the Build options.&lt;br /&gt;
From there you have to go to the tab Directories and Compiler. Here you have to add the following paths (Remember to replace &amp;lt;WXWIN&amp;gt;)&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\lib\codeblocks\msw&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\contrib\include&lt;br /&gt;
The first path is used to find the right setup.h for the build you are using. The other two are for the normal include files.&lt;br /&gt;
&lt;br /&gt;
Now go to the Linker tab and add the following path:&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\lib\codeblocks&lt;br /&gt;
'''NOTE:''' You have to replace this with the directory of your own choice in the previous section!&lt;br /&gt;
&lt;br /&gt;
Now you are finished with the configuration and you can hit the compile button (CTRL-F9). Be aware that Code::Blocks is not officially  support wxWidgets 2.6.1 so it is possible that new files are not yet in the project. You have to do this by your self.&lt;/div&gt;</summary>
		<author><name>Mispunt</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=93</id>
		<title>Compiling wxWidgets 2.6.2 to develop Code::Blocks (MSW)</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=93"/>
		<updated>2005-06-09T08:41:46Z</updated>

		<summary type="html">&lt;p&gt;Mispunt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are the instructions to compile wxWidgets do you can compile Code::Blocks on your own.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' These instructions are MS Windows (TM) specific, but because we are using MinGW it should be possible to use these instructions with some modifications on other platforms.&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
If you don't have the Code::Blocks + MinGW bundle, grab the latest MinGW stuff from the [http://www.mingw.org/download.shtml#hdr2 MinGW site] and install it under a directory you like.&lt;br /&gt;
'''NOTE:''' In these instroctions we're calling the MinGW directory &amp;lt;MINGW&amp;gt;, so you have to replace that with you're own directory.&lt;br /&gt;
&lt;br /&gt;
'''If you DO have the Code::Blocks + MinGW bundle, or have already installed MINGW on your own, you can skip this section.'''&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' The files are compressed in the tar.gz format. You need a third-party extraction utility to unzip them. (like 7-zip)&lt;br /&gt;
&lt;br /&gt;
You need at least the following files:&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-core-3.4.2-20040916-1.tar.gz?download gcc-core-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-g++-3.4.2-20040916-1.tar.gz?download gcc-g++-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-runtime-3.7.tar.gz?download mingw-runtime-3.7.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-utils-0.3.tar.gz?download mingw-utils-0.3.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/w32api-3.2.tar.gz?download w32api-3.2.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/binutils-2.15.91-20040904-1.tar.gz?download binutils-2.15.91-20040904-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe?download mingw32-make-3.80.0-3.exe]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gdb-5.2.1-1.exe?download gdb-5.2.1-1.exe]&lt;br /&gt;
GDB is not really needed, but could be usefull for debugging.&lt;br /&gt;
&lt;br /&gt;
After you install, make sure you have the following directories under your path:&lt;br /&gt;
* &amp;lt;MINGW&amp;gt;\bin;&lt;br /&gt;
* &amp;lt;MINGW&amp;gt;\mingw32\bin;&lt;br /&gt;
&lt;br /&gt;
== Download and Install the wxWidgets source code ==&lt;br /&gt;
The wxWidgets 2.6.1 distribution can be found at the [http://www.wxwidgets.org/dl_msw2.htm#stable wxWidgets website]. (Note that ther e is also a winhelp file available.) You can get choose between an installer and a zip file. You can just get the zip file because the installer is also a zipped version.&lt;br /&gt;
&lt;br /&gt;
If you use the plain zip version, make sure to unzip using the full path. Otherwise the directories won't be created correctly.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' In the rest of these instructions we are calling the wxWidgets directory &amp;lt;WXWIN&amp;gt; you have to change it to your own directory. (e.g. &amp;quot;c:\wxWidgets-2.6.1&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
== Check make version ==&lt;br /&gt;
If you didn't install MingW yourself you have to make sure you have the right version of make. Open the command prompt and type:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -v&amp;lt;/tt&amp;gt;&lt;br /&gt;
If the version is 3.80 or greater it is allright to go on, else you have to install the new make.&lt;br /&gt;
&lt;br /&gt;
== Building wxWidgets ==&lt;br /&gt;
Now it is time to compile wxWidgets, open the command promt and change to the wxWidgets directory:&lt;br /&gt;
 &amp;lt;tt&amp;gt;cd &amp;lt;WXWIN&amp;gt;\build\msw&amp;lt;/tt&amp;gt;&lt;br /&gt;
Now we are on the right place we are first going to clean up the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc clean&amp;lt;/tt&amp;gt;&lt;br /&gt;
When everything is clean we can compile wxWidgets:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' these options are the official Code::Blocks options. When you want another version of wxWidgets (unicode or debug) you have to make sure you build a MONOLITHIC version. (One big dll)&lt;br /&gt;
Now you can get a cup of coffee, or do something else, because this could take a long time.&lt;br /&gt;
&lt;br /&gt;
== Build the STC library ==&lt;br /&gt;
If you closed the command promt, you have to open it again.&lt;br /&gt;
We are going to the STC directory&lt;br /&gt;
 &amp;lt;tt&amp;gt;cd ..\..\contrib\build\stc&amp;lt;/tt&amp;gt;&lt;br /&gt;
We clean the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc clean&amp;lt;/tt&amp;gt;&lt;br /&gt;
And we going to compile it. Make sure you have the same build options as before.&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
So now everything is compiled for using codeblocks.&lt;br /&gt;
&lt;br /&gt;
== Copy libraries ==&lt;br /&gt;
When compilation is finished it is usefull to copy the libs to another directory. By doing this you can make several builds (e.g. debug and release).&lt;br /&gt;
* So first we create a directory this could be done in &amp;lt;WXWIN&amp;gt;\lib.&lt;br /&gt;
* Then we go to the directory &amp;lt;WXWIN&amp;gt;\lib\gcc_dll (could called diffrent when you changed the build options)&lt;br /&gt;
* Now we move all the files (.a .dll) and the directory (msw) to the directory of your choice. (for me it is &amp;lt;WXWIN&amp;gt;\lib\codeblocks)&lt;br /&gt;
'''NOTE:''' Make sure you everything is removed from the directory &amp;lt;WXWIN&amp;gt;\lib\gcc_dll else you can get trouble when compiling another version.&lt;br /&gt;
&lt;br /&gt;
== Setting up paths ==&lt;br /&gt;
Everything is done now, and we can start compiling Code::Blocks, couldn't we? No! First we have to setup the paths.&lt;br /&gt;
Open the codeblocks project (CodeBlocks-wx2.6.0.cbp) and go to the Build options.&lt;br /&gt;
From there you have to go to the tab Directories and Compiler. Here you have to add the following paths (Remember to replace &amp;lt;WXWIN&amp;gt;)&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\lib\codeblocks\msw&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\contrib\include&lt;br /&gt;
The first path is used to find the right setup.h for the build you are using. The other two are for the normal include files.&lt;br /&gt;
&lt;br /&gt;
Now go to the Linker tab and add the following path:&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\lib\codeblocks&lt;br /&gt;
'''NOTE:''' You have to replace this with the directory of your own choice in the previous section!&lt;br /&gt;
&lt;br /&gt;
Now you are finished with the configuration and you can hit the compile button (CTRL-F9). Be aware that Code::Blocks is not officially  support wxWidgets 2.6.1 so it is possible that new files are not yet in the project. You have to do this by your self.&lt;/div&gt;</summary>
		<author><name>Mispunt</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=92</id>
		<title>Compiling wxWidgets 2.6.2 to develop Code::Blocks (MSW)</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=92"/>
		<updated>2005-06-09T07:34:39Z</updated>

		<summary type="html">&lt;p&gt;Mispunt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are the instructions to compile wxWidgets do you can compile Code::Blocks on your own.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' These instructions are MS Windows (TM) specific, but because we are using MinGW it should be possible to use these instructions with some modifications on other platforms.&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
If you don't have the Code::Blocks + MinGW bundle, grab the latest MinGW stuff from the [http://www.mingw.org/download.shtml#hdr2 MinGW site] and install it under a directory you like.&lt;br /&gt;
'''NOTE:''' In these instroctions we're calling the MinGW directory &amp;lt;MINGW&amp;gt;, so you have to replace that with you're own directory.&lt;br /&gt;
&lt;br /&gt;
'''If you DO have the Code::Blocks + MinGW bundle, or have already installed MINGW on your own, you can skip this section.'''&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' The files are compressed in the tar.gz format. You need a third-party extraction utility to unzip them. (like 7-zip)&lt;br /&gt;
&lt;br /&gt;
You need at least the following files:&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-core-3.4.2-20040916-1.tar.gz?download gcc-core-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-g++-3.4.2-20040916-1.tar.gz?download gcc-g++-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-runtime-3.7.tar.gz?download mingw-runtime-3.7.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-utils-0.3.tar.gz?download mingw-utils-0.3.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/w32api-3.2.tar.gz?download w32api-3.2.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/binutils-2.15.91-20040904-1.tar.gz?download binutils-2.15.91-20040904-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe?download mingw32-make-3.80.0-3.exe]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gdb-5.2.1-1.exe?download gdb-5.2.1-1.exe]&lt;br /&gt;
GDB is not really needed, but could be usefull for debugging.&lt;br /&gt;
&lt;br /&gt;
After you install, make sure you have the following directories under your path:&lt;br /&gt;
* &amp;lt;MINGW&amp;gt;\bin;&lt;br /&gt;
* &amp;lt;MINGW&amp;gt;\mingw32\bin;&lt;br /&gt;
&lt;br /&gt;
== Download and Install the wxWidgets source code ==&lt;br /&gt;
The wxWidgets 2.6.1 distribution can be found at the [http://www.wxwidgets.org/dl_msw2.htm#stable wxWidgets website]. (Note that ther e is also a winhelp file available.) You can get choose between an installer and a zip file. You can just get the zip file because the installer is also a zipped version.&lt;br /&gt;
&lt;br /&gt;
If you use the plain zip version, make sure to unzip using the full path. Otherwise the directories won't be created correctly.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' In the rest of these instructions we are calling the wxWidgets directory &amp;lt;WXWIN&amp;gt; you have to change it to your own directory. (e.g. &amp;quot;c:\wxWidgets-2.6.1&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
== Check make version ==&lt;br /&gt;
If you didn't install MingW yourself you have to make sure you have the right version of make. Open the command prompt and type:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -v&amp;lt;/tt&amp;gt;&lt;br /&gt;
If the version is 3.80 or greater it is allright to go on, else you have to install the new make.&lt;br /&gt;
&lt;br /&gt;
== Building wxWidgets ==&lt;br /&gt;
Now it is time to compile wxWidgets, open the command promt and change to the wxWidgets directory:&lt;br /&gt;
 &amp;lt;tt&amp;gt;cd &amp;lt;WXWIN&amp;gt;\build\msw&amp;lt;/tt&amp;gt;&lt;br /&gt;
Now we are on the right place we are first going to clean up the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc clean&amp;lt;/tt&amp;gt;&lt;br /&gt;
When everything is clean we can compile wxWidgets:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' these options are the official Code::Blocks options. When you want another version of wxWidgets (unicode or debug) you have to make sure you build a MONOLITHIC version. (One big dll)&lt;br /&gt;
Now you can get a cup of coffee, or do something else, because this could take a long time.&lt;br /&gt;
&lt;br /&gt;
== Build the STC library ==&lt;br /&gt;
If you closed the command promt, you have to open it again.&lt;br /&gt;
We are going to the STC directory&lt;br /&gt;
 &amp;lt;tt&amp;gt;cd ..\..\contrib\build\stc&amp;lt;/tt&amp;gt;&lt;br /&gt;
We clean the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc clean&amp;lt;/tt&amp;gt;&lt;br /&gt;
And we going to compile it. Make sure you have the same build options as before.&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
So now everything is compiled for using codeblocks.&lt;br /&gt;
&lt;br /&gt;
'''More is comming after I have drunk some coffee :)'''&lt;/div&gt;</summary>
		<author><name>Mispunt</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.4.2_to_develop_Code::Blocks_(MSW)&amp;diff=86</id>
		<title>Compiling wxWidgets 2.4.2 to develop Code::Blocks (MSW)</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.4.2_to_develop_Code::Blocks_(MSW)&amp;diff=86"/>
		<updated>2005-05-26T08:10:50Z</updated>

		<summary type="html">&lt;p&gt;Mispunt: /* Set up MSYS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are the instructions to Install and compile wxWidgets 2.4.2 so you can later compile Code::Blocks on your own.&lt;br /&gt;
&lt;br /&gt;
NOTE: The instructions are MS Windows (TM) specific, but some could be applied to other platforms as well&lt;br /&gt;
&lt;br /&gt;
NOTE: This article is under construction. More info can be found [https://www.codeblocks.org/index.php?name=PNphpBB2&amp;amp;file=viewtopic&amp;amp;t=211&amp;amp;highlight=tutorial in the forums].&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
&lt;br /&gt;
If you don't have the Code::Blocks+MinGW bundle, grab the latest MINGW stuff (including MSYS) from the &lt;br /&gt;
[http://www.mingw.org/download.shtml#hdr2 MINGW site] and install it under a directory you like. In this tutorial we're assumming you're installing MINGW under C:\MINGW.&lt;br /&gt;
&lt;br /&gt;
'''If you DO have the Code::Blocks + MinGW bundle, or have already installed MINGW on your own, you can skip this section.'''&lt;br /&gt;
&lt;br /&gt;
NOTE: The files are compressed in the tar.gz format. You need a third-party extraction utility to unzip them.&lt;br /&gt;
&lt;br /&gt;
The files I (Rick) have installed are:&lt;br /&gt;
&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-core-3.4.2-20040916-1.tar.gz?download gcc-core-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-g++-3.4.2-20040916-1.tar.gz?download gcc-g++-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download MSYS-1.0.10.exe]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-runtime-3.7.tar.gz?download mingw-runtime-3.7.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-utils-0.3.tar.gz?download mingw-utils-0.3.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/w32api-3.2.tar.gz?download w32api-3.2.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/binutils-2.15.91-20040904-1.tar.gz?download binutils-2.15.91-20040904-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gdb-5.2.1-1.exe?download gdb-5.2.1-1.exe]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe?download mingw32-make-3.80.0-3.exe]&lt;br /&gt;
&lt;br /&gt;
After you install, make sure you have the following directories under your path:&lt;br /&gt;
* C:\MINGW\bin;&lt;br /&gt;
* C:\MINGW\mingw32\bin;&lt;br /&gt;
(I'm assumming you installed under C:\MINGW)&lt;br /&gt;
&lt;br /&gt;
== Set up MSYS ==&lt;br /&gt;
&lt;br /&gt;
''NOTE: MSYS '''is not actually required''' for the following procedure to work. Just replace /c/ with c: and it works without MSYS ;) and make sure you have the [ftp://biolpc22.york.ac.uk/pub/ports/mingw32/extra.zip extra.zip]''&lt;br /&gt;
&lt;br /&gt;
The [http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download MSYS package] ('''NOT included in the Code::Blocks+MinGW bundle''') allows you to run unix scripts with Mingw. Think of it as a &amp;quot;mini-linux emulator&amp;quot;. When you run the executable installer, it will provide a link to msys.bat. If it doesn't appear in your desktop, search for it in your programs menu.&lt;br /&gt;
&lt;br /&gt;
The wxWidgets 2.4.2 compilation must be run from inside MSYS. Drive C is found under /c/, drive D under /d/ and so on.&lt;br /&gt;
&lt;br /&gt;
== Download and Install the wxWidgets source code ==&lt;br /&gt;
&lt;br /&gt;
The wxWidgets 2.4.2 distribution can be found at the [http://www.wxwindows.org/dl_msw2.htm#stable242 wxWidgets site]. (Note that there's also a [http://prdownloads.sourceforge.net/wxwindows/wxWindows-2.4.2-WinHelp.zip winhelp file] available). You can choose to install either the [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.4.2-setup.zip setup version] or the [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.4.2.zip plain zip version] (which I find ridiculous, because the setup version is zipped too!).&lt;br /&gt;
&lt;br /&gt;
If you use the plain zip version, make sure to unzip using the full path. Otherwise the directories won't be created correctly.&lt;br /&gt;
On a second thought, you might like to use the setup version :P&lt;br /&gt;
&lt;br /&gt;
I have my wxWidgets installed in '''C:\wxWindows-2.4.2''' . Under MSYS, that should be '''/c/wxWindows-2.4.2''' .&lt;br /&gt;
&lt;br /&gt;
And now that you have all the ingredients, it's time to compile :)&lt;br /&gt;
&lt;br /&gt;
== Build wxWidgets ==&lt;br /&gt;
&lt;br /&gt;
NOTE: We're assumming you installed under C:\wxWindows-2.4.2 .&lt;br /&gt;
&lt;br /&gt;
Before anything, let me warn you: wxWidgets compilation is SLOW. And by SLOW I mean the time equivalent to one or two evolution cycles, like from Triasic to Jurasic, but doubled. So make sure there's a nice show on the TV, or you could invite a friend to play cards. OR you could start preparing the coffee :)&lt;br /&gt;
&lt;br /&gt;
Now, open up your MSYS prompt, and change to the wxWidgets src/msw directory:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;tt&amp;gt;cd /c/wxWindows-2.4.2/src/msw&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then proceed to the build. But first, an important warning that will save you many headaches.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
:'''WARNING!'''&lt;br /&gt;
:If due to a misconfiguration (like changing the version of your MINGW), your compilation fails, '''MAKE SURE''' you clean out the outputs directory with the following command:&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;tt&amp;gt;mingw32-make -f makefile.g95 clean&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:(do it for wxwidgets, stc and xrc. I had weird linker errors and crashes because I didn't clean up the partial compilations). &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And now that everything's clean, proceed to the build:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;tt&amp;gt;mingw32-make -f makefile.g95 FINAL=1 UNICODE=0 WXMAKINGDLL=1&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no &amp;quot;mingw32-make&amp;quot; is found, try this:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;tt&amp;gt;make -f makefile.g95 FINAL=1 UNICODE=0 WXMAKINGDLL=1&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Is it compiling OK? Good! You can now enjoy your coffee :-)&lt;br /&gt;
&lt;br /&gt;
== Build the STC library ==&lt;br /&gt;
&lt;br /&gt;
Still inside MSYS, type:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;cd ../../contrib/src/stc&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That should change the directory to /c/wxWindows-2.4.2/contrib/src/stc.&lt;br /&gt;
Now type:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;mingw32-make -f makefile.g95 FINAL=1 UNICODE=0 WXUSINGDLL=1&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(NOTE: There are NO line breaks in the command, if you see them, they're shown for readability)&lt;br /&gt;
&lt;br /&gt;
== Build the XRC library ==&lt;br /&gt;
&lt;br /&gt;
Still inside MSYS, type:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;cd ../xrc&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That should change the directory to /c/wxWindows-2.4.2/contrib/src/xrc.&lt;br /&gt;
Now type:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;mingw32-make -f makefile.g95 FINAL=1 UNICODE=0 WXUSINGDLL=1&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And that's it! Now you only have to copy the lib and include directories so your MINGW installation can find them.&lt;br /&gt;
&lt;br /&gt;
== Copy the files to your mingw directory or set up the paths ==&lt;br /&gt;
&lt;br /&gt;
This section provides you with two alternatives: The easy one, and the hard one.&lt;br /&gt;
The easy one consists of just copying the files to your MINGW directory. The hard one consists of setting up the paths in codeblocks.&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Copying the wxWidgets files over your MINGW installation ===&lt;br /&gt;
&lt;br /&gt;
NOTE: The following instructions will overwrite part of your MINGW installation. If you're planning to build unicode applications, or use another version of wxWidgets, DO NOT, repeat, '''DO NOT''' follow these! Instead you'll have to set up the paths manually.&lt;br /&gt;
&lt;br /&gt;
So, here's how to copy the files. I (Rick) guarantee this option works, since it's the one I used.&lt;br /&gt;
&lt;br /&gt;
Close your MSYS window, and now open your windows explorer ('''NOT''' internet explorer, but Windows explorer. To open it, just press &amp;quot;(Windows key)+E&amp;quot;&lt;br /&gt;
&lt;br /&gt;
It's recommended to open TWO explorer windows: One for your wxWidgets directory (which we'll change to copy different files), and another to &lt;br /&gt;
==== Copying the header files ====&lt;br /&gt;
In the location bar, select the following path:&lt;br /&gt;
:&amp;lt;tt&amp;gt;C:\wxWindows-2.4.2\include&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select all the files AND DIRECTORIES and copy. &lt;br /&gt;
Change to the directory &amp;quot;include&amp;quot; under your MINGW main directory, and paste.&lt;br /&gt;
&lt;br /&gt;
Now change again the directory to:&lt;br /&gt;
:&amp;lt;&amp;lt;tt&amp;gt;C:\wxWindows-2.4.2\contrib\include&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy all files and directories, and paste them to your MINGW include directory.&lt;br /&gt;
&lt;br /&gt;
==== Copying the library files ====&lt;br /&gt;
&lt;br /&gt;
Change the explorer directory to: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;C:\wxWindows-2.4.2\lib&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And select all the files. Copy and Paste under your MINGW &amp;quot;lib&amp;quot; directory. &lt;br /&gt;
&lt;br /&gt;
==== Copying the setup.h file ====&lt;br /&gt;
&lt;br /&gt;
This one's very important! Normally people know to copy the headers and libs, but miss this step. If you miss it, you'll get LOTS of compilation errors. &lt;br /&gt;
&lt;br /&gt;
Change the explorer directory to:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;C:\wxWindows-2.4.2\lib&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There is a &amp;quot;mswdll&amp;quot; directory there. Under it, there's a &amp;quot;wx&amp;quot; subdirectory, too. Inside it there's a &amp;quot;setup.h&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Copy it, and paste under your MINGW include/wx directory.&lt;br /&gt;
&lt;br /&gt;
(END of option 1)&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Setting up the paths manually ===&lt;br /&gt;
&lt;br /&gt;
These instructions are to be followed by those who plan to use the 2.6 version of wxWidgets, or want to build their own version (i.e. with unicode support). Since you can't use both 2.4.2 and 2.6 libraries at the same time, you have to keep them in separate directories.&lt;br /&gt;
&lt;br /&gt;
(Under construction - Somebody who has done this step, please edit)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
And that's it. Now you're ready to compile Code::Blocks!&lt;/div&gt;</summary>
		<author><name>Mispunt</name></author>
	</entry>
</feed>