<?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=Grv</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=Grv"/>
	<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php/Special:Contributions/Grv"/>
	<updated>2026-05-24T04:29:58Z</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=1247</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=1247"/>
		<updated>2005-12-17T16:51:52Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building unicode wxWidgets &amp;amp; CodeBlocks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are the instructions to compile wxWidgets so that 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 instructions 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 there is also a winhelp file available.) You can 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:''' Download and apply the patches for wxWidgets 2.6.1 source code. wxWidgets Patches for 2.6.1. Various wxMSW fixes:&lt;br /&gt;
http://www.wxwindows.org/patch.htm&lt;br /&gt;
ftp://biolpc22.york.ac.uk/pub/2.6.1/wxWidgets-2.6.1-Patch01.zip&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;&amp;lt;BR&amp;gt;&lt;br /&gt;
'''NOTE: The following directions do not work with msys, or other forms of Unix on windows.'''&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
''Regaurding warning: type attributes are honored only at type definition: ''&amp;lt;BR&amp;gt;&lt;br /&gt;
''the warnings are because the makefile turned all warnings on... you can easily edit it at ur wishes&lt;br /&gt;
''-lowjoel (Moderator wxWidgets forum) {http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?t=3324&amp;amp;start=0&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=&amp;amp;sid=12dc997430a4cb2bc99f0175699f58de}''&amp;lt;BR&amp;gt;&amp;lt;BR&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 of Code::Blocks) ==&lt;br /&gt;
If you closed the command prompt, 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 with 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 does 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 yourself.&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. You have three possibilities&lt;br /&gt;
* put wxmsw26_gcc_cb.dll and wxmsw26_stc_gcc_cb.dll in your PATH&lt;br /&gt;
* or put wxmsw26_gcc_cb.dll and wxmsw26_stc_gcc_cb.dll in C:\windows\system32&lt;br /&gt;
* 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 of 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;'''Run all''' Windows XP 32-bit Build Environment (Retail) batch files '''(find them in '''PlatformSDK\Setup''')''' &amp;lt;br&amp;gt;&lt;br /&gt;
C:\Program Files\Microsoft Visual C++ Toolkit 2003\'''Vc7\bin'''\vcvars32.bat (not needed) &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''The following environment vars must be set/modified/added via 'Control Panel | System | Advanced | Environment Variables'.'''&lt;br /&gt;
&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 unicode wxWidgets &amp;amp; CodeBlocks====&lt;br /&gt;
&lt;br /&gt;
I'm assuming you're using wxWidgets-2.6.2 and it's installed in c:\.  Modify for different minor revisions or install paths.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1.  grab the latest SVN source&lt;br /&gt;
2.  open CodeBlocks-NewBuild.cbp with a text editor:&lt;br /&gt;
    replace all occurances of wxmsw26 with wxmsw26u&lt;br /&gt;
    replace all occurances of msw&amp;quot; with mswu&amp;quot;&lt;br /&gt;
    save this as CodeBlocks-NewBuild-unicode.cbp &lt;br /&gt;
3.  open up a recent version of codeblocks which supports the new build .cbp files.  one of the latest svn binaries which you can find in the forums is your best bet&lt;br /&gt;
4.  open the CodeBlocks-NewBuild-unicode.cbp project file&lt;br /&gt;
5.  goto Project-&amp;gt;Build options-&amp;gt;Custom variables&lt;br /&gt;
    set WX_CFG=Unicode&lt;br /&gt;
6.  save the project and close codeblocks for the changes to take effect (reload the custom variables for the project)&lt;br /&gt;
7.  open codeblocks again and the project file&lt;br /&gt;
&lt;br /&gt;
8.  rename any existing rename c:\wxWidgets-2.6.2\lib\gcc_dll to c:\wxWidgets-2.6.2\lib\gcc_dllNonUnicode&lt;br /&gt;
9.  open a start menu-&amp;gt;run-&amp;gt;cmd.exe prompt&lt;br /&gt;
    cd to c:\wxWidgets-2.6.2\build\msw&lt;br /&gt;
10. type:&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=cb&lt;br /&gt;
11. rename c:\wxWidgets-2.6.2\lib\gcc_dll to c:\wxWidgets-2.6.2\lib\gcc_dllUnicode&lt;br /&gt;
12. open c:\wxWidgets-2.6.2\lib\gcc_dllUnicode\msw\wx\setup.h&lt;br /&gt;
    make sure you have&lt;br /&gt;
    #define wxUSE_UNICODE 1&lt;br /&gt;
    (and not 0)&lt;br /&gt;
&lt;br /&gt;
13. go back to codeblocks and select compile-&amp;gt;rebuild&lt;br /&gt;
    set the wx global variable to c:\wxWidgets-2.6.2 if it prompts&lt;br /&gt;
14. once it finishes, run update.bat&lt;br /&gt;
&amp;lt;/pre&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;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Note:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
If you are compiling the unicode version of wxWidgets (UNICODE=1) and CodeBlocks, then linker errors like:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
 wxscintilla.cpp:2551: undefined reference to `_imp___ZNK8wxString11BeforeFirstEc'&lt;br /&gt;
 wxscintilla.cpp:2552: undefined reference to `_imp___ZNK8wxString10AfterFirstEc'&lt;br /&gt;
 wxscintilla.cpp:2724: undefined reference to `_imp___ZN6wxFileC1EPKcNS_8OpenModeE'&lt;br /&gt;
 wxscintilla.cpp:2736: undefined reference to `_imp___ZN6wxFileC1EPKcNS_8OpenModeE'&lt;br /&gt;
&lt;br /&gt;
mean that you forgot to change &amp;quot;#define wxUSE_UNICODE 0&amp;quot; to &amp;quot;#define wxUSE_UNICODE 1&amp;quot; in wx\setup.h&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=421</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=421"/>
		<updated>2005-12-17T16:48:12Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building unicode wxWidgets &amp;amp; CodeBlocks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are the instructions to compile wxWidgets so that 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 instructions 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 there is also a winhelp file available.) You can 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:''' Download and apply the patches for wxWidgets 2.6.1 source code. wxWidgets Patches for 2.6.1. Various wxMSW fixes:&lt;br /&gt;
http://www.wxwindows.org/patch.htm&lt;br /&gt;
ftp://biolpc22.york.ac.uk/pub/2.6.1/wxWidgets-2.6.1-Patch01.zip&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;&amp;lt;BR&amp;gt;&lt;br /&gt;
'''NOTE: The following directions do not work with msys, or other forms of Unix on windows.'''&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
''Regaurding warning: type attributes are honored only at type definition: ''&amp;lt;BR&amp;gt;&lt;br /&gt;
''the warnings are because the makefile turned all warnings on... you can easily edit it at ur wishes&lt;br /&gt;
''-lowjoel (Moderator wxWidgets forum) {http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?t=3324&amp;amp;start=0&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=&amp;amp;sid=12dc997430a4cb2bc99f0175699f58de}''&amp;lt;BR&amp;gt;&amp;lt;BR&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 of Code::Blocks) ==&lt;br /&gt;
If you closed the command prompt, 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 with 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 does 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 yourself.&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. You have three possibilities&lt;br /&gt;
* put wxmsw26_gcc_cb.dll and wxmsw26_stc_gcc_cb.dll in your PATH&lt;br /&gt;
* or put wxmsw26_gcc_cb.dll and wxmsw26_stc_gcc_cb.dll in C:\windows\system32&lt;br /&gt;
* 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 of 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;'''Run all''' Windows XP 32-bit Build Environment (Retail) batch files '''(find them in '''PlatformSDK\Setup''')''' &amp;lt;br&amp;gt;&lt;br /&gt;
C:\Program Files\Microsoft Visual C++ Toolkit 2003\'''Vc7\bin'''\vcvars32.bat (not needed) &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''The following environment vars must be set/modified/added via 'Control Panel | System | Advanced | Environment Variables'.'''&lt;br /&gt;
&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 unicode wxWidgets &amp;amp; CodeBlocks====&lt;br /&gt;
&lt;br /&gt;
I'm assuming you're using wxWidgets-2.6.2 and it's installed in c:\.  Modify for different minor revisions or install paths.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1.  grab the latest SVN source&lt;br /&gt;
2.  open CodeBlocks-NewBuild.cbp with a text editor:&lt;br /&gt;
    replace all occurances of wxmsw26 with wxmsw26u&lt;br /&gt;
    replace all occurances of msw&amp;quot; with mswu&amp;quot;&lt;br /&gt;
3.  open up a recent version of codeblocks which supports the new build .cbp files.  one of the latest svn binaries which you can find in the forums is your best bet&lt;br /&gt;
4.  open the CodeBlocks-NewBuild.cbp project file&lt;br /&gt;
5.  goto Project-&amp;gt;Build options-&amp;gt;Custom variables&lt;br /&gt;
    set WX_CFG=Unicode&lt;br /&gt;
6.  save the project and close codeblocks for the changes to take effect (reload the custom variables for the project)&lt;br /&gt;
7.  open codeblocks again and the project file&lt;br /&gt;
&lt;br /&gt;
8.  rename any existing rename c:\wxWidgets-2.6.2\lib\gcc_dll to c:\wxWidgets-2.6.2\lib\gcc_dllNonUnicode&lt;br /&gt;
9.  open a start menu-&amp;gt;run-&amp;gt;cmd.exe prompt&lt;br /&gt;
    cd to c:\wxWidgets-2.6.2\build\msw&lt;br /&gt;
10. type:&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=cb&lt;br /&gt;
11. rename c:\wxWidgets-2.6.2\lib\gcc_dll to c:\wxWidgets-2.6.2\lib\gcc_dllUnicode&lt;br /&gt;
12. open c:\wxWidgets-2.6.2\lib\gcc_dllUnicode\msw\wx\setup.h&lt;br /&gt;
    make sure you have&lt;br /&gt;
    #define wxUSE_UNICODE 1&lt;br /&gt;
    (and not 0)&lt;br /&gt;
&lt;br /&gt;
13. go back to codeblocks and select compile-&amp;gt;rebuild&lt;br /&gt;
    set the wx global variable to c:\wxWidgets-2.6.2 if it prompts&lt;br /&gt;
14. once it finishes, run update.bat&lt;br /&gt;
&amp;lt;/pre&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;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Note:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
If you are compiling the unicode version of wxWidgets (UNICODE=1) and CodeBlocks, then linker errors like:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
 wxscintilla.cpp:2551: undefined reference to `_imp___ZNK8wxString11BeforeFirstEc'&lt;br /&gt;
 wxscintilla.cpp:2552: undefined reference to `_imp___ZNK8wxString10AfterFirstEc'&lt;br /&gt;
 wxscintilla.cpp:2724: undefined reference to `_imp___ZN6wxFileC1EPKcNS_8OpenModeE'&lt;br /&gt;
 wxscintilla.cpp:2736: undefined reference to `_imp___ZN6wxFileC1EPKcNS_8OpenModeE'&lt;br /&gt;
&lt;br /&gt;
mean that you forgot to change &amp;quot;#define wxUSE_UNICODE 0&amp;quot; to &amp;quot;#define wxUSE_UNICODE 1&amp;quot; in wx\setup.h&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=420</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=420"/>
		<updated>2005-12-17T16:45:23Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building codeblocks from source (using makefile) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are the instructions to compile wxWidgets so that 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 instructions 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 there is also a winhelp file available.) You can 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:''' Download and apply the patches for wxWidgets 2.6.1 source code. wxWidgets Patches for 2.6.1. Various wxMSW fixes:&lt;br /&gt;
http://www.wxwindows.org/patch.htm&lt;br /&gt;
ftp://biolpc22.york.ac.uk/pub/2.6.1/wxWidgets-2.6.1-Patch01.zip&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;&amp;lt;BR&amp;gt;&lt;br /&gt;
'''NOTE: The following directions do not work with msys, or other forms of Unix on windows.'''&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
''Regaurding warning: type attributes are honored only at type definition: ''&amp;lt;BR&amp;gt;&lt;br /&gt;
''the warnings are because the makefile turned all warnings on... you can easily edit it at ur wishes&lt;br /&gt;
''-lowjoel (Moderator wxWidgets forum) {http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?t=3324&amp;amp;start=0&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=&amp;amp;sid=12dc997430a4cb2bc99f0175699f58de}''&amp;lt;BR&amp;gt;&amp;lt;BR&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 of Code::Blocks) ==&lt;br /&gt;
If you closed the command prompt, 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 with 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 does 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 yourself.&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. You have three possibilities&lt;br /&gt;
* put wxmsw26_gcc_cb.dll and wxmsw26_stc_gcc_cb.dll in your PATH&lt;br /&gt;
* or put wxmsw26_gcc_cb.dll and wxmsw26_stc_gcc_cb.dll in C:\windows\system32&lt;br /&gt;
* 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 of 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;'''Run all''' Windows XP 32-bit Build Environment (Retail) batch files '''(find them in '''PlatformSDK\Setup''')''' &amp;lt;br&amp;gt;&lt;br /&gt;
C:\Program Files\Microsoft Visual C++ Toolkit 2003\'''Vc7\bin'''\vcvars32.bat (not needed) &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''The following environment vars must be set/modified/added via 'Control Panel | System | Advanced | Environment Variables'.'''&lt;br /&gt;
&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 unicode wxWidgets &amp;amp; CodeBlocks====&lt;br /&gt;
&lt;br /&gt;
I'm assuming you're using wxWidgets-2.6.2 and it's installed in c:\.  Modify for different minor revisions or install paths.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1.  grab the latest SVN source&lt;br /&gt;
2.  open CodeBlocks-NewBuild.cbp with a text editor:&lt;br /&gt;
    replace all occurances of wxmsw26 with wxmsw26u&lt;br /&gt;
    replace all occurances of msw&amp;quot; with mswu&amp;quot;&lt;br /&gt;
3.  open up a recent version of codeblocks which supports the new build .cbp files.  one of the latest svn binaries which you can find in the forums is your best bet&lt;br /&gt;
4.  open the CodeBlocks-NewBuild.cbp project file&lt;br /&gt;
5.  goto Project-&amp;gt;Build options-&amp;gt;Custom variables&lt;br /&gt;
    set WX_CFG=Unicode&lt;br /&gt;
6.  save the project and close codeblocks for the changes to take effect (reload the custom variables for the project)&lt;br /&gt;
7.  open codeblocks again and the project file&lt;br /&gt;
&lt;br /&gt;
8.  rename any existing rename c:\wxWidgets-2.6.2\lib\gcc_dll to c:\wxWidgets-2.6.2\lib\gcc_dllNonUnicode&lt;br /&gt;
9.  open a start menu-&amp;gt;run-&amp;gt;cmd.exe prompt&lt;br /&gt;
    cd to c:\wxWidgets-2.6.2\build\msw&lt;br /&gt;
10. type:&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=cb&lt;br /&gt;
11. rename c:\wxWidgets-2.6.2\lib\gcc_dll to c:\wxWidgets-2.6.2\lib\gcc_dllUnicode&lt;br /&gt;
12. open c:\wxWidgets-2.6.2\lib\gcc_dllUnicode\msw\wx\setup.h&lt;br /&gt;
    make sure you have&lt;br /&gt;
    #define wxUSE_UNICODE 1&lt;br /&gt;
    (and not 0)&lt;br /&gt;
&lt;br /&gt;
13. go back to codeblocks and hit compile&lt;br /&gt;
    set the wx global variable to c:\wxWidgets-2.6.2 if it prompts&lt;br /&gt;
&amp;lt;/pre&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;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Note:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
If you are compiling the unicode version of wxWidgets (UNICODE=1) and CodeBlocks, then linker errors like:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
 wxscintilla.cpp:2551: undefined reference to `_imp___ZNK8wxString11BeforeFirstEc'&lt;br /&gt;
 wxscintilla.cpp:2552: undefined reference to `_imp___ZNK8wxString10AfterFirstEc'&lt;br /&gt;
 wxscintilla.cpp:2724: undefined reference to `_imp___ZN6wxFileC1EPKcNS_8OpenModeE'&lt;br /&gt;
 wxscintilla.cpp:2736: undefined reference to `_imp___ZN6wxFileC1EPKcNS_8OpenModeE'&lt;br /&gt;
&lt;br /&gt;
mean that you forgot to change &amp;quot;#define wxUSE_UNICODE 0&amp;quot; to &amp;quot;#define wxUSE_UNICODE 1&amp;quot; in wx\setup.h&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=419</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=419"/>
		<updated>2005-12-15T22:47:32Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building codeblocks from source (using makefile) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are the instructions to compile wxWidgets so that 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 instructions 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 there is also a winhelp file available.) You can 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:''' Download and apply the patches for wxWidgets 2.6.1 source code. wxWidgets Patches for 2.6.1. Various wxMSW fixes:&lt;br /&gt;
http://www.wxwindows.org/patch.htm&lt;br /&gt;
ftp://biolpc22.york.ac.uk/pub/2.6.1/wxWidgets-2.6.1-Patch01.zip&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;&amp;lt;BR&amp;gt;&lt;br /&gt;
'''NOTE: The following directions do not work with msys, or other forms of Unix on windows.'''&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
''Regaurding warning: type attributes are honored only at type definition: ''&amp;lt;BR&amp;gt;&lt;br /&gt;
''the warnings are because the makefile turned all warnings on... you can easily edit it at ur wishes&lt;br /&gt;
''-lowjoel (Moderator wxWidgets forum) {http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?t=3324&amp;amp;start=0&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=&amp;amp;sid=12dc997430a4cb2bc99f0175699f58de}''&amp;lt;BR&amp;gt;&amp;lt;BR&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 of Code::Blocks) ==&lt;br /&gt;
If you closed the command prompt, 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 with 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 does 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 yourself.&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. You have three possibilities&lt;br /&gt;
* put wxmsw26_gcc_cb.dll and wxmsw26_stc_gcc_cb.dll in your PATH&lt;br /&gt;
* or put wxmsw26_gcc_cb.dll and wxmsw26_stc_gcc_cb.dll in C:\windows\system32&lt;br /&gt;
* 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 of 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;'''Run all''' Windows XP 32-bit Build Environment (Retail) batch files '''(find them in '''PlatformSDK\Setup''')''' &amp;lt;br&amp;gt;&lt;br /&gt;
C:\Program Files\Microsoft Visual C++ Toolkit 2003\'''Vc7\bin'''\vcvars32.bat (not needed) &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''The following environment vars must be set/modified/added via 'Control Panel | System | Advanced | Environment Variables'.'''&lt;br /&gt;
&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;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Note:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
If you are compiling the unicode version of wxWidgets (UNICODE=1) and CodeBlocks, then linker errors like:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
 wxscintilla.cpp:2551: undefined reference to `_imp___ZNK8wxString11BeforeFirstEc'&lt;br /&gt;
 wxscintilla.cpp:2552: undefined reference to `_imp___ZNK8wxString10AfterFirstEc'&lt;br /&gt;
 wxscintilla.cpp:2724: undefined reference to `_imp___ZN6wxFileC1EPKcNS_8OpenModeE'&lt;br /&gt;
 wxscintilla.cpp:2736: undefined reference to `_imp___ZN6wxFileC1EPKcNS_8OpenModeE'&lt;br /&gt;
&lt;br /&gt;
mean that you forgot to change &amp;quot;#define wxUSE_UNICODE 0&amp;quot; to &amp;quot;#define wxUSE_UNICODE 1&amp;quot; in wx\setup.h&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=227</id>
		<title>Installing Code::Blocks from source on Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=227"/>
		<updated>2005-09-17T18:22:52Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building Code::Blocks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are instructions on how to build Code::Blocks under Linux. I 've ran and verified this procedure to work under SuSE 9.2 and Fedora Core 3. These instructions should work for all Linux distros, as we 'll be installing from sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
&lt;br /&gt;
In order to sucesfully compile Code::Blocks, the wxWidgets (wxGTK-2.4.2) cross-platform UI library must be installed. In this document, it is not assumed that it is already installed in your system and instructions are given on how to download, build and install it.&lt;br /&gt;
What is '''not''' covered here, is the wxWidgets prerequisites. The most important being GTK2, of course!&lt;br /&gt;
Let me stress it here, while it's early: &amp;lt;u&amp;gt;GTK2 is required&amp;lt;/u&amp;gt;, not GTK1, for Code::Blocks to be operational.&lt;br /&gt;
&lt;br /&gt;
All the instructions below, assume an existing directory named &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;. If you 'll be using a different one, adjust the path to match.&lt;br /&gt;
As a first step create this directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===wxGTK-2.4.2 installation===&lt;br /&gt;
====Getting wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Visit the [http://www.wxwidgets.org wxWidgets] web site. Click on the &amp;quot;Download&amp;quot; button in the sidebar on the left side of the page. You want to download the file named wxGTK-2.4.2.tar.gz (or wxGTK-2.4.2.tar.bz2). Save the file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Uncompressing the wxGTK sources====&lt;br /&gt;
&lt;br /&gt;
After the download finishes, switch to &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, untar the wxGTK sources:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar zxf wxGTK-2.4.2.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar jxf wxGTK-2.4.2.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
depending on which file you downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Patching wxGTK=====&lt;br /&gt;
&lt;br /&gt;
Most newer distros provide gtk2.4.x. Although wxGTK will compile using this gtk version, applications using this wxGTK will not compile succesfully. This happens because some internal function names were changed in later gtk versions and wxGTK-2.4.2, at the time of its release, did not account for these changes.&lt;br /&gt;
If your distro uses this gtk version, you will need to patch the wxGTK sources before the build process.&lt;br /&gt;
You can get the required patch from here (TODO: add link), or create a new file and put the following in it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;//sgl/devel/grimoire/x11-toolkits/wxGTK/gtk-2.4-fix.patch#1 - add change 30747 (text)&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/menu.cpp wxGTK-2.4.2-fix/src/gtk/menu.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/menu.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/menu.cpp	2004-03-29 14:53:34.000000000 +0200&lt;br /&gt;
@@ -30,13 +30,13 @@&lt;br /&gt;
 #ifdef __WXGTK20__&lt;br /&gt;
     #include &amp;lt;glib-object.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
-    #define gtk_accel_group_attach(g, o) _gtk_accel_group_attach((g), (o))&lt;br /&gt;
-    #define gtk_accel_group_detach(g, o) _gtk_accel_group_detach((g), (o))&lt;br /&gt;
+    #define gtk_accel_group_attach(g, o) gtk_window_add_accel_group((o), (g))&lt;br /&gt;
+    #define gtk_accel_group_detach(g, o) gtk_window_remove_accel_group((o), (g))&lt;br /&gt;
     #define gtk_menu_ensure_uline_accel_group(m) gtk_menu_get_accel_group(m)&lt;br /&gt;
 &lt;br /&gt;
-    #define ACCEL_OBJECT        GObject&lt;br /&gt;
+    #define ACCEL_OBJECT        GtkWindow&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;acceleratables&lt;br /&gt;
-    #define ACCEL_OBJ_CAST(obj) G_OBJECT(obj)&lt;br /&gt;
+    #define ACCEL_OBJ_CAST(obj) GTK_WINDOW(obj)&lt;br /&gt;
 #else // GTK+ 1.x&lt;br /&gt;
     #define ACCEL_OBJECT        GtkObject&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;attach_objects&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/settings.cpp wxGTK-2.4.2-fix/src/gtk/settings.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/settings.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/settings.cpp	2004-03-29 15:15:35.000000000 +0200&lt;br /&gt;
@@ -340,8 +340,8 @@&lt;br /&gt;
                 }  &lt;br /&gt;
                 else  &lt;br /&gt;
                 {  &lt;br /&gt;
-                    const gchar *font_name =&lt;br /&gt;
-                        _gtk_rc_context_get_default_font_name(gtk_settings_get_default());&lt;br /&gt;
+                    gchar *font_name;&lt;br /&gt;
+                    g_object_get(gtk_settings_get_default(), &amp;quot;gtk-font-name&amp;quot;, &amp;amp;font_name, NULL);&lt;br /&gt;
                     g_systemFont = new wxFont(wxString::FromAscii(font_name));&lt;br /&gt;
                 }  &lt;br /&gt;
                 gtk_widget_destroy( widget );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;(''Patch copied from http://www.flamerobin.org/dokuwiki/doku.php?id=wiki:wxgtkpatch.'')&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file as &amp;lt;tt&amp;gt;~/devel/gtk-2.4-fix.patch&amp;lt;/tt&amp;gt; and apply it by issuing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
patch -Np0 -i gtk-2.4-fix.patch&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can build wxGTK!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Issue the following commands to build wxGTK-2.4.2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel/wxGTK-2.4.2&lt;br /&gt;
./configure --enable-gtk2&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If something fails when you run the configure command, some wxGTK prerequisite is probably missing. Read through the output and figure out what's missing.&lt;br /&gt;
If all's gone well, after 10 to 30 minutes (depending on your machine), the wxGTK library should be ready. Time to install it, system-wide:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above command will ask you for the root's password (you &amp;lt;u&amp;gt;are&amp;lt;/u&amp;gt; working as a regular user, aren't you?) and then it will install the library and the needed development files in your system.&lt;br /&gt;
&lt;br /&gt;
The next step is to build STC: the wxWidgets wrapper for Scintilla (the editor). This is located in the contrib subdir hierarchy. To do this, issue the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd contrib/src/stc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you 're done, STC will have been installed too. All that's left, is the XRC library which is used to load XML resources. Type the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ../xrc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;NOTE:&amp;lt;/u&amp;gt; ''The Fedora Core 3 installation I tested this procedure, did not have /usr/local/lib in the library search path. I had to manually add /usr/local/lib in /etc/ld.so.conf as root and then issue ldconfig, as root again.''&lt;br /&gt;
&lt;br /&gt;
That's it! If you reached here, congratulations! You 've built and installed wxGTK in your system.&lt;br /&gt;
You 're now ready to download and build Code::Blocks - i.e. the easy part :)&lt;br /&gt;
&lt;br /&gt;
====wxWidgets 2.6.1 build====&lt;br /&gt;
&lt;br /&gt;
In case you want to use wxGTK 2.6.1 instead.&lt;br /&gt;
Here we will create a seperate build directory instead of building from the src directory, so that we can easily rebuild with different options (unicode / ansi, monolithic / many libs, etc).&lt;br /&gt;
&lt;br /&gt;
The documentation says the default is for gtk2 to use unicode and wx &amp;gt; 2.5 to build as a monolithic library.  This doesn't appear to be the case, so these flags are passed to configure.&lt;br /&gt;
&lt;br /&gt;
 mkdir build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 cd build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 ../configure --prefix=/opt/wx/2.6 \&lt;br /&gt;
        --enable-xrc \&lt;br /&gt;
        --enable-monolithic \&lt;br /&gt;
        --enable-unicode&lt;br /&gt;
 make&lt;br /&gt;
 make -C contrib/src/stc&lt;br /&gt;
 su&lt;br /&gt;
 make install&lt;br /&gt;
 make -C contrib/src/stc install&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
(Note: it's not necessary to make or install stc if you're compiling cvs HEAD)&lt;br /&gt;
&lt;br /&gt;
add /opt/wx/2.6/bin to the PATH (if you're shell is bash then edit /etc/profile or ~/.bash_profile).  an example PATH&lt;br /&gt;
 export PATH=/usr/bin:/opt/wx/2.6/bin:$PATH&lt;br /&gt;
add /opt/wx/2.6/lib to /etc/ld.so.conf (nano /etc/ld.so.conf)&lt;br /&gt;
then run:&lt;br /&gt;
 ldconfig&lt;br /&gt;
 source /etc/profile&lt;br /&gt;
&lt;br /&gt;
That's it.  Now the linker will look in /opt/wx/2.6/lib for wx libraries and you will have a monolithic shared library unicode build.&lt;br /&gt;
&lt;br /&gt;
To check that things are working, type:&lt;br /&gt;
 wx-config --prefix&lt;br /&gt;
which should give you /opt/wx/2.6&lt;br /&gt;
 wx-config --libs&lt;br /&gt;
which should have at least&lt;br /&gt;
 -L/opt/wx/2.6/lib -lwx_gtk2-2.6&lt;br /&gt;
but can contain other flags as well.&lt;br /&gt;
 which wx-config&lt;br /&gt;
should return /opt/wx/2.6/bin/wx-config&lt;br /&gt;
&lt;br /&gt;
===Code::Blocks installation===&lt;br /&gt;
&lt;br /&gt;
====Downloading Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
You can get Code::Blocks source code in one of two ways:&lt;br /&gt;
* Download the latest source package, or&lt;br /&gt;
* Get the latest sources from the CVS repository.&lt;br /&gt;
Both methods, are described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Downloading the latest source package=====&lt;br /&gt;
&lt;br /&gt;
Go to the Code::Blocks [https://www.codeblocks.org web site] and download the latest source package. This would be the &amp;quot; Code::Blocks IDE version 1.0-finalbeta source code (tarball)&amp;quot; codeblocks-1.0-finalbeta.tar.gz.&lt;br /&gt;
Save this file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt; and then untar it:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
tar zxf codeblocks-1.0-finalbeta.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;~/devel/codeblocks-1.0-finalbeta&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks-1.0-finalbeta/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Getting the latest sources from CVS=====&lt;br /&gt;
&lt;br /&gt;
For the following to work, you need to have the &amp;lt;tt&amp;gt;cvs&amp;lt;/tt&amp;gt; command line client installed on your system.&lt;br /&gt;
First you need to login to the CVS server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When asked for a password, press enter.&lt;br /&gt;
Now, just checkout (i.e. download) the sources from the repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks co codeblocks&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;codeblocks&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
To build Code::Blocks all you have to do now is type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will build everything: the application and the plugins. The final step is to update the working environment for your system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following notes about converting the line endings does '''not''' apply to the CVS Version! The &amp;quot;update&amp;quot; script included there works just fine.&lt;br /&gt;
&lt;br /&gt;
'''Important note:''' Don't run that final make yet! The &amp;quot;update&amp;quot; script seems to be using Dos character encoding, which will result in its failure to run on Linux. To fix this, use dos2unix:&lt;br /&gt;
&lt;br /&gt;
To install it in Gentoo, do:&lt;br /&gt;
&lt;br /&gt;
 # emerge -av dos2unix&lt;br /&gt;
&lt;br /&gt;
In Debian and Ubuntu, do (as root, or using sudo etc.):&lt;br /&gt;
&lt;br /&gt;
 # apt-get install sysutils&lt;br /&gt;
&lt;br /&gt;
This will install dos2unix. Now we are ready to convert the script.&lt;br /&gt;
 # dos2unix -n update update.unix&lt;br /&gt;
 # chmod +x update.unix&lt;br /&gt;
 # ./update.unix&lt;br /&gt;
The first line converts the script character encoding, the second makes it executable and the third runs it. This trick is from a forum post by ilkapo.&lt;br /&gt;
&lt;br /&gt;
OK. Now that the update script is converted to unix format, you can run the final make:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything's gone well, congratulations! You should be able to launch Code::Blocks by running the generated &amp;lt;tt&amp;gt;run.sh&amp;lt;/tt&amp;gt; script in the &amp;lt;tt&amp;gt;output&amp;lt;/tt&amp;gt; subdir:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;output/run.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script can be ran from anywhere in your system so, yes, you can make a shortcut to it on your desktop ;)&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
.............................................&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you're compiling the cvs HEAD verions of CodeBlocks (or future versions) then the unix build has switched to autotools.  So first build wxWidgets as described above and then build CodeBlocks as follows:&lt;br /&gt;
&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
&lt;br /&gt;
This sets up the configure script and it's dependencies.  It only needs to be run once (after downloading the source from cvs).  If you get errors like:&lt;br /&gt;
 aclocal:configure.in:61: warning: macro `AM_OPTIONS_WXCONFIG' not found in library&lt;br /&gt;
Then aclocal is having trouble finding the wxWidgets .m4 files.  You can do one of two things:&lt;br /&gt;
To just get bootstrap to find the path this time do:&lt;br /&gt;
 export ACLOCAL_FLAGS=&amp;quot;--acdir=`wx-config --prefix`/share/aclocal&amp;quot;&lt;br /&gt;
To change the aclocal search path more permanently do:&lt;br /&gt;
 echo `wx-config --prefix`/share/aclocal &amp;gt;&amp;gt; /usr/share/aclocal/dirlist&lt;br /&gt;
Then aclocal will also search somewhere like /opt/wx/2.6/share/aclocal&lt;br /&gt;
&lt;br /&gt;
Once you've run the bootstrap script, installing is as simple as:&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
To uninstall you can later run:&lt;br /&gt;
 make uninstall&lt;br /&gt;
&lt;br /&gt;
If you want to recompile everything, first run:&lt;br /&gt;
 make clean&lt;br /&gt;
and then follow the above sequence for installing.&lt;br /&gt;
&lt;br /&gt;
By default, CodeBlocks will install to /usr/local.  If you want it in its own tree (so you can have multiple versions of CodeBlocks, each in its own subdirectory of /opt) replace the above ./configure command with:&lt;br /&gt;
 ./configure --prefix=/opt/codeblocks-cvs&lt;br /&gt;
or similar.  Then you can later install a different build like:&lt;br /&gt;
 ./configure --prefix=/opt/codeblocks2-cvs&lt;br /&gt;
followed by 'make &amp;amp;&amp;amp; make install' as usual.&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=208</id>
		<title>Installing Code::Blocks from source on Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=208"/>
		<updated>2005-09-17T18:10:23Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* wxWidgets 2.6.1 build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are instructions on how to build Code::Blocks under Linux. I 've ran and verified this procedure to work under SuSE 9.2 and Fedora Core 3. These instructions should work for all Linux distros, as we 'll be installing from sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
&lt;br /&gt;
In order to sucesfully compile Code::Blocks, the wxWidgets (wxGTK-2.4.2) cross-platform UI library must be installed. In this document, it is not assumed that it is already installed in your system and instructions are given on how to download, build and install it.&lt;br /&gt;
What is '''not''' covered here, is the wxWidgets prerequisites. The most important being GTK2, of course!&lt;br /&gt;
Let me stress it here, while it's early: &amp;lt;u&amp;gt;GTK2 is required&amp;lt;/u&amp;gt;, not GTK1, for Code::Blocks to be operational.&lt;br /&gt;
&lt;br /&gt;
All the instructions below, assume an existing directory named &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;. If you 'll be using a different one, adjust the path to match.&lt;br /&gt;
As a first step create this directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===wxGTK-2.4.2 installation===&lt;br /&gt;
====Getting wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Visit the [http://www.wxwidgets.org wxWidgets] web site. Click on the &amp;quot;Download&amp;quot; button in the sidebar on the left side of the page. You want to download the file named wxGTK-2.4.2.tar.gz (or wxGTK-2.4.2.tar.bz2). Save the file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Uncompressing the wxGTK sources====&lt;br /&gt;
&lt;br /&gt;
After the download finishes, switch to &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, untar the wxGTK sources:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar zxf wxGTK-2.4.2.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar jxf wxGTK-2.4.2.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
depending on which file you downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Patching wxGTK=====&lt;br /&gt;
&lt;br /&gt;
Most newer distros provide gtk2.4.x. Although wxGTK will compile using this gtk version, applications using this wxGTK will not compile succesfully. This happens because some internal function names were changed in later gtk versions and wxGTK-2.4.2, at the time of its release, did not account for these changes.&lt;br /&gt;
If your distro uses this gtk version, you will need to patch the wxGTK sources before the build process.&lt;br /&gt;
You can get the required patch from here (TODO: add link), or create a new file and put the following in it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;//sgl/devel/grimoire/x11-toolkits/wxGTK/gtk-2.4-fix.patch#1 - add change 30747 (text)&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/menu.cpp wxGTK-2.4.2-fix/src/gtk/menu.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/menu.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/menu.cpp	2004-03-29 14:53:34.000000000 +0200&lt;br /&gt;
@@ -30,13 +30,13 @@&lt;br /&gt;
 #ifdef __WXGTK20__&lt;br /&gt;
     #include &amp;lt;glib-object.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
-    #define gtk_accel_group_attach(g, o) _gtk_accel_group_attach((g), (o))&lt;br /&gt;
-    #define gtk_accel_group_detach(g, o) _gtk_accel_group_detach((g), (o))&lt;br /&gt;
+    #define gtk_accel_group_attach(g, o) gtk_window_add_accel_group((o), (g))&lt;br /&gt;
+    #define gtk_accel_group_detach(g, o) gtk_window_remove_accel_group((o), (g))&lt;br /&gt;
     #define gtk_menu_ensure_uline_accel_group(m) gtk_menu_get_accel_group(m)&lt;br /&gt;
 &lt;br /&gt;
-    #define ACCEL_OBJECT        GObject&lt;br /&gt;
+    #define ACCEL_OBJECT        GtkWindow&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;acceleratables&lt;br /&gt;
-    #define ACCEL_OBJ_CAST(obj) G_OBJECT(obj)&lt;br /&gt;
+    #define ACCEL_OBJ_CAST(obj) GTK_WINDOW(obj)&lt;br /&gt;
 #else // GTK+ 1.x&lt;br /&gt;
     #define ACCEL_OBJECT        GtkObject&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;attach_objects&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/settings.cpp wxGTK-2.4.2-fix/src/gtk/settings.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/settings.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/settings.cpp	2004-03-29 15:15:35.000000000 +0200&lt;br /&gt;
@@ -340,8 +340,8 @@&lt;br /&gt;
                 }  &lt;br /&gt;
                 else  &lt;br /&gt;
                 {  &lt;br /&gt;
-                    const gchar *font_name =&lt;br /&gt;
-                        _gtk_rc_context_get_default_font_name(gtk_settings_get_default());&lt;br /&gt;
+                    gchar *font_name;&lt;br /&gt;
+                    g_object_get(gtk_settings_get_default(), &amp;quot;gtk-font-name&amp;quot;, &amp;amp;font_name, NULL);&lt;br /&gt;
                     g_systemFont = new wxFont(wxString::FromAscii(font_name));&lt;br /&gt;
                 }  &lt;br /&gt;
                 gtk_widget_destroy( widget );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;(''Patch copied from http://www.flamerobin.org/dokuwiki/doku.php?id=wiki:wxgtkpatch.'')&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file as &amp;lt;tt&amp;gt;~/devel/gtk-2.4-fix.patch&amp;lt;/tt&amp;gt; and apply it by issuing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
patch -Np0 -i gtk-2.4-fix.patch&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can build wxGTK!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Issue the following commands to build wxGTK-2.4.2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel/wxGTK-2.4.2&lt;br /&gt;
./configure --enable-gtk2&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If something fails when you run the configure command, some wxGTK prerequisite is probably missing. Read through the output and figure out what's missing.&lt;br /&gt;
If all's gone well, after 10 to 30 minutes (depending on your machine), the wxGTK library should be ready. Time to install it, system-wide:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above command will ask you for the root's password (you &amp;lt;u&amp;gt;are&amp;lt;/u&amp;gt; working as a regular user, aren't you?) and then it will install the library and the needed development files in your system.&lt;br /&gt;
&lt;br /&gt;
The next step is to build STC: the wxWidgets wrapper for Scintilla (the editor). This is located in the contrib subdir hierarchy. To do this, issue the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd contrib/src/stc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you 're done, STC will have been installed too. All that's left, is the XRC library which is used to load XML resources. Type the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ../xrc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;NOTE:&amp;lt;/u&amp;gt; ''The Fedora Core 3 installation I tested this procedure, did not have /usr/local/lib in the library search path. I had to manually add /usr/local/lib in /etc/ld.so.conf as root and then issue ldconfig, as root again.''&lt;br /&gt;
&lt;br /&gt;
That's it! If you reached here, congratulations! You 've built and installed wxGTK in your system.&lt;br /&gt;
You 're now ready to download and build Code::Blocks - i.e. the easy part :)&lt;br /&gt;
&lt;br /&gt;
====wxWidgets 2.6.1 build====&lt;br /&gt;
&lt;br /&gt;
In case you want to use wxGTK 2.6.1 instead.&lt;br /&gt;
Here we will create a seperate build directory instead of building from the src directory, so that we can easily rebuild with different options (unicode / ansi, monolithic / many libs, etc).&lt;br /&gt;
&lt;br /&gt;
The documentation says the default is for gtk2 to use unicode and wx &amp;gt; 2.5 to build as a monolithic library.  This doesn't appear to be the case, so these flags are passed to configure.&lt;br /&gt;
&lt;br /&gt;
 mkdir build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 cd build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 ../configure --prefix=/opt/wx/2.6 \&lt;br /&gt;
        --enable-xrc \&lt;br /&gt;
        --enable-monolithic \&lt;br /&gt;
        --enable-unicode&lt;br /&gt;
 make&lt;br /&gt;
 make -C contrib/src/stc&lt;br /&gt;
 su&lt;br /&gt;
 make install&lt;br /&gt;
 make -C contrib/src/stc install&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
(Note: it's not necessary to make or install stc if you're compiling cvs HEAD)&lt;br /&gt;
&lt;br /&gt;
add /opt/wx/2.6/bin to the PATH (if you're shell is bash then edit /etc/profile or ~/.bash_profile).  an example PATH&lt;br /&gt;
 export PATH=/usr/bin:/opt/wx/2.6/bin:$PATH&lt;br /&gt;
add /opt/wx/2.6/lib to /etc/ld.so.conf (nano /etc/ld.so.conf)&lt;br /&gt;
then run:&lt;br /&gt;
 ldconfig&lt;br /&gt;
 source /etc/profile&lt;br /&gt;
&lt;br /&gt;
That's it.  Now the linker will look in /opt/wx/2.6/lib for wx libraries and you will have a monolithic shared library unicode build.&lt;br /&gt;
&lt;br /&gt;
To check that things are working, type:&lt;br /&gt;
 wx-config --prefix&lt;br /&gt;
which should give you /opt/wx/2.6&lt;br /&gt;
 wx-config --libs&lt;br /&gt;
which should have at least&lt;br /&gt;
 -L/opt/wx/2.6/lib -lwx_gtk2-2.6&lt;br /&gt;
but can contain other flags as well.&lt;br /&gt;
 which wx-config&lt;br /&gt;
should return /opt/wx/2.6/bin/wx-config&lt;br /&gt;
&lt;br /&gt;
===Code::Blocks installation===&lt;br /&gt;
&lt;br /&gt;
====Downloading Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
You can get Code::Blocks source code in one of two ways:&lt;br /&gt;
* Download the latest source package, or&lt;br /&gt;
* Get the latest sources from the CVS repository.&lt;br /&gt;
Both methods, are described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Downloading the latest source package=====&lt;br /&gt;
&lt;br /&gt;
Go to the Code::Blocks [https://www.codeblocks.org web site] and download the latest source package. This would be the &amp;quot; Code::Blocks IDE version 1.0-finalbeta source code (tarball)&amp;quot; codeblocks-1.0-finalbeta.tar.gz.&lt;br /&gt;
Save this file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt; and then untar it:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
tar zxf codeblocks-1.0-finalbeta.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;~/devel/codeblocks-1.0-finalbeta&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks-1.0-finalbeta/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Getting the latest sources from CVS=====&lt;br /&gt;
&lt;br /&gt;
For the following to work, you need to have the &amp;lt;tt&amp;gt;cvs&amp;lt;/tt&amp;gt; command line client installed on your system.&lt;br /&gt;
First you need to login to the CVS server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When asked for a password, press enter.&lt;br /&gt;
Now, just checkout (i.e. download) the sources from the repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks co codeblocks&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;codeblocks&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
To build Code::Blocks all you have to do now is type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will build everything: the application and the plugins. The final step is to update the working environment for your system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following notes about converting the line endings does '''not''' apply to the CVS Version! The &amp;quot;update&amp;quot; script included there works just fine.&lt;br /&gt;
&lt;br /&gt;
'''Important note:''' Don't run that final make yet! The &amp;quot;update&amp;quot; script seems to be using Dos character encoding, which will result in its failure to run on Linux. To fix this, use dos2unix:&lt;br /&gt;
&lt;br /&gt;
To install it in Gentoo, do:&lt;br /&gt;
&lt;br /&gt;
 # emerge -av dos2unix&lt;br /&gt;
&lt;br /&gt;
In Debian and Ubuntu, do (as root, or using sudo etc.):&lt;br /&gt;
&lt;br /&gt;
 # apt-get install sysutils&lt;br /&gt;
&lt;br /&gt;
This will install dos2unix. Now we are ready to convert the script.&lt;br /&gt;
 # dos2unix -n update update.unix&lt;br /&gt;
 # chmod +x update.unix&lt;br /&gt;
 # ./update.unix&lt;br /&gt;
The first line converts the script character encoding, the second makes it executable and the third runs it. This trick is from a forum post by ilkapo.&lt;br /&gt;
&lt;br /&gt;
OK. Now that the update script is converted to unix format, you can run the final make:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything's gone well, congratulations! You should be able to launch Code::Blocks by running the generated &amp;lt;tt&amp;gt;run.sh&amp;lt;/tt&amp;gt; script in the &amp;lt;tt&amp;gt;output&amp;lt;/tt&amp;gt; subdir:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;output/run.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script can be ran from anywhere in your system so, yes, you can make a shortcut to it on your desktop ;)&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
.............................................&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you're compiling the cvs HEAD verions of CodeBlocks (or future versions) then the unix build has switched to autotools.  So first build wxWidgets as described above and then build CodeBlocks as follows:&lt;br /&gt;
&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
&lt;br /&gt;
This sets up the configure script and it's dependencies.  It only needs to be run once (after downloading the source from cvs).&lt;br /&gt;
&lt;br /&gt;
Then installing is as simple as:&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
To uninstall you can later run:&lt;br /&gt;
 make uninstall&lt;br /&gt;
&lt;br /&gt;
If you want to recompile everything, first run:&lt;br /&gt;
 make clean&lt;br /&gt;
and then follow the above sequence for installing.&lt;br /&gt;
&lt;br /&gt;
By default, CodeBlocks will install to /usr/local.  If you want it in its own tree (so you can have multiple versions of CodeBlocks, each in its own subdirectory of /opt) replace the above ./configure command with:&lt;br /&gt;
 ./configure --prefix=/opt/codeblocks-cvs&lt;br /&gt;
or similar.  Then you can later install a different build like:&lt;br /&gt;
 ./configure --prefix=/opt/codeblocks2-cvs&lt;br /&gt;
followed by 'make &amp;amp;&amp;amp; make install' as usual.&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=207</id>
		<title>Installing Code::Blocks from source on Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=207"/>
		<updated>2005-09-17T08:54:29Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building Code::Blocks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are instructions on how to build Code::Blocks under Linux. I 've ran and verified this procedure to work under SuSE 9.2 and Fedora Core 3. These instructions should work for all Linux distros, as we 'll be installing from sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
&lt;br /&gt;
In order to sucesfully compile Code::Blocks, the wxWidgets (wxGTK-2.4.2) cross-platform UI library must be installed. In this document, it is not assumed that it is already installed in your system and instructions are given on how to download, build and install it.&lt;br /&gt;
What is '''not''' covered here, is the wxWidgets prerequisites. The most important being GTK2, of course!&lt;br /&gt;
Let me stress it here, while it's early: &amp;lt;u&amp;gt;GTK2 is required&amp;lt;/u&amp;gt;, not GTK1, for Code::Blocks to be operational.&lt;br /&gt;
&lt;br /&gt;
All the instructions below, assume an existing directory named &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;. If you 'll be using a different one, adjust the path to match.&lt;br /&gt;
As a first step create this directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===wxGTK-2.4.2 installation===&lt;br /&gt;
====Getting wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Visit the [http://www.wxwidgets.org wxWidgets] web site. Click on the &amp;quot;Download&amp;quot; button in the sidebar on the left side of the page. You want to download the file named wxGTK-2.4.2.tar.gz (or wxGTK-2.4.2.tar.bz2). Save the file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Uncompressing the wxGTK sources====&lt;br /&gt;
&lt;br /&gt;
After the download finishes, switch to &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, untar the wxGTK sources:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar zxf wxGTK-2.4.2.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar jxf wxGTK-2.4.2.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
depending on which file you downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Patching wxGTK=====&lt;br /&gt;
&lt;br /&gt;
Most newer distros provide gtk2.4.x. Although wxGTK will compile using this gtk version, applications using this wxGTK will not compile succesfully. This happens because some internal function names were changed in later gtk versions and wxGTK-2.4.2, at the time of its release, did not account for these changes.&lt;br /&gt;
If your distro uses this gtk version, you will need to patch the wxGTK sources before the build process.&lt;br /&gt;
You can get the required patch from here (TODO: add link), or create a new file and put the following in it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;//sgl/devel/grimoire/x11-toolkits/wxGTK/gtk-2.4-fix.patch#1 - add change 30747 (text)&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/menu.cpp wxGTK-2.4.2-fix/src/gtk/menu.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/menu.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/menu.cpp	2004-03-29 14:53:34.000000000 +0200&lt;br /&gt;
@@ -30,13 +30,13 @@&lt;br /&gt;
 #ifdef __WXGTK20__&lt;br /&gt;
     #include &amp;lt;glib-object.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
-    #define gtk_accel_group_attach(g, o) _gtk_accel_group_attach((g), (o))&lt;br /&gt;
-    #define gtk_accel_group_detach(g, o) _gtk_accel_group_detach((g), (o))&lt;br /&gt;
+    #define gtk_accel_group_attach(g, o) gtk_window_add_accel_group((o), (g))&lt;br /&gt;
+    #define gtk_accel_group_detach(g, o) gtk_window_remove_accel_group((o), (g))&lt;br /&gt;
     #define gtk_menu_ensure_uline_accel_group(m) gtk_menu_get_accel_group(m)&lt;br /&gt;
 &lt;br /&gt;
-    #define ACCEL_OBJECT        GObject&lt;br /&gt;
+    #define ACCEL_OBJECT        GtkWindow&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;acceleratables&lt;br /&gt;
-    #define ACCEL_OBJ_CAST(obj) G_OBJECT(obj)&lt;br /&gt;
+    #define ACCEL_OBJ_CAST(obj) GTK_WINDOW(obj)&lt;br /&gt;
 #else // GTK+ 1.x&lt;br /&gt;
     #define ACCEL_OBJECT        GtkObject&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;attach_objects&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/settings.cpp wxGTK-2.4.2-fix/src/gtk/settings.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/settings.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/settings.cpp	2004-03-29 15:15:35.000000000 +0200&lt;br /&gt;
@@ -340,8 +340,8 @@&lt;br /&gt;
                 }  &lt;br /&gt;
                 else  &lt;br /&gt;
                 {  &lt;br /&gt;
-                    const gchar *font_name =&lt;br /&gt;
-                        _gtk_rc_context_get_default_font_name(gtk_settings_get_default());&lt;br /&gt;
+                    gchar *font_name;&lt;br /&gt;
+                    g_object_get(gtk_settings_get_default(), &amp;quot;gtk-font-name&amp;quot;, &amp;amp;font_name, NULL);&lt;br /&gt;
                     g_systemFont = new wxFont(wxString::FromAscii(font_name));&lt;br /&gt;
                 }  &lt;br /&gt;
                 gtk_widget_destroy( widget );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;(''Patch copied from http://www.flamerobin.org/dokuwiki/doku.php?id=wiki:wxgtkpatch.'')&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file as &amp;lt;tt&amp;gt;~/devel/gtk-2.4-fix.patch&amp;lt;/tt&amp;gt; and apply it by issuing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
patch -Np0 -i gtk-2.4-fix.patch&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can build wxGTK!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Issue the following commands to build wxGTK-2.4.2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel/wxGTK-2.4.2&lt;br /&gt;
./configure --enable-gtk2&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If something fails when you run the configure command, some wxGTK prerequisite is probably missing. Read through the output and figure out what's missing.&lt;br /&gt;
If all's gone well, after 10 to 30 minutes (depending on your machine), the wxGTK library should be ready. Time to install it, system-wide:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above command will ask you for the root's password (you &amp;lt;u&amp;gt;are&amp;lt;/u&amp;gt; working as a regular user, aren't you?) and then it will install the library and the needed development files in your system.&lt;br /&gt;
&lt;br /&gt;
The next step is to build STC: the wxWidgets wrapper for Scintilla (the editor). This is located in the contrib subdir hierarchy. To do this, issue the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd contrib/src/stc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you 're done, STC will have been installed too. All that's left, is the XRC library which is used to load XML resources. Type the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ../xrc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;NOTE:&amp;lt;/u&amp;gt; ''The Fedora Core 3 installation I tested this procedure, did not have /usr/local/lib in the library search path. I had to manually add /usr/local/lib in /etc/ld.so.conf as root and then issue ldconfig, as root again.''&lt;br /&gt;
&lt;br /&gt;
That's it! If you reached here, congratulations! You 've built and installed wxGTK in your system.&lt;br /&gt;
You 're now ready to download and build Code::Blocks - i.e. the easy part :)&lt;br /&gt;
&lt;br /&gt;
====wxWidgets 2.6.1 build====&lt;br /&gt;
&lt;br /&gt;
In case you want to use wxGTK 2.6.1 instead.&lt;br /&gt;
Here we will create a seperate build directory instead of building from the src directory, so that we can easily rebuild with different options (unicode / ansi, monolithic / many libs, etc).&lt;br /&gt;
&lt;br /&gt;
The documentation says the default is for gtk2 to use unicode and wx &amp;gt; 2.5 to build as a monolithic library.  This doesn't appear to be the case, so these flags are passed to configure.&lt;br /&gt;
&lt;br /&gt;
 mkdir build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 cd build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 ../configure --prefix=/opt/wx/2.6 \&lt;br /&gt;
        --enable-xrc \&lt;br /&gt;
        --enable-monolithic \&lt;br /&gt;
        --enable-unicode&lt;br /&gt;
 make&lt;br /&gt;
 make -C contrib/src/stc&lt;br /&gt;
 su&lt;br /&gt;
 make install&lt;br /&gt;
 make -C contrib/src/stc install&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
(Note: it's not necessary to make or install stc if you're compiling cvs HEAD)&lt;br /&gt;
&lt;br /&gt;
add /opt/wx/2.6/bin to the PATH (if you're shell is bash then edit /etc/profile or ~/.bash_profile).  an example PATH&lt;br /&gt;
 export PATH=/usr/bin:/opt/wx/2.6/bin:$PATH&lt;br /&gt;
add /opt/wx/2.6/lib to /etc/ld.so.conf (nano /etc/ld.so.conf)&lt;br /&gt;
then run:&lt;br /&gt;
 ldconfig&lt;br /&gt;
&lt;br /&gt;
That's it.  Now the linker will look in /opt/wx/2.6/lib for wx libraries and you will have a monolithic shared library unicode build.&lt;br /&gt;
&lt;br /&gt;
To check that things are working, type:&lt;br /&gt;
 wx-config --prefix&lt;br /&gt;
which should give you /opt/wx/2.6&lt;br /&gt;
 wx-config --libs&lt;br /&gt;
which should have at least&lt;br /&gt;
 -L/opt/wx/2.6/lib -lwx_gtk2-2.6&lt;br /&gt;
but can contain other flags as well.&lt;br /&gt;
 which wx-config&lt;br /&gt;
should return /opt/wx/2.6/bin/wx-config&lt;br /&gt;
&lt;br /&gt;
===Code::Blocks installation===&lt;br /&gt;
&lt;br /&gt;
====Downloading Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
You can get Code::Blocks source code in one of two ways:&lt;br /&gt;
* Download the latest source package, or&lt;br /&gt;
* Get the latest sources from the CVS repository.&lt;br /&gt;
Both methods, are described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Downloading the latest source package=====&lt;br /&gt;
&lt;br /&gt;
Go to the Code::Blocks [https://www.codeblocks.org web site] and download the latest source package. This would be the &amp;quot; Code::Blocks IDE version 1.0-finalbeta source code (tarball)&amp;quot; codeblocks-1.0-finalbeta.tar.gz.&lt;br /&gt;
Save this file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt; and then untar it:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
tar zxf codeblocks-1.0-finalbeta.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;~/devel/codeblocks-1.0-finalbeta&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks-1.0-finalbeta/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Getting the latest sources from CVS=====&lt;br /&gt;
&lt;br /&gt;
For the following to work, you need to have the &amp;lt;tt&amp;gt;cvs&amp;lt;/tt&amp;gt; command line client installed on your system.&lt;br /&gt;
First you need to login to the CVS server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When asked for a password, press enter.&lt;br /&gt;
Now, just checkout (i.e. download) the sources from the repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks co codeblocks&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;codeblocks&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
To build Code::Blocks all you have to do now is type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will build everything: the application and the plugins. The final step is to update the working environment for your system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following notes about converting the line endings does '''not''' apply to the CVS Version! The &amp;quot;update&amp;quot; script included there works just fine.&lt;br /&gt;
&lt;br /&gt;
'''Important note:''' Don't run that final make yet! The &amp;quot;update&amp;quot; script seems to be using Dos character encoding, which will result in its failure to run on Linux. To fix this, use dos2unix:&lt;br /&gt;
&lt;br /&gt;
To install it in Gentoo, do:&lt;br /&gt;
&lt;br /&gt;
 # emerge -av dos2unix&lt;br /&gt;
&lt;br /&gt;
In Debian and Ubuntu, do (as root, or using sudo etc.):&lt;br /&gt;
&lt;br /&gt;
 # apt-get install sysutils&lt;br /&gt;
&lt;br /&gt;
This will install dos2unix. Now we are ready to convert the script.&lt;br /&gt;
 # dos2unix -n update update.unix&lt;br /&gt;
 # chmod +x update.unix&lt;br /&gt;
 # ./update.unix&lt;br /&gt;
The first line converts the script character encoding, the second makes it executable and the third runs it. This trick is from a forum post by ilkapo.&lt;br /&gt;
&lt;br /&gt;
OK. Now that the update script is converted to unix format, you can run the final make:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything's gone well, congratulations! You should be able to launch Code::Blocks by running the generated &amp;lt;tt&amp;gt;run.sh&amp;lt;/tt&amp;gt; script in the &amp;lt;tt&amp;gt;output&amp;lt;/tt&amp;gt; subdir:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;output/run.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script can be ran from anywhere in your system so, yes, you can make a shortcut to it on your desktop ;)&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
.............................................&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you're compiling the cvs HEAD verions of CodeBlocks (or future versions) then the unix build has switched to autotools.  So first build wxWidgets as described above and then build CodeBlocks as follows:&lt;br /&gt;
&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
&lt;br /&gt;
This sets up the configure script and it's dependencies.  It only needs to be run once (after downloading the source from cvs).&lt;br /&gt;
&lt;br /&gt;
Then installing is as simple as:&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
To uninstall you can later run:&lt;br /&gt;
 make uninstall&lt;br /&gt;
&lt;br /&gt;
If you want to recompile everything, first run:&lt;br /&gt;
 make clean&lt;br /&gt;
and then follow the above sequence for installing.&lt;br /&gt;
&lt;br /&gt;
By default, CodeBlocks will install to /usr/local.  If you want it in its own tree (so you can have multiple versions of CodeBlocks, each in its own subdirectory of /opt) replace the above ./configure command with:&lt;br /&gt;
 ./configure --prefix=/opt/codeblocks-cvs&lt;br /&gt;
or similar.  Then you can later install a different build like:&lt;br /&gt;
 ./configure --prefix=/opt/codeblocks2-cvs&lt;br /&gt;
followed by 'make &amp;amp;&amp;amp; make install' as usual.&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=206</id>
		<title>Installing Code::Blocks from source on Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=206"/>
		<updated>2005-09-17T08:50:13Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building Code::Blocks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are instructions on how to build Code::Blocks under Linux. I 've ran and verified this procedure to work under SuSE 9.2 and Fedora Core 3. These instructions should work for all Linux distros, as we 'll be installing from sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
&lt;br /&gt;
In order to sucesfully compile Code::Blocks, the wxWidgets (wxGTK-2.4.2) cross-platform UI library must be installed. In this document, it is not assumed that it is already installed in your system and instructions are given on how to download, build and install it.&lt;br /&gt;
What is '''not''' covered here, is the wxWidgets prerequisites. The most important being GTK2, of course!&lt;br /&gt;
Let me stress it here, while it's early: &amp;lt;u&amp;gt;GTK2 is required&amp;lt;/u&amp;gt;, not GTK1, for Code::Blocks to be operational.&lt;br /&gt;
&lt;br /&gt;
All the instructions below, assume an existing directory named &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;. If you 'll be using a different one, adjust the path to match.&lt;br /&gt;
As a first step create this directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===wxGTK-2.4.2 installation===&lt;br /&gt;
====Getting wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Visit the [http://www.wxwidgets.org wxWidgets] web site. Click on the &amp;quot;Download&amp;quot; button in the sidebar on the left side of the page. You want to download the file named wxGTK-2.4.2.tar.gz (or wxGTK-2.4.2.tar.bz2). Save the file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Uncompressing the wxGTK sources====&lt;br /&gt;
&lt;br /&gt;
After the download finishes, switch to &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, untar the wxGTK sources:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar zxf wxGTK-2.4.2.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar jxf wxGTK-2.4.2.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
depending on which file you downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Patching wxGTK=====&lt;br /&gt;
&lt;br /&gt;
Most newer distros provide gtk2.4.x. Although wxGTK will compile using this gtk version, applications using this wxGTK will not compile succesfully. This happens because some internal function names were changed in later gtk versions and wxGTK-2.4.2, at the time of its release, did not account for these changes.&lt;br /&gt;
If your distro uses this gtk version, you will need to patch the wxGTK sources before the build process.&lt;br /&gt;
You can get the required patch from here (TODO: add link), or create a new file and put the following in it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;//sgl/devel/grimoire/x11-toolkits/wxGTK/gtk-2.4-fix.patch#1 - add change 30747 (text)&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/menu.cpp wxGTK-2.4.2-fix/src/gtk/menu.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/menu.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/menu.cpp	2004-03-29 14:53:34.000000000 +0200&lt;br /&gt;
@@ -30,13 +30,13 @@&lt;br /&gt;
 #ifdef __WXGTK20__&lt;br /&gt;
     #include &amp;lt;glib-object.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
-    #define gtk_accel_group_attach(g, o) _gtk_accel_group_attach((g), (o))&lt;br /&gt;
-    #define gtk_accel_group_detach(g, o) _gtk_accel_group_detach((g), (o))&lt;br /&gt;
+    #define gtk_accel_group_attach(g, o) gtk_window_add_accel_group((o), (g))&lt;br /&gt;
+    #define gtk_accel_group_detach(g, o) gtk_window_remove_accel_group((o), (g))&lt;br /&gt;
     #define gtk_menu_ensure_uline_accel_group(m) gtk_menu_get_accel_group(m)&lt;br /&gt;
 &lt;br /&gt;
-    #define ACCEL_OBJECT        GObject&lt;br /&gt;
+    #define ACCEL_OBJECT        GtkWindow&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;acceleratables&lt;br /&gt;
-    #define ACCEL_OBJ_CAST(obj) G_OBJECT(obj)&lt;br /&gt;
+    #define ACCEL_OBJ_CAST(obj) GTK_WINDOW(obj)&lt;br /&gt;
 #else // GTK+ 1.x&lt;br /&gt;
     #define ACCEL_OBJECT        GtkObject&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;attach_objects&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/settings.cpp wxGTK-2.4.2-fix/src/gtk/settings.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/settings.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/settings.cpp	2004-03-29 15:15:35.000000000 +0200&lt;br /&gt;
@@ -340,8 +340,8 @@&lt;br /&gt;
                 }  &lt;br /&gt;
                 else  &lt;br /&gt;
                 {  &lt;br /&gt;
-                    const gchar *font_name =&lt;br /&gt;
-                        _gtk_rc_context_get_default_font_name(gtk_settings_get_default());&lt;br /&gt;
+                    gchar *font_name;&lt;br /&gt;
+                    g_object_get(gtk_settings_get_default(), &amp;quot;gtk-font-name&amp;quot;, &amp;amp;font_name, NULL);&lt;br /&gt;
                     g_systemFont = new wxFont(wxString::FromAscii(font_name));&lt;br /&gt;
                 }  &lt;br /&gt;
                 gtk_widget_destroy( widget );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;(''Patch copied from http://www.flamerobin.org/dokuwiki/doku.php?id=wiki:wxgtkpatch.'')&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file as &amp;lt;tt&amp;gt;~/devel/gtk-2.4-fix.patch&amp;lt;/tt&amp;gt; and apply it by issuing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
patch -Np0 -i gtk-2.4-fix.patch&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can build wxGTK!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Issue the following commands to build wxGTK-2.4.2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel/wxGTK-2.4.2&lt;br /&gt;
./configure --enable-gtk2&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If something fails when you run the configure command, some wxGTK prerequisite is probably missing. Read through the output and figure out what's missing.&lt;br /&gt;
If all's gone well, after 10 to 30 minutes (depending on your machine), the wxGTK library should be ready. Time to install it, system-wide:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above command will ask you for the root's password (you &amp;lt;u&amp;gt;are&amp;lt;/u&amp;gt; working as a regular user, aren't you?) and then it will install the library and the needed development files in your system.&lt;br /&gt;
&lt;br /&gt;
The next step is to build STC: the wxWidgets wrapper for Scintilla (the editor). This is located in the contrib subdir hierarchy. To do this, issue the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd contrib/src/stc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you 're done, STC will have been installed too. All that's left, is the XRC library which is used to load XML resources. Type the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ../xrc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;NOTE:&amp;lt;/u&amp;gt; ''The Fedora Core 3 installation I tested this procedure, did not have /usr/local/lib in the library search path. I had to manually add /usr/local/lib in /etc/ld.so.conf as root and then issue ldconfig, as root again.''&lt;br /&gt;
&lt;br /&gt;
That's it! If you reached here, congratulations! You 've built and installed wxGTK in your system.&lt;br /&gt;
You 're now ready to download and build Code::Blocks - i.e. the easy part :)&lt;br /&gt;
&lt;br /&gt;
====wxWidgets 2.6.1 build====&lt;br /&gt;
&lt;br /&gt;
In case you want to use wxGTK 2.6.1 instead.&lt;br /&gt;
Here we will create a seperate build directory instead of building from the src directory, so that we can easily rebuild with different options (unicode / ansi, monolithic / many libs, etc).&lt;br /&gt;
&lt;br /&gt;
The documentation says the default is for gtk2 to use unicode and wx &amp;gt; 2.5 to build as a monolithic library.  This doesn't appear to be the case, so these flags are passed to configure.&lt;br /&gt;
&lt;br /&gt;
 mkdir build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 cd build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 ../configure --prefix=/opt/wx/2.6 \&lt;br /&gt;
        --enable-xrc \&lt;br /&gt;
        --enable-monolithic \&lt;br /&gt;
        --enable-unicode&lt;br /&gt;
 make&lt;br /&gt;
 make -C contrib/src/stc&lt;br /&gt;
 su&lt;br /&gt;
 make install&lt;br /&gt;
 make -C contrib/src/stc install&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
(Note: it's not necessary to make or install stc if you're compiling cvs HEAD)&lt;br /&gt;
&lt;br /&gt;
add /opt/wx/2.6/bin to the PATH (if you're shell is bash then edit /etc/profile or ~/.bash_profile).  an example PATH&lt;br /&gt;
 export PATH=/usr/bin:/opt/wx/2.6/bin:$PATH&lt;br /&gt;
add /opt/wx/2.6/lib to /etc/ld.so.conf (nano /etc/ld.so.conf)&lt;br /&gt;
then run:&lt;br /&gt;
 ldconfig&lt;br /&gt;
&lt;br /&gt;
That's it.  Now the linker will look in /opt/wx/2.6/lib for wx libraries and you will have a monolithic shared library unicode build.&lt;br /&gt;
&lt;br /&gt;
To check that things are working, type:&lt;br /&gt;
 wx-config --prefix&lt;br /&gt;
which should give you /opt/wx/2.6&lt;br /&gt;
 wx-config --libs&lt;br /&gt;
which should have at least&lt;br /&gt;
 -L/opt/wx/2.6/lib -lwx_gtk2-2.6&lt;br /&gt;
but can contain other flags as well.&lt;br /&gt;
 which wx-config&lt;br /&gt;
should return /opt/wx/2.6/bin/wx-config&lt;br /&gt;
&lt;br /&gt;
===Code::Blocks installation===&lt;br /&gt;
&lt;br /&gt;
====Downloading Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
You can get Code::Blocks source code in one of two ways:&lt;br /&gt;
* Download the latest source package, or&lt;br /&gt;
* Get the latest sources from the CVS repository.&lt;br /&gt;
Both methods, are described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Downloading the latest source package=====&lt;br /&gt;
&lt;br /&gt;
Go to the Code::Blocks [https://www.codeblocks.org web site] and download the latest source package. This would be the &amp;quot; Code::Blocks IDE version 1.0-finalbeta source code (tarball)&amp;quot; codeblocks-1.0-finalbeta.tar.gz.&lt;br /&gt;
Save this file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt; and then untar it:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
tar zxf codeblocks-1.0-finalbeta.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;~/devel/codeblocks-1.0-finalbeta&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks-1.0-finalbeta/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Getting the latest sources from CVS=====&lt;br /&gt;
&lt;br /&gt;
For the following to work, you need to have the &amp;lt;tt&amp;gt;cvs&amp;lt;/tt&amp;gt; command line client installed on your system.&lt;br /&gt;
First you need to login to the CVS server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When asked for a password, press enter.&lt;br /&gt;
Now, just checkout (i.e. download) the sources from the repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks co codeblocks&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;codeblocks&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
To build Code::Blocks all you have to do now is type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will build everything: the application and the plugins. The final step is to update the working environment for your system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following notes about converting the line endings does '''not''' apply to the CVS Version! The &amp;quot;update&amp;quot; script included there works just fine.&lt;br /&gt;
&lt;br /&gt;
'''Important note:''' Don't run that final make yet! The &amp;quot;update&amp;quot; script seems to be using Dos character encoding, which will result in its failure to run on Linux. To fix this, use dos2unix:&lt;br /&gt;
&lt;br /&gt;
To install it in Gentoo, do:&lt;br /&gt;
&lt;br /&gt;
 # emerge -av dos2unix&lt;br /&gt;
&lt;br /&gt;
In Debian and Ubuntu, do (as root, or using sudo etc.):&lt;br /&gt;
&lt;br /&gt;
 # apt-get install sysutils&lt;br /&gt;
&lt;br /&gt;
This will install dos2unix. Now we are ready to convert the script.&lt;br /&gt;
 # dos2unix -n update update.unix&lt;br /&gt;
 # chmod +x update.unix&lt;br /&gt;
 # ./update.unix&lt;br /&gt;
The first line converts the script character encoding, the second makes it executable and the third runs it. This trick is from a forum post by ilkapo.&lt;br /&gt;
&lt;br /&gt;
OK. Now that the update script is converted to unix format, you can run the final make:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything's gone well, congratulations! You should be able to launch Code::Blocks by running the generated &amp;lt;tt&amp;gt;run.sh&amp;lt;/tt&amp;gt; script in the &amp;lt;tt&amp;gt;output&amp;lt;/tt&amp;gt; subdir:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;output/run.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script can be ran from anywhere in your system so, yes, you can make a shortcut to it on your desktop ;)&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
If you're compiling the cvs HEAD verions of CodeBlocks (or future versions) then the unix build has switched to autotools.  So first build wxWidgets as described above and then build CodeBlocks as follows:&lt;br /&gt;
&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
&lt;br /&gt;
This sets up the configure script and it's dependencies.  It only needs to be run once (after downloading the source from cvs).&lt;br /&gt;
&lt;br /&gt;
Then installing is as simple as:&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
To uninstall you can later run:&lt;br /&gt;
 make uninstall&lt;br /&gt;
&lt;br /&gt;
If you want to recompile everything, first run:&lt;br /&gt;
 make clean&lt;br /&gt;
and then follow the above sequence for installing.&lt;br /&gt;
&lt;br /&gt;
By default, CodeBlocks will install to /usr/local.  If you want it in its own tree (so you can have multiple versions of CodeBlocks, each in its own subdirectory of /opt) replace the above ./configure command with:&lt;br /&gt;
 ./configure --prefix=/opt/codeblocks-cvs&lt;br /&gt;
or similar.  Then you can later install a different build like:&lt;br /&gt;
 ./configure --prefix=/opt/codeblocks2-cvs&lt;br /&gt;
followed by 'make &amp;amp;&amp;amp; make install' as usual.&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=205</id>
		<title>Installing Code::Blocks from source on Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=205"/>
		<updated>2005-09-17T08:49:42Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building Code::Blocks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are instructions on how to build Code::Blocks under Linux. I 've ran and verified this procedure to work under SuSE 9.2 and Fedora Core 3. These instructions should work for all Linux distros, as we 'll be installing from sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
&lt;br /&gt;
In order to sucesfully compile Code::Blocks, the wxWidgets (wxGTK-2.4.2) cross-platform UI library must be installed. In this document, it is not assumed that it is already installed in your system and instructions are given on how to download, build and install it.&lt;br /&gt;
What is '''not''' covered here, is the wxWidgets prerequisites. The most important being GTK2, of course!&lt;br /&gt;
Let me stress it here, while it's early: &amp;lt;u&amp;gt;GTK2 is required&amp;lt;/u&amp;gt;, not GTK1, for Code::Blocks to be operational.&lt;br /&gt;
&lt;br /&gt;
All the instructions below, assume an existing directory named &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;. If you 'll be using a different one, adjust the path to match.&lt;br /&gt;
As a first step create this directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===wxGTK-2.4.2 installation===&lt;br /&gt;
====Getting wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Visit the [http://www.wxwidgets.org wxWidgets] web site. Click on the &amp;quot;Download&amp;quot; button in the sidebar on the left side of the page. You want to download the file named wxGTK-2.4.2.tar.gz (or wxGTK-2.4.2.tar.bz2). Save the file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Uncompressing the wxGTK sources====&lt;br /&gt;
&lt;br /&gt;
After the download finishes, switch to &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, untar the wxGTK sources:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar zxf wxGTK-2.4.2.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar jxf wxGTK-2.4.2.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
depending on which file you downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Patching wxGTK=====&lt;br /&gt;
&lt;br /&gt;
Most newer distros provide gtk2.4.x. Although wxGTK will compile using this gtk version, applications using this wxGTK will not compile succesfully. This happens because some internal function names were changed in later gtk versions and wxGTK-2.4.2, at the time of its release, did not account for these changes.&lt;br /&gt;
If your distro uses this gtk version, you will need to patch the wxGTK sources before the build process.&lt;br /&gt;
You can get the required patch from here (TODO: add link), or create a new file and put the following in it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;//sgl/devel/grimoire/x11-toolkits/wxGTK/gtk-2.4-fix.patch#1 - add change 30747 (text)&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/menu.cpp wxGTK-2.4.2-fix/src/gtk/menu.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/menu.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/menu.cpp	2004-03-29 14:53:34.000000000 +0200&lt;br /&gt;
@@ -30,13 +30,13 @@&lt;br /&gt;
 #ifdef __WXGTK20__&lt;br /&gt;
     #include &amp;lt;glib-object.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
-    #define gtk_accel_group_attach(g, o) _gtk_accel_group_attach((g), (o))&lt;br /&gt;
-    #define gtk_accel_group_detach(g, o) _gtk_accel_group_detach((g), (o))&lt;br /&gt;
+    #define gtk_accel_group_attach(g, o) gtk_window_add_accel_group((o), (g))&lt;br /&gt;
+    #define gtk_accel_group_detach(g, o) gtk_window_remove_accel_group((o), (g))&lt;br /&gt;
     #define gtk_menu_ensure_uline_accel_group(m) gtk_menu_get_accel_group(m)&lt;br /&gt;
 &lt;br /&gt;
-    #define ACCEL_OBJECT        GObject&lt;br /&gt;
+    #define ACCEL_OBJECT        GtkWindow&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;acceleratables&lt;br /&gt;
-    #define ACCEL_OBJ_CAST(obj) G_OBJECT(obj)&lt;br /&gt;
+    #define ACCEL_OBJ_CAST(obj) GTK_WINDOW(obj)&lt;br /&gt;
 #else // GTK+ 1.x&lt;br /&gt;
     #define ACCEL_OBJECT        GtkObject&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;attach_objects&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/settings.cpp wxGTK-2.4.2-fix/src/gtk/settings.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/settings.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/settings.cpp	2004-03-29 15:15:35.000000000 +0200&lt;br /&gt;
@@ -340,8 +340,8 @@&lt;br /&gt;
                 }  &lt;br /&gt;
                 else  &lt;br /&gt;
                 {  &lt;br /&gt;
-                    const gchar *font_name =&lt;br /&gt;
-                        _gtk_rc_context_get_default_font_name(gtk_settings_get_default());&lt;br /&gt;
+                    gchar *font_name;&lt;br /&gt;
+                    g_object_get(gtk_settings_get_default(), &amp;quot;gtk-font-name&amp;quot;, &amp;amp;font_name, NULL);&lt;br /&gt;
                     g_systemFont = new wxFont(wxString::FromAscii(font_name));&lt;br /&gt;
                 }  &lt;br /&gt;
                 gtk_widget_destroy( widget );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;(''Patch copied from http://www.flamerobin.org/dokuwiki/doku.php?id=wiki:wxgtkpatch.'')&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file as &amp;lt;tt&amp;gt;~/devel/gtk-2.4-fix.patch&amp;lt;/tt&amp;gt; and apply it by issuing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
patch -Np0 -i gtk-2.4-fix.patch&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can build wxGTK!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Issue the following commands to build wxGTK-2.4.2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel/wxGTK-2.4.2&lt;br /&gt;
./configure --enable-gtk2&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If something fails when you run the configure command, some wxGTK prerequisite is probably missing. Read through the output and figure out what's missing.&lt;br /&gt;
If all's gone well, after 10 to 30 minutes (depending on your machine), the wxGTK library should be ready. Time to install it, system-wide:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above command will ask you for the root's password (you &amp;lt;u&amp;gt;are&amp;lt;/u&amp;gt; working as a regular user, aren't you?) and then it will install the library and the needed development files in your system.&lt;br /&gt;
&lt;br /&gt;
The next step is to build STC: the wxWidgets wrapper for Scintilla (the editor). This is located in the contrib subdir hierarchy. To do this, issue the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd contrib/src/stc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you 're done, STC will have been installed too. All that's left, is the XRC library which is used to load XML resources. Type the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ../xrc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;NOTE:&amp;lt;/u&amp;gt; ''The Fedora Core 3 installation I tested this procedure, did not have /usr/local/lib in the library search path. I had to manually add /usr/local/lib in /etc/ld.so.conf as root and then issue ldconfig, as root again.''&lt;br /&gt;
&lt;br /&gt;
That's it! If you reached here, congratulations! You 've built and installed wxGTK in your system.&lt;br /&gt;
You 're now ready to download and build Code::Blocks - i.e. the easy part :)&lt;br /&gt;
&lt;br /&gt;
====wxWidgets 2.6.1 build====&lt;br /&gt;
&lt;br /&gt;
In case you want to use wxGTK 2.6.1 instead.&lt;br /&gt;
Here we will create a seperate build directory instead of building from the src directory, so that we can easily rebuild with different options (unicode / ansi, monolithic / many libs, etc).&lt;br /&gt;
&lt;br /&gt;
The documentation says the default is for gtk2 to use unicode and wx &amp;gt; 2.5 to build as a monolithic library.  This doesn't appear to be the case, so these flags are passed to configure.&lt;br /&gt;
&lt;br /&gt;
 mkdir build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 cd build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 ../configure --prefix=/opt/wx/2.6 \&lt;br /&gt;
        --enable-xrc \&lt;br /&gt;
        --enable-monolithic \&lt;br /&gt;
        --enable-unicode&lt;br /&gt;
 make&lt;br /&gt;
 make -C contrib/src/stc&lt;br /&gt;
 su&lt;br /&gt;
 make install&lt;br /&gt;
 make -C contrib/src/stc install&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
(Note: it's not necessary to make or install stc if you're compiling cvs HEAD)&lt;br /&gt;
&lt;br /&gt;
add /opt/wx/2.6/bin to the PATH (if you're shell is bash then edit /etc/profile or ~/.bash_profile).  an example PATH&lt;br /&gt;
 export PATH=/usr/bin:/opt/wx/2.6/bin:$PATH&lt;br /&gt;
add /opt/wx/2.6/lib to /etc/ld.so.conf (nano /etc/ld.so.conf)&lt;br /&gt;
then run:&lt;br /&gt;
 ldconfig&lt;br /&gt;
&lt;br /&gt;
That's it.  Now the linker will look in /opt/wx/2.6/lib for wx libraries and you will have a monolithic shared library unicode build.&lt;br /&gt;
&lt;br /&gt;
To check that things are working, type:&lt;br /&gt;
 wx-config --prefix&lt;br /&gt;
which should give you /opt/wx/2.6&lt;br /&gt;
 wx-config --libs&lt;br /&gt;
which should have at least&lt;br /&gt;
 -L/opt/wx/2.6/lib -lwx_gtk2-2.6&lt;br /&gt;
but can contain other flags as well.&lt;br /&gt;
 which wx-config&lt;br /&gt;
should return /opt/wx/2.6/bin/wx-config&lt;br /&gt;
&lt;br /&gt;
===Code::Blocks installation===&lt;br /&gt;
&lt;br /&gt;
====Downloading Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
You can get Code::Blocks source code in one of two ways:&lt;br /&gt;
* Download the latest source package, or&lt;br /&gt;
* Get the latest sources from the CVS repository.&lt;br /&gt;
Both methods, are described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Downloading the latest source package=====&lt;br /&gt;
&lt;br /&gt;
Go to the Code::Blocks [https://www.codeblocks.org web site] and download the latest source package. This would be the &amp;quot; Code::Blocks IDE version 1.0-finalbeta source code (tarball)&amp;quot; codeblocks-1.0-finalbeta.tar.gz.&lt;br /&gt;
Save this file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt; and then untar it:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
tar zxf codeblocks-1.0-finalbeta.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;~/devel/codeblocks-1.0-finalbeta&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks-1.0-finalbeta/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Getting the latest sources from CVS=====&lt;br /&gt;
&lt;br /&gt;
For the following to work, you need to have the &amp;lt;tt&amp;gt;cvs&amp;lt;/tt&amp;gt; command line client installed on your system.&lt;br /&gt;
First you need to login to the CVS server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When asked for a password, press enter.&lt;br /&gt;
Now, just checkout (i.e. download) the sources from the repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks co codeblocks&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;codeblocks&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
To build Code::Blocks all you have to do now is type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will build everything: the application and the plugins. The final step is to update the working environment for your system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following notes about converting the line endings does '''not''' apply to the CVS Version! The &amp;quot;update&amp;quot; script included there works just fine.&lt;br /&gt;
&lt;br /&gt;
'''Important note:''' Don't run that final make yet! The &amp;quot;update&amp;quot; script seems to be using Dos character encoding, which will result in its failure to run on Linux. To fix this, use dos2unix:&lt;br /&gt;
&lt;br /&gt;
To install it in Gentoo, do:&lt;br /&gt;
&lt;br /&gt;
 # emerge -av dos2unix&lt;br /&gt;
&lt;br /&gt;
In Debian and Ubuntu, do (as root, or using sudo etc.):&lt;br /&gt;
&lt;br /&gt;
 # apt-get install sysutils&lt;br /&gt;
&lt;br /&gt;
This will install dos2unix. Now we are ready to convert the script.&lt;br /&gt;
 # dos2unix -n update update.unix&lt;br /&gt;
 # chmod +x update.unix&lt;br /&gt;
 # ./update.unix&lt;br /&gt;
The first line converts the script character encoding, the second makes it executable and the third runs it. This trick is from a forum post by ilkapo.&lt;br /&gt;
&lt;br /&gt;
OK. Now that the update script is converted to unix format, you can run the final make:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything's gone well, congratulations! You should be able to launch Code::Blocks by running the generated &amp;lt;tt&amp;gt;run.sh&amp;lt;/tt&amp;gt; script in the &amp;lt;tt&amp;gt;output&amp;lt;/tt&amp;gt; subdir:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;output/run.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script can be ran from anywhere in your system so, yes, you can make a shortcut to it on your desktop ;)&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you're compiling the cvs HEAD verions of CodeBlocks (or future versions) then the unix build has switched to autotools.  So first build wxWidgets as described above and then build CodeBlocks as follows:&lt;br /&gt;
&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
&lt;br /&gt;
This sets up the configure script and it's dependencies.  It only needs to be run once (after downloading the source from cvs).&lt;br /&gt;
&lt;br /&gt;
Then installing is as simple as:&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
To uninstall you can later run:&lt;br /&gt;
 make uninstall&lt;br /&gt;
&lt;br /&gt;
If you want to recompile everything, first run:&lt;br /&gt;
 make clean&lt;br /&gt;
and then follow the above sequence for installing.&lt;br /&gt;
&lt;br /&gt;
By default, CodeBlocks will install to /usr/local.  If you want it in its own tree (so you can have multiple versions of CodeBlocks, each in its own subdirectory of /opt) replace the above ./configure command with:&lt;br /&gt;
 ./configure --prefix=/opt/codeblocks-cvs&lt;br /&gt;
or similar.  Then you can later install a different build like:&lt;br /&gt;
 ./configure --prefix=/opt/codeblocks2-cvs&lt;br /&gt;
followed by 'make &amp;amp;&amp;amp; make install' as usual.&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=204</id>
		<title>Installing Code::Blocks from source on Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=204"/>
		<updated>2005-09-17T08:38:45Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* wxWidgets 2.6.1 build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are instructions on how to build Code::Blocks under Linux. I 've ran and verified this procedure to work under SuSE 9.2 and Fedora Core 3. These instructions should work for all Linux distros, as we 'll be installing from sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
&lt;br /&gt;
In order to sucesfully compile Code::Blocks, the wxWidgets (wxGTK-2.4.2) cross-platform UI library must be installed. In this document, it is not assumed that it is already installed in your system and instructions are given on how to download, build and install it.&lt;br /&gt;
What is '''not''' covered here, is the wxWidgets prerequisites. The most important being GTK2, of course!&lt;br /&gt;
Let me stress it here, while it's early: &amp;lt;u&amp;gt;GTK2 is required&amp;lt;/u&amp;gt;, not GTK1, for Code::Blocks to be operational.&lt;br /&gt;
&lt;br /&gt;
All the instructions below, assume an existing directory named &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;. If you 'll be using a different one, adjust the path to match.&lt;br /&gt;
As a first step create this directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===wxGTK-2.4.2 installation===&lt;br /&gt;
====Getting wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Visit the [http://www.wxwidgets.org wxWidgets] web site. Click on the &amp;quot;Download&amp;quot; button in the sidebar on the left side of the page. You want to download the file named wxGTK-2.4.2.tar.gz (or wxGTK-2.4.2.tar.bz2). Save the file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Uncompressing the wxGTK sources====&lt;br /&gt;
&lt;br /&gt;
After the download finishes, switch to &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, untar the wxGTK sources:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar zxf wxGTK-2.4.2.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar jxf wxGTK-2.4.2.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
depending on which file you downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Patching wxGTK=====&lt;br /&gt;
&lt;br /&gt;
Most newer distros provide gtk2.4.x. Although wxGTK will compile using this gtk version, applications using this wxGTK will not compile succesfully. This happens because some internal function names were changed in later gtk versions and wxGTK-2.4.2, at the time of its release, did not account for these changes.&lt;br /&gt;
If your distro uses this gtk version, you will need to patch the wxGTK sources before the build process.&lt;br /&gt;
You can get the required patch from here (TODO: add link), or create a new file and put the following in it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;//sgl/devel/grimoire/x11-toolkits/wxGTK/gtk-2.4-fix.patch#1 - add change 30747 (text)&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/menu.cpp wxGTK-2.4.2-fix/src/gtk/menu.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/menu.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/menu.cpp	2004-03-29 14:53:34.000000000 +0200&lt;br /&gt;
@@ -30,13 +30,13 @@&lt;br /&gt;
 #ifdef __WXGTK20__&lt;br /&gt;
     #include &amp;lt;glib-object.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
-    #define gtk_accel_group_attach(g, o) _gtk_accel_group_attach((g), (o))&lt;br /&gt;
-    #define gtk_accel_group_detach(g, o) _gtk_accel_group_detach((g), (o))&lt;br /&gt;
+    #define gtk_accel_group_attach(g, o) gtk_window_add_accel_group((o), (g))&lt;br /&gt;
+    #define gtk_accel_group_detach(g, o) gtk_window_remove_accel_group((o), (g))&lt;br /&gt;
     #define gtk_menu_ensure_uline_accel_group(m) gtk_menu_get_accel_group(m)&lt;br /&gt;
 &lt;br /&gt;
-    #define ACCEL_OBJECT        GObject&lt;br /&gt;
+    #define ACCEL_OBJECT        GtkWindow&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;acceleratables&lt;br /&gt;
-    #define ACCEL_OBJ_CAST(obj) G_OBJECT(obj)&lt;br /&gt;
+    #define ACCEL_OBJ_CAST(obj) GTK_WINDOW(obj)&lt;br /&gt;
 #else // GTK+ 1.x&lt;br /&gt;
     #define ACCEL_OBJECT        GtkObject&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;attach_objects&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/settings.cpp wxGTK-2.4.2-fix/src/gtk/settings.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/settings.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/settings.cpp	2004-03-29 15:15:35.000000000 +0200&lt;br /&gt;
@@ -340,8 +340,8 @@&lt;br /&gt;
                 }  &lt;br /&gt;
                 else  &lt;br /&gt;
                 {  &lt;br /&gt;
-                    const gchar *font_name =&lt;br /&gt;
-                        _gtk_rc_context_get_default_font_name(gtk_settings_get_default());&lt;br /&gt;
+                    gchar *font_name;&lt;br /&gt;
+                    g_object_get(gtk_settings_get_default(), &amp;quot;gtk-font-name&amp;quot;, &amp;amp;font_name, NULL);&lt;br /&gt;
                     g_systemFont = new wxFont(wxString::FromAscii(font_name));&lt;br /&gt;
                 }  &lt;br /&gt;
                 gtk_widget_destroy( widget );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;(''Patch copied from http://www.flamerobin.org/dokuwiki/doku.php?id=wiki:wxgtkpatch.'')&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file as &amp;lt;tt&amp;gt;~/devel/gtk-2.4-fix.patch&amp;lt;/tt&amp;gt; and apply it by issuing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
patch -Np0 -i gtk-2.4-fix.patch&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can build wxGTK!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Issue the following commands to build wxGTK-2.4.2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel/wxGTK-2.4.2&lt;br /&gt;
./configure --enable-gtk2&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If something fails when you run the configure command, some wxGTK prerequisite is probably missing. Read through the output and figure out what's missing.&lt;br /&gt;
If all's gone well, after 10 to 30 minutes (depending on your machine), the wxGTK library should be ready. Time to install it, system-wide:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above command will ask you for the root's password (you &amp;lt;u&amp;gt;are&amp;lt;/u&amp;gt; working as a regular user, aren't you?) and then it will install the library and the needed development files in your system.&lt;br /&gt;
&lt;br /&gt;
The next step is to build STC: the wxWidgets wrapper for Scintilla (the editor). This is located in the contrib subdir hierarchy. To do this, issue the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd contrib/src/stc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you 're done, STC will have been installed too. All that's left, is the XRC library which is used to load XML resources. Type the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ../xrc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;NOTE:&amp;lt;/u&amp;gt; ''The Fedora Core 3 installation I tested this procedure, did not have /usr/local/lib in the library search path. I had to manually add /usr/local/lib in /etc/ld.so.conf as root and then issue ldconfig, as root again.''&lt;br /&gt;
&lt;br /&gt;
That's it! If you reached here, congratulations! You 've built and installed wxGTK in your system.&lt;br /&gt;
You 're now ready to download and build Code::Blocks - i.e. the easy part :)&lt;br /&gt;
&lt;br /&gt;
====wxWidgets 2.6.1 build====&lt;br /&gt;
&lt;br /&gt;
In case you want to use wxGTK 2.6.1 instead.&lt;br /&gt;
Here we will create a seperate build directory instead of building from the src directory, so that we can easily rebuild with different options (unicode / ansi, monolithic / many libs, etc).&lt;br /&gt;
&lt;br /&gt;
The documentation says the default is for gtk2 to use unicode and wx &amp;gt; 2.5 to build as a monolithic library.  This doesn't appear to be the case, so these flags are passed to configure.&lt;br /&gt;
&lt;br /&gt;
 mkdir build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 cd build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 ../configure --prefix=/opt/wx/2.6 \&lt;br /&gt;
        --enable-xrc \&lt;br /&gt;
        --enable-monolithic \&lt;br /&gt;
        --enable-unicode&lt;br /&gt;
 make&lt;br /&gt;
 make -C contrib/src/stc&lt;br /&gt;
 su&lt;br /&gt;
 make install&lt;br /&gt;
 make -C contrib/src/stc install&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
(Note: it's not necessary to make or install stc if you're compiling cvs HEAD)&lt;br /&gt;
&lt;br /&gt;
add /opt/wx/2.6/bin to the PATH (if you're shell is bash then edit /etc/profile or ~/.bash_profile).  an example PATH&lt;br /&gt;
 export PATH=/usr/bin:/opt/wx/2.6/bin:$PATH&lt;br /&gt;
add /opt/wx/2.6/lib to /etc/ld.so.conf (nano /etc/ld.so.conf)&lt;br /&gt;
then run:&lt;br /&gt;
 ldconfig&lt;br /&gt;
&lt;br /&gt;
That's it.  Now the linker will look in /opt/wx/2.6/lib for wx libraries and you will have a monolithic shared library unicode build.&lt;br /&gt;
&lt;br /&gt;
To check that things are working, type:&lt;br /&gt;
 wx-config --prefix&lt;br /&gt;
which should give you /opt/wx/2.6&lt;br /&gt;
 wx-config --libs&lt;br /&gt;
which should have at least&lt;br /&gt;
 -L/opt/wx/2.6/lib -lwx_gtk2-2.6&lt;br /&gt;
but can contain other flags as well.&lt;br /&gt;
 which wx-config&lt;br /&gt;
should return /opt/wx/2.6/bin/wx-config&lt;br /&gt;
&lt;br /&gt;
===Code::Blocks installation===&lt;br /&gt;
&lt;br /&gt;
====Downloading Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
You can get Code::Blocks source code in one of two ways:&lt;br /&gt;
* Download the latest source package, or&lt;br /&gt;
* Get the latest sources from the CVS repository.&lt;br /&gt;
Both methods, are described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Downloading the latest source package=====&lt;br /&gt;
&lt;br /&gt;
Go to the Code::Blocks [https://www.codeblocks.org web site] and download the latest source package. This would be the &amp;quot; Code::Blocks IDE version 1.0-finalbeta source code (tarball)&amp;quot; codeblocks-1.0-finalbeta.tar.gz.&lt;br /&gt;
Save this file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt; and then untar it:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
tar zxf codeblocks-1.0-finalbeta.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;~/devel/codeblocks-1.0-finalbeta&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks-1.0-finalbeta/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Getting the latest sources from CVS=====&lt;br /&gt;
&lt;br /&gt;
For the following to work, you need to have the &amp;lt;tt&amp;gt;cvs&amp;lt;/tt&amp;gt; command line client installed on your system.&lt;br /&gt;
First you need to login to the CVS server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When asked for a password, press enter.&lt;br /&gt;
Now, just checkout (i.e. download) the sources from the repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks co codeblocks&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;codeblocks&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
To build Code::Blocks all you have to do now is type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will build everything: the application and the plugins. The final step is to update the working environment for your system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following notes about converting the line endings does '''not''' apply to the CVS Version! The &amp;quot;update&amp;quot; script included there works just fine.&lt;br /&gt;
&lt;br /&gt;
'''Important note:''' Don't run that final make yet! The &amp;quot;update&amp;quot; script seems to be using Dos character encoding, which will result in its failure to run on Linux. To fix this, use dos2unix:&lt;br /&gt;
&lt;br /&gt;
To install it in Gentoo, do:&lt;br /&gt;
&lt;br /&gt;
 # emerge -av dos2unix&lt;br /&gt;
&lt;br /&gt;
In Debian and Ubuntu, do (as root, or using sudo etc.):&lt;br /&gt;
&lt;br /&gt;
 # apt-get install sysutils&lt;br /&gt;
&lt;br /&gt;
This will install dos2unix. Now we are ready to convert the script.&lt;br /&gt;
 # dos2unix -n update update.unix&lt;br /&gt;
 # chmod +x update.unix&lt;br /&gt;
 # ./update.unix&lt;br /&gt;
The first line converts the script character encoding, the second makes it executable and the third runs it. This trick is from a forum post by ilkapo.&lt;br /&gt;
&lt;br /&gt;
OK. Now that the update script is converted to unix format, you can run the final make:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything's gone well, congratulations! You should be able to launch Code::Blocks by running the generated &amp;lt;tt&amp;gt;run.sh&amp;lt;/tt&amp;gt; script in the &amp;lt;tt&amp;gt;output&amp;lt;/tt&amp;gt; subdir:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;output/run.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script can be ran from anywhere in your system so, yes, you can make a shortcut to it on your desktop ;)&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=202</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=202"/>
		<updated>2005-09-09T04:55:26Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building wxWidgets 2.6.1 mingw32 &amp;amp; vc++ toolkit 2003 */&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 ==&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>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=FAQ&amp;diff=194</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=FAQ&amp;diff=194"/>
		<updated>2005-08-28T18:35:45Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* 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;/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 and DigitalMars Free Compiler.&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                                          (VCT3)&lt;br /&gt;
 LIBCPMTD.LIB 	Multithreaded, static link                                            (none)&lt;br /&gt;
 MSVCPRTD.LIB 	Multithreaded, dynamic link (import library for MSVCP71D.DLL)         (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;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=197</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=197"/>
		<updated>2005-08-26T13:58:54Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building wxWidgets */&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 ==&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; mkdir codeblocks_gcc; cd ..\gcc_dll; move * ..\codeblocks_gcc; move msw ..\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; mkdir codeblocks_vc; cd ..\vc_dll; move * ..\codeblocks_vc; move msw ..\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>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=186</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=186"/>
		<updated>2005-08-26T13:56:51Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* 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 to only clean that version of the generated object and library files &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 ==&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; mkdir codeblocks_gcc; cd ..\gcc_dll; move * ..\codeblocks_gcc; move msw ..\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; mkdir codeblocks_vc; cd ..\vc_dll; move * ..\codeblocks_vc; move msw ..\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>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=185</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=185"/>
		<updated>2005-08-26T13:56:17Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building wxWidgets */&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 to only clean that version of the generated object and library files &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 ==&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;
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; mkdir codeblocks_gcc; cd ..\gcc_dll; move * ..\codeblocks_gcc; move msw ..\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; mkdir codeblocks_vc; cd ..\vc_dll; move * ..\codeblocks_vc; move msw ..\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>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=184</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=184"/>
		<updated>2005-08-26T13:55:52Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building wxWidgets */&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 to only clean that version of the generated object and library files&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;
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; mkdir codeblocks_gcc; cd ..\gcc_dll; move * ..\codeblocks_gcc; move msw ..\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; mkdir codeblocks_vc; cd ..\vc_dll; move * ..\codeblocks_vc; move msw ..\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>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Tips%27n%27Tricks&amp;diff=1244</id>
		<title>Tips'n'Tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Tips%27n%27Tricks&amp;diff=1244"/>
		<updated>2005-08-25T15:42:35Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Compiling from source */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====[[Personalities]]====&lt;br /&gt;
====[[Fixing Internal Errors]]====&lt;br /&gt;
====[[Setting the WX_VER variable]]====&lt;br /&gt;
====[[Running under colinux]]====&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Tips%27n%27Tricks&amp;diff=182</id>
		<title>Tips'n'Tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Tips%27n%27Tricks&amp;diff=182"/>
		<updated>2005-08-25T15:42:05Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Running under colinux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====[[Personalities]]====&lt;br /&gt;
====[[Fixing Internal Errors]]====&lt;br /&gt;
====[[Setting the WX_VER variable]]====&lt;br /&gt;
====[[Running under colinux]]====&lt;br /&gt;
&lt;br /&gt;
===Compiling from source===&lt;br /&gt;
&lt;br /&gt;
The reason to want to do this is if you want to use a different kernel than the one provided by the colinux installer (currently 2.6.11).  If you want to compile your own modules or add something to the kernel then this might be the way to go.  If you just try to compile a new kernel and then run it under the existing colinux binaries you will get an ABI mismatch unless you compiled with their version of gcc they used (3.3.x) to cross compile the colinux binaries, so it's probably best to just setup your own cross compiler under linux and recompile the source.  Note that colinux runs in kernel mode, but does not allow linux to do direct hardware access.  It writes a layer and then hands hardware requests to windows.  So no sound output is supported (yet) and X doesn't run under linux (yet - but you can use xmingw as described above).  It's best not to modify the kernel settings from what the colinux .config file provides too much.  You will need a working linux installation and an internet connection to compile from source. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- grab the source&lt;br /&gt;
[http://www.colinux.org/snapshots/stable-colinux-20050524.tar.gz]&lt;br /&gt;
&lt;br /&gt;
- switch to linux&lt;br /&gt;
I actually recompiled everything from within colinux which works fine.  You could also reboot into linux. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- extract the source and compile&lt;br /&gt;
I used /usr/src as the base directory.  You can use /home/username if desired. &amp;lt;br&amp;gt;&lt;br /&gt;
 cd /usr/src; tar xfz stable-colinux-20050524.tar.gz&lt;br /&gt;
 cd stable-colinux-20050524&lt;br /&gt;
&lt;br /&gt;
Your linux distribution needs a couple of things to be able to setup the cross compiler and compile the daemons.  I needed to grab and install: &amp;lt;br&amp;gt;&lt;br /&gt;
 unix2dos-2.2.src.tar.gz&lt;br /&gt;
&lt;br /&gt;
The configure script will let you know about any other missing dependencies (Everything else was present here: LFS &amp;amp; BLFS installation).  Make sure you have wget installed since all needed mingw packages are fetched with it. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Edit bin/build-common.sh &amp;lt;br&amp;gt;&lt;br /&gt;
      GCC_VERSION=&amp;quot;3.4.4&amp;quot;&lt;br /&gt;
      GCC_RELEASE=&amp;quot;$GCC_VERSION-20050522-1&amp;quot;   &lt;br /&gt;
      GCC_PATCH=&amp;quot;gcc-core-$GCC_RELEASE-src-fix1.patch&amp;quot;&lt;br /&gt;
      MXML_URL=http://ftp.easysw.com/pub/mxml/1.3&lt;br /&gt;
&lt;br /&gt;
Needed patch: &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#########&amp;lt;/nowiki&amp;gt;begin gcc-core-3.4.4-20050522-1-src-fix1.patch&amp;lt;nowiki&amp;gt;##########&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
diff -urN gcc-3.4.4-20050522-1.old/gcc/crtstuff.c gcc-3.4.4-20050522-1/gcc/crtstuff.c&lt;br /&gt;
--- gcc-3.4.4-20050522-1.old/gcc/crtstuff.c	2005-08-18 15:46:45.000000000 -0400&lt;br /&gt;
+++ gcc-3.4.4-20050522-1/gcc/crtstuff.c	2005-08-18 15:53:00.000000000 -0400&lt;br /&gt;
@@ -602,7 +602,8 @@&lt;br /&gt;
 #if defined (USE_EH_FRAME_REGISTRY) \&lt;br /&gt;
 	     &amp;amp;&amp;amp; !__USING_SJLJ_EXCEPTIONS__&lt;br /&gt;
 static int __EH_FRAME_END__[]&lt;br /&gt;
-     __attribute__ ((unused, mode(SI), section(EH_FRAME_SECTION_NAME),&lt;br /&gt;
+/*     __attribute__ ((unused, mode(SI), section(EH_FRAME_SECTION_NAME), */&lt;br /&gt;
+     __attribute__ ((unused, section(EH_FRAME_SECTION_NAME),&lt;br /&gt;
 		     aligned(4)))&lt;br /&gt;
      = { 0 };&lt;br /&gt;
 static void __reg_frame_ctor (void) __attribute__ ((constructor));&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#########&amp;lt;/nowiki&amp;gt;end gcc-core-3.4.4-20050522-1-src-fix1.patch&amp;lt;nowiki&amp;gt;#########&amp;lt;/nowiki&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Save the above (between the &amp;lt;nowiki&amp;gt;###&amp;lt;/nowiki&amp;gt; marks) to gcc-core-3.4.4-20050522-1-src-fix1.patch &amp;lt;br&amp;gt;&lt;br /&gt;
 mkdir /usr/src/download (mkdir /home/username/download if using home directory)&lt;br /&gt;
 mv gcc-core-3.4.4-20050522-1-src-fix1.patch /usr/src/download&lt;br /&gt;
&lt;br /&gt;
The patch is needed for gcc 3.4.4 to compile as a cross compiler using sjlj exceptions (dwarf exceptions don't work well under windows it seems).  Otherwise you get errors about the mode(SI) statement. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compile: &amp;lt;br&amp;gt;&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 make # I got md5sum creation errors, but things resumed ok -- just type make again...&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This will download and install a mingw cross compiler under linux.  It will then proceed to compile the windows colinux daemons and finally the colinux kernel.  The kernel source will be in a subdirectory of the directory you are compiling from (/usr/src/linux-2.6.11-co or something).  You can later recompile the colinux kernel by switching to this directory and doing: &amp;lt;br&amp;gt;&lt;br /&gt;
 make menuconfig # set kernel options...don't change too much or it may not work with colinux&lt;br /&gt;
 make vmlinux&lt;br /&gt;
 make modules modules_install # installed to /lib/linux-2.6.11-co i believe&lt;br /&gt;
&lt;br /&gt;
Then just move the /usr/src/linux-2.6.11-co/vmlinux kernel image to c:\coLinux (backup the old one in case).  Fyi, the kernel patch they are using is under stable-colinux-20050524/patch/linux and the kernel .config file is stable-colinux-20050524/config/linux-config &amp;lt;br&amp;gt;&lt;br /&gt;
(tar xfz linux-2.6.11-12.tar.gz; cd linux-2.6.11-12; patch -p1 -i  &amp;lt;br&amp;gt; stable-colinux-20050524/patch/linux; cp stable-colinux-20050524/config/linux-config .config) &amp;lt;br&amp;gt;&lt;br /&gt;
to start from fresh kernel.org sources.  note that only up to 2.6.11-X is working.  A patch is available on colinux.org for 2.6.12 but I haven't tried it. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Btw the make install above just installs to a subdirectory (dist/).  It won't touch /usr or /usr/local.  Once everything completes you can just tar the dist directory and copy to your windows directory: &amp;lt;br&amp;gt;&lt;br /&gt;
 tar cfz dist.tar.gz dist&lt;br /&gt;
 mount /mnt/cofs&lt;br /&gt;
 mv dist.tar.gz /mnt/cofs&lt;br /&gt;
Winrar supports extracting from .tar.gz and .tar.bz2 archives (7zip does too I believe).&lt;br /&gt;
That's all that should be required to build colinux from source and compile custom colinux kernels.&lt;br /&gt;
Make sure you use the same gcc major version (gcc 3.4.x here) to compile both the daemons and kernel (the automatic kernel build run by the colinux install scripts does this by default). &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Running_under_colinux&amp;diff=1265</id>
		<title>Running under colinux</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Running_under_colinux&amp;diff=1265"/>
		<updated>2005-08-25T15:41:15Z</updated>

		<summary type="html">&lt;p&gt;Grv: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====[[Running under colinux]]====&lt;br /&gt;
&lt;br /&gt;
Setting up a dual-boot system is easy to do these days, but switching to linux requires a reboot.  What colinux does is let you run your linux distribution under windows.  They also have the option of downloading a debian or gentoo filesystem instead and using that basic linux system (it's missing lots of packages though, but they do support apt-get/emerge).  This is a walkthrough for setting up colinux to work with an existing linux distribution on another hard drive partition, since it's the more complicated (and useful) of the two options.&lt;br /&gt;
&lt;br /&gt;
- download colinux&lt;br /&gt;
[http://www.colinux.org/snapshots/stable-coLinux-20050524.exe]&lt;br /&gt;
That's the 5/24/05 snapshot under Development Snapshots from the homepage.  It's stable as far as I can tell and they've fixed a couple major bugs since stable.&lt;br /&gt;
&lt;br /&gt;
- run the installer&lt;br /&gt;
check everything except uncheck &amp;quot;Root Filesystem image Download&amp;quot; &amp;lt;br&amp;gt;&lt;br /&gt;
install to c:\coLinux and not c:\Program Files\coLinux, since /dev paths are relative to the installation directory &amp;lt;br&amp;gt;&lt;br /&gt;
don't bother downloading and installing WinPCAP (the included TAP driver works fine) &amp;lt;br&amp;gt;&lt;br /&gt;
hit &amp;quot;continue anyway&amp;quot; for the tap driver installation &amp;lt;br&amp;gt;&lt;br /&gt;
goto Network Connections under control panel and right click on the newly installed LAN connection (TAP-Win32 Adapter V8 (colinux)).  You may want to set configure-&amp;gt;advanced-&amp;gt;media status to &amp;quot;always connected&amp;quot;.  Set the ip (tcp/ip properties) to a new ip address on your lan.  E.g. my hardware firewall my internet address 68.x.x.x.  Then one computer gets 192.168.1.2 and the other one (wireless connection) gets 192.168.1.3.  They both set the gateway field to 192.168.1.1 (configured in the hardware firewall settings).  So I set the TAP adapter ip to 192.168.1.4, it's gatway to 192.168.1.1 and the dns servers to those given to me by my isp (68.x.x.x).  Now select both your network connection and the TAP lan connection (ctrl-click) and then right click on one of them and select Bridge Connections.  Now right-click the Network Bridge and set the tcp/ip address to the same one your internet connection uses (192.168.1.3 here).  Also put in the dns servers and gateway.  You may need to right-click the Network Bridge and click Disable followed by Enable to get the connection working.  What happens is that your windows internet connection is still the same ip (192.168.1.3) but from within colinux, your TAP eth0 connection will use the new ip given to the TAP connection (192.168.1.4).  So colinux looks like a new box on your LAN. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- create a configuration script&lt;br /&gt;
first you need to find out which partitions your linux distribution uses as seen by windows.  download either Dmdiag.exe from Microsoft or WinObj.zip from Sysinternals. &amp;lt;br&amp;gt;&lt;br /&gt;
[http://download.microsoft.com/download/win2000platform/WebPacks/1.00.0.1/NT5/EN-US/Dmdiag.exe]&lt;br /&gt;
[http://www.sysinternals.com/Files/WinObj.zip]&lt;br /&gt;
&lt;br /&gt;
usage: &amp;lt;br&amp;gt;&lt;br /&gt;
dmdiag &amp;gt; out.txt &amp;lt;br&amp;gt;&lt;br /&gt;
winobj - &amp;lt;br&amp;gt;&lt;br /&gt;
check \GLOBAL?? for the name of your windows partitions (C:, D:).  I have \Device\HarddiskVolume1 and \Device\HarddiskVolume2 for C: and D:.  The next partition is probably the linux one.  Goto \Device\Harddisk0 to see all the partitions on the disk. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
now create a batch script (c:\coLinux\colinux.bat) to launch colinux: &amp;lt;br&amp;gt;&lt;br /&gt;
colinux-daemon.exe -t nt mem=256 kernel=vmlinux hda6=\Device\Harddisk0\Partition3 hda7=\Device\Harddisk0\Partition4 root=/dev/hda6 eth0=tuntap cofs0=c:\coLinux 3 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This means use the standard NT console (better because you can cut&amp;amp;paste using the mouse), give 256mb of ram to colinux, specifies the name of the kernel, the linux partitiions, virtual ethernet adapter, and a shared directory which can be used to copy files between the colinux and windows systems. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
My linux root (/) partition is /dev/hda6 and swap partition is /dev/hda7.  These correspond to \Device\Harddisk0\Partition3 and \Device\Harddisk0\Partition4 under windows (note that windows doesn't reserve a partition name for the extended partition -- my linux partitions are logical and not primary partitions).  The root is given to be /dev/hda6, and you can just put tuntap for eth0, which will find the TAP connection we setup.  cofs0 will be the device name of the shared folder to use to transfer files to/from windows.  The 3 on the end is passed to the kernel as a kernel parameter.  It means enter runlevel 3 (init 3).  I need to do this since my default runlevel on boot is 5 which starts KDE, but this will crash colinux since it doesn't support X under colinux. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- run the batch file and create some linux scripts &amp;lt;br&amp;gt;&lt;br /&gt;
run the .bat file just created and see that everything works.  now create a couple of linux scripts for convenience.  I created /usr/bin/colinuxnet.sh to start the network, /usr/bin/off.sh to shutdown, and a config file /etc/colinuxdisplay to set the DISPLAY environment variable. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;!/bin/sh &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;/usr/bin/colinuxnet.sh &amp;lt;br&amp;gt;&lt;br /&gt;
ifconfig eth0 192.168.1.4 &amp;amp;&amp;amp; route add default gw 192.168.1.1 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;!/bin/sh &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;/usr/bin/off.sh &amp;lt;br&amp;gt;&lt;br /&gt;
shutdown -h now &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;/etc/colinuxdisplay &amp;lt;br&amp;gt;&lt;br /&gt;
export DISPLAY=192.168.1.3:0.0 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
be sure to make the shell scripts executable: chmod a+x /usr/bin/colinux.net /usr/bin/off.sh&lt;br /&gt;
Note that shutdown -h now is the proper way to stop colinux (don't just click the console X button).  The 192.168.1.3 address is the address of my ethernet connection under windows.  0.0 specifies the first X display. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify /etc/fstab to mount the cofs0 windows directory: &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;/etc/fstab &amp;lt;br&amp;gt;&lt;br /&gt;
... &amp;lt;br&amp;gt;&lt;br /&gt;
cofs0	/mnt/cofs	cofs	noauto,users,defaults 0 0 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice there is no /dev prefix.  This won't automount and will be mountable by normal users (and not fsck checked). &amp;lt;br&amp;gt;&lt;br /&gt;
Create /mnt/cofs: &amp;lt;br&amp;gt;&lt;br /&gt;
mkdir /mnt/cofs &amp;lt;br&amp;gt;&lt;br /&gt;
chmod 777 /mnt/cofs (or chown username:users /mnt/cofs) &amp;lt;br&amp;gt;&lt;br /&gt;
To mount: &amp;lt;br&amp;gt;&lt;br /&gt;
mount /mnt/cofs &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can copy both to and from c:\coLinux now. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- setup Xming&lt;br /&gt;
[http://www.freedesktop.org/~ago/Xming/Xming-20050705-setup.exe]&lt;br /&gt;
Run the installer and don't bother to configure xlaunch.  It just writes out a config file for later use but we'll just pass everything on the commandline anyway. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
create some batch files to run X: &amp;lt;br&amp;gt;&lt;br /&gt;
rem c:\coLinux\runx.bat &amp;lt;br&amp;gt;&lt;br /&gt;
@echo off &amp;lt;br&amp;gt;&lt;br /&gt;
SET DISPLAY=127.0.0.1:0.0 &amp;lt;br&amp;gt;&lt;br /&gt;
SET REMOTE_HOST=192.168.1.4 &amp;lt;br&amp;gt;&lt;br /&gt;
SET LOCAL_HOST=192.168.1.3 &amp;lt;br&amp;gt;&lt;br /&gt;
start C:\Progra~1\Xming\Xming.exe -query %REMOTE_HOST% -nodecoration -lesspointer -from %LOCAL_HOST% -clipboard &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
rem c:\coLinux\runx_multiwindow.bat &amp;lt;br&amp;gt;&lt;br /&gt;
@echo off &amp;lt;br&amp;gt;&lt;br /&gt;
SET DISPLAY=127.0.0.1:0.0 &amp;lt;br&amp;gt;&lt;br /&gt;
SET REMOTE_HOST=192.168.1.4 &amp;lt;br&amp;gt;&lt;br /&gt;
SET LOCAL_HOST=192.168.1.3 &amp;lt;br&amp;gt;&lt;br /&gt;
start C:\Progra~1\Xming\Xming.exe -nodecoration -lesspointer -from %LOCAL_HOST% -clipboard -multiwindow -ac &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remote host is the colinux host and local host is the windows host.  You may need to forward TCP port 6000 on your firewall to allow colinux to communicate over TCP with the Xming server.  The first batch script is for use with XDMCP ([http://freedesktop.org/wiki/Xming]).  This will allow KDE to run under Xming.  Details: &amp;lt;br&amp;gt;&lt;br /&gt;
vi /opt/kde/share/config/kdm/Xaccess &amp;lt;br&amp;gt;&lt;br /&gt;
   *&lt;br /&gt;
This will allow access from all hosts &amp;lt;br&amp;gt;&lt;br /&gt;
vi /opt/kde/share/config/kdm/kdmrc &amp;lt;br&amp;gt;&lt;br /&gt;
   [Xdmcp] Enable=true&lt;br /&gt;
Enables XDMCP &amp;lt;br&amp;gt;&lt;br /&gt;
vi /usr/X11/xdm/Xservers &amp;lt;br&amp;gt;&lt;br /&gt;
   #:0 local /usr/X11R6/bin/X&lt;br /&gt;
Comment out that line so that the linux X doesn't start by default. &amp;lt;br&amp;gt;&lt;br /&gt;
vi /usr/X11/xdm/Xaccess &amp;lt;br&amp;gt;&lt;br /&gt;
   *&lt;br /&gt;
Not sure if that's really needed.  Same idea as the kdm/Xaccess though.  I think this is similar to doing xhost +. &amp;lt;br&amp;gt;&lt;br /&gt;
Note that everything still starts up and runs normally if I reboot into linux through grub/lilo.  These changes didn't prevent KDE or X from starting up. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second batch file (multiwindow) is used for when you don't want a full KDE on windows, but just want the linux consoles (alt-f4 to get multiple consoles does work) and a couple graphical linux applications to run under Xming.  The -ac flag disables access control (needed since we are not using XDMCP and otherwise you get errors involving mit cookies or access denied).  To test this mode: &amp;lt;br&amp;gt;&lt;br /&gt;
run colinux.bat &amp;lt;br&amp;gt;&lt;br /&gt;
run runx_multiwindow.bat &amp;lt;br&amp;gt;&lt;br /&gt;
under linux: &amp;lt;br&amp;gt;&lt;br /&gt;
. /etc/colinuxdisplay (or source /etc/colinuxdisplay) &amp;lt;br&amp;gt;&lt;br /&gt;
try: ddd (assuming it's installed on your linux distro). &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That should be all there is to it to get codeblocks running under colinux (after compiling codeblocks under linux of course). &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Compiling from source===&lt;br /&gt;
&lt;br /&gt;
The reason to want to do this is if you want to use a different kernel than the one provided by the colinux installer (currently 2.6.11).  If you want to compile your own modules or add something to the kernel then this might be the way to go.  If you just try to compile a new kernel and then run it under the existing colinux binaries you will get an ABI mismatch unless you compiled with their version of gcc they used (3.3.x) to cross compile the colinux binaries, so it's probably best to just setup your own cross compiler under linux and recompile the source.  Note that colinux runs in kernel mode, but does not allow linux to do direct hardware access.  It writes a layer and then hands hardware requests to windows.  So no sound output is supported (yet) and X doesn't run under linux (yet - but you can use xmingw as described above).  It's best not to modify the kernel settings from what the colinux .config file provides too much.  You will need a working linux installation and an internet connection to compile from source. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- grab the source&lt;br /&gt;
[http://www.colinux.org/snapshots/stable-colinux-20050524.tar.gz]&lt;br /&gt;
&lt;br /&gt;
- switch to linux&lt;br /&gt;
I actually recompiled everything from within colinux which works fine.  You could also reboot into linux. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- extract the source and compile&lt;br /&gt;
I used /usr/src as the base directory.  You can use /home/username if desired. &amp;lt;br&amp;gt;&lt;br /&gt;
 cd /usr/src; tar xfz stable-colinux-20050524.tar.gz&lt;br /&gt;
 cd stable-colinux-20050524&lt;br /&gt;
&lt;br /&gt;
Your linux distribution needs a couple of things to be able to setup the cross compiler and compile the daemons.  I needed to grab and install: &amp;lt;br&amp;gt;&lt;br /&gt;
 unix2dos-2.2.src.tar.gz&lt;br /&gt;
&lt;br /&gt;
The configure script will let you know about any other missing dependencies (Everything else was present here: LFS &amp;amp; BLFS installation).  Make sure you have wget installed since all needed mingw packages are fetched with it. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Edit bin/build-common.sh &amp;lt;br&amp;gt;&lt;br /&gt;
      GCC_VERSION=&amp;quot;3.4.4&amp;quot;&lt;br /&gt;
      GCC_RELEASE=&amp;quot;$GCC_VERSION-20050522-1&amp;quot;   &lt;br /&gt;
      GCC_PATCH=&amp;quot;gcc-core-$GCC_RELEASE-src-fix1.patch&amp;quot;&lt;br /&gt;
      MXML_URL=http://ftp.easysw.com/pub/mxml/1.3&lt;br /&gt;
&lt;br /&gt;
Needed patch: &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#########&amp;lt;/nowiki&amp;gt;begin gcc-core-3.4.4-20050522-1-src-fix1.patch&amp;lt;nowiki&amp;gt;##########&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
diff -urN gcc-3.4.4-20050522-1.old/gcc/crtstuff.c gcc-3.4.4-20050522-1/gcc/crtstuff.c&lt;br /&gt;
--- gcc-3.4.4-20050522-1.old/gcc/crtstuff.c	2005-08-18 15:46:45.000000000 -0400&lt;br /&gt;
+++ gcc-3.4.4-20050522-1/gcc/crtstuff.c	2005-08-18 15:53:00.000000000 -0400&lt;br /&gt;
@@ -602,7 +602,8 @@&lt;br /&gt;
 #if defined (USE_EH_FRAME_REGISTRY) \&lt;br /&gt;
 	     &amp;amp;&amp;amp; !__USING_SJLJ_EXCEPTIONS__&lt;br /&gt;
 static int __EH_FRAME_END__[]&lt;br /&gt;
-     __attribute__ ((unused, mode(SI), section(EH_FRAME_SECTION_NAME),&lt;br /&gt;
+/*     __attribute__ ((unused, mode(SI), section(EH_FRAME_SECTION_NAME), */&lt;br /&gt;
+     __attribute__ ((unused, section(EH_FRAME_SECTION_NAME),&lt;br /&gt;
 		     aligned(4)))&lt;br /&gt;
      = { 0 };&lt;br /&gt;
 static void __reg_frame_ctor (void) __attribute__ ((constructor));&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#########&amp;lt;/nowiki&amp;gt;end gcc-core-3.4.4-20050522-1-src-fix1.patch&amp;lt;nowiki&amp;gt;#########&amp;lt;/nowiki&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Save the above (between the &amp;lt;nowiki&amp;gt;###&amp;lt;/nowiki&amp;gt; marks) to gcc-core-3.4.4-20050522-1-src-fix1.patch &amp;lt;br&amp;gt;&lt;br /&gt;
 mkdir /usr/src/download (mkdir /home/username/download if using home directory)&lt;br /&gt;
 mv gcc-core-3.4.4-20050522-1-src-fix1.patch /usr/src/download&lt;br /&gt;
&lt;br /&gt;
The patch is needed for gcc 3.4.4 to compile as a cross compiler using sjlj exceptions (dwarf exceptions don't work well under windows it seems).  Otherwise you get errors about the mode(SI) statement. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compile: &amp;lt;br&amp;gt;&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 make # I got md5sum creation errors, but things resumed ok -- just type make again...&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This will download and install a mingw cross compiler under linux.  It will then proceed to compile the windows colinux daemons and finally the colinux kernel.  The kernel source will be in a subdirectory of the directory you are compiling from (/usr/src/linux-2.6.11-co or something).  You can later recompile the colinux kernel by switching to this directory and doing: &amp;lt;br&amp;gt;&lt;br /&gt;
 make menuconfig # set kernel options...don't change too much or it may not work with colinux&lt;br /&gt;
 make vmlinux&lt;br /&gt;
 make modules modules_install # installed to /lib/linux-2.6.11-co i believe&lt;br /&gt;
&lt;br /&gt;
Then just move the /usr/src/linux-2.6.11-co/vmlinux kernel image to c:\coLinux (backup the old one in case).  Fyi, the kernel patch they are using is under stable-colinux-20050524/patch/linux and the kernel .config file is stable-colinux-20050524/config/linux-config &amp;lt;br&amp;gt;&lt;br /&gt;
(tar xfz linux-2.6.11-12.tar.gz; cd linux-2.6.11-12; patch -p1 -i  &amp;lt;br&amp;gt; stable-colinux-20050524/patch/linux; cp stable-colinux-20050524/config/linux-config .config) &amp;lt;br&amp;gt;&lt;br /&gt;
to start from fresh kernel.org sources.  note that only up to 2.6.11-X is working.  A patch is available on colinux.org for 2.6.12 but I haven't tried it. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Btw the make install above just installs to a subdirectory (dist/).  It won't touch /usr or /usr/local.  Once everything completes you can just tar the dist directory and copy to your windows directory: &amp;lt;br&amp;gt;&lt;br /&gt;
 tar cfz dist.tar.gz dist&lt;br /&gt;
 mount /mnt/cofs&lt;br /&gt;
 mv dist.tar.gz /mnt/cofs&lt;br /&gt;
Winrar supports extracting from .tar.gz and .tar.bz2 archives (7zip does too I believe).&lt;br /&gt;
That's all that should be required to build colinux from source and compile custom colinux kernels.&lt;br /&gt;
Make sure you use the same gcc major version (gcc 3.4.x here) to compile both the daemons and kernel (the automatic kernel build run by the colinux install scripts does this by default). &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Tips%27n%27Tricks&amp;diff=181</id>
		<title>Tips'n'Tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Tips%27n%27Tricks&amp;diff=181"/>
		<updated>2005-08-25T15:40:28Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Running under colinux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====[[Personalities]]====&lt;br /&gt;
====[[Fixing Internal Errors]]====&lt;br /&gt;
====[[Setting the WX_VER variable]]====&lt;br /&gt;
====[[Running under colinux]]====&lt;br /&gt;
&lt;br /&gt;
Setting up a dual-boot system is easy to do these days, but switching to linux requires a reboot.  What colinux does is let you run your linux distribution under windows.  They also have the option of downloading a debian or gentoo filesystem instead and using that basic linux system (it's missing lots of packages though, but they do support apt-get/emerge).  This is a walkthrough for setting up colinux to work with an existing linux distribution on another hard drive partition, since it's the more complicated (and useful) of the two options.&lt;br /&gt;
&lt;br /&gt;
- download colinux&lt;br /&gt;
[http://www.colinux.org/snapshots/stable-coLinux-20050524.exe]&lt;br /&gt;
That's the 5/24/05 snapshot under Development Snapshots from the homepage.  It's stable as far as I can tell and they've fixed a couple major bugs since stable.&lt;br /&gt;
&lt;br /&gt;
- run the installer&lt;br /&gt;
check everything except uncheck &amp;quot;Root Filesystem image Download&amp;quot; &amp;lt;br&amp;gt;&lt;br /&gt;
install to c:\coLinux and not c:\Program Files\coLinux, since /dev paths are relative to the installation directory &amp;lt;br&amp;gt;&lt;br /&gt;
don't bother downloading and installing WinPCAP (the included TAP driver works fine) &amp;lt;br&amp;gt;&lt;br /&gt;
hit &amp;quot;continue anyway&amp;quot; for the tap driver installation &amp;lt;br&amp;gt;&lt;br /&gt;
goto Network Connections under control panel and right click on the newly installed LAN connection (TAP-Win32 Adapter V8 (colinux)).  You may want to set configure-&amp;gt;advanced-&amp;gt;media status to &amp;quot;always connected&amp;quot;.  Set the ip (tcp/ip properties) to a new ip address on your lan.  E.g. my hardware firewall my internet address 68.x.x.x.  Then one computer gets 192.168.1.2 and the other one (wireless connection) gets 192.168.1.3.  They both set the gateway field to 192.168.1.1 (configured in the hardware firewall settings).  So I set the TAP adapter ip to 192.168.1.4, it's gatway to 192.168.1.1 and the dns servers to those given to me by my isp (68.x.x.x).  Now select both your network connection and the TAP lan connection (ctrl-click) and then right click on one of them and select Bridge Connections.  Now right-click the Network Bridge and set the tcp/ip address to the same one your internet connection uses (192.168.1.3 here).  Also put in the dns servers and gateway.  You may need to right-click the Network Bridge and click Disable followed by Enable to get the connection working.  What happens is that your windows internet connection is still the same ip (192.168.1.3) but from within colinux, your TAP eth0 connection will use the new ip given to the TAP connection (192.168.1.4).  So colinux looks like a new box on your LAN. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- create a configuration script&lt;br /&gt;
first you need to find out which partitions your linux distribution uses as seen by windows.  download either Dmdiag.exe from Microsoft or WinObj.zip from Sysinternals. &amp;lt;br&amp;gt;&lt;br /&gt;
[http://download.microsoft.com/download/win2000platform/WebPacks/1.00.0.1/NT5/EN-US/Dmdiag.exe]&lt;br /&gt;
[http://www.sysinternals.com/Files/WinObj.zip]&lt;br /&gt;
&lt;br /&gt;
usage: &amp;lt;br&amp;gt;&lt;br /&gt;
dmdiag &amp;gt; out.txt &amp;lt;br&amp;gt;&lt;br /&gt;
winobj - &amp;lt;br&amp;gt;&lt;br /&gt;
check \GLOBAL?? for the name of your windows partitions (C:, D:).  I have \Device\HarddiskVolume1 and \Device\HarddiskVolume2 for C: and D:.  The next partition is probably the linux one.  Goto \Device\Harddisk0 to see all the partitions on the disk. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
now create a batch script (c:\coLinux\colinux.bat) to launch colinux: &amp;lt;br&amp;gt;&lt;br /&gt;
colinux-daemon.exe -t nt mem=256 kernel=vmlinux hda6=\Device\Harddisk0\Partition3 hda7=\Device\Harddisk0\Partition4 root=/dev/hda6 eth0=tuntap cofs0=c:\coLinux 3 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This means use the standard NT console (better because you can cut&amp;amp;paste using the mouse), give 256mb of ram to colinux, specifies the name of the kernel, the linux partitiions, virtual ethernet adapter, and a shared directory which can be used to copy files between the colinux and windows systems. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
My linux root (/) partition is /dev/hda6 and swap partition is /dev/hda7.  These correspond to \Device\Harddisk0\Partition3 and \Device\Harddisk0\Partition4 under windows (note that windows doesn't reserve a partition name for the extended partition -- my linux partitions are logical and not primary partitions).  The root is given to be /dev/hda6, and you can just put tuntap for eth0, which will find the TAP connection we setup.  cofs0 will be the device name of the shared folder to use to transfer files to/from windows.  The 3 on the end is passed to the kernel as a kernel parameter.  It means enter runlevel 3 (init 3).  I need to do this since my default runlevel on boot is 5 which starts KDE, but this will crash colinux since it doesn't support X under colinux. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- run the batch file and create some linux scripts &amp;lt;br&amp;gt;&lt;br /&gt;
run the .bat file just created and see that everything works.  now create a couple of linux scripts for convenience.  I created /usr/bin/colinuxnet.sh to start the network, /usr/bin/off.sh to shutdown, and a config file /etc/colinuxdisplay to set the DISPLAY environment variable. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;!/bin/sh &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;/usr/bin/colinuxnet.sh &amp;lt;br&amp;gt;&lt;br /&gt;
ifconfig eth0 192.168.1.4 &amp;amp;&amp;amp; route add default gw 192.168.1.1 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;!/bin/sh &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;/usr/bin/off.sh &amp;lt;br&amp;gt;&lt;br /&gt;
shutdown -h now &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;/etc/colinuxdisplay &amp;lt;br&amp;gt;&lt;br /&gt;
export DISPLAY=192.168.1.3:0.0 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
be sure to make the shell scripts executable: chmod a+x /usr/bin/colinux.net /usr/bin/off.sh&lt;br /&gt;
Note that shutdown -h now is the proper way to stop colinux (don't just click the console X button).  The 192.168.1.3 address is the address of my ethernet connection under windows.  0.0 specifies the first X display. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify /etc/fstab to mount the cofs0 windows directory: &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;/etc/fstab &amp;lt;br&amp;gt;&lt;br /&gt;
... &amp;lt;br&amp;gt;&lt;br /&gt;
cofs0	/mnt/cofs	cofs	noauto,users,defaults 0 0 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice there is no /dev prefix.  This won't automount and will be mountable by normal users (and not fsck checked). &amp;lt;br&amp;gt;&lt;br /&gt;
Create /mnt/cofs: &amp;lt;br&amp;gt;&lt;br /&gt;
mkdir /mnt/cofs &amp;lt;br&amp;gt;&lt;br /&gt;
chmod 777 /mnt/cofs (or chown username:users /mnt/cofs) &amp;lt;br&amp;gt;&lt;br /&gt;
To mount: &amp;lt;br&amp;gt;&lt;br /&gt;
mount /mnt/cofs &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can copy both to and from c:\coLinux now. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- setup Xming&lt;br /&gt;
[http://www.freedesktop.org/~ago/Xming/Xming-20050705-setup.exe]&lt;br /&gt;
Run the installer and don't bother to configure xlaunch.  It just writes out a config file for later use but we'll just pass everything on the commandline anyway. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
create some batch files to run X: &amp;lt;br&amp;gt;&lt;br /&gt;
rem c:\coLinux\runx.bat &amp;lt;br&amp;gt;&lt;br /&gt;
@echo off &amp;lt;br&amp;gt;&lt;br /&gt;
SET DISPLAY=127.0.0.1:0.0 &amp;lt;br&amp;gt;&lt;br /&gt;
SET REMOTE_HOST=192.168.1.4 &amp;lt;br&amp;gt;&lt;br /&gt;
SET LOCAL_HOST=192.168.1.3 &amp;lt;br&amp;gt;&lt;br /&gt;
start C:\Progra~1\Xming\Xming.exe -query %REMOTE_HOST% -nodecoration -lesspointer -from %LOCAL_HOST% -clipboard &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
rem c:\coLinux\runx_multiwindow.bat &amp;lt;br&amp;gt;&lt;br /&gt;
@echo off &amp;lt;br&amp;gt;&lt;br /&gt;
SET DISPLAY=127.0.0.1:0.0 &amp;lt;br&amp;gt;&lt;br /&gt;
SET REMOTE_HOST=192.168.1.4 &amp;lt;br&amp;gt;&lt;br /&gt;
SET LOCAL_HOST=192.168.1.3 &amp;lt;br&amp;gt;&lt;br /&gt;
start C:\Progra~1\Xming\Xming.exe -nodecoration -lesspointer -from %LOCAL_HOST% -clipboard -multiwindow -ac &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remote host is the colinux host and local host is the windows host.  You may need to forward TCP port 6000 on your firewall to allow colinux to communicate over TCP with the Xming server.  The first batch script is for use with XDMCP ([http://freedesktop.org/wiki/Xming]).  This will allow KDE to run under Xming.  Details: &amp;lt;br&amp;gt;&lt;br /&gt;
vi /opt/kde/share/config/kdm/Xaccess &amp;lt;br&amp;gt;&lt;br /&gt;
   *&lt;br /&gt;
This will allow access from all hosts &amp;lt;br&amp;gt;&lt;br /&gt;
vi /opt/kde/share/config/kdm/kdmrc &amp;lt;br&amp;gt;&lt;br /&gt;
   [Xdmcp] Enable=true&lt;br /&gt;
Enables XDMCP &amp;lt;br&amp;gt;&lt;br /&gt;
vi /usr/X11/xdm/Xservers &amp;lt;br&amp;gt;&lt;br /&gt;
   #:0 local /usr/X11R6/bin/X&lt;br /&gt;
Comment out that line so that the linux X doesn't start by default. &amp;lt;br&amp;gt;&lt;br /&gt;
vi /usr/X11/xdm/Xaccess &amp;lt;br&amp;gt;&lt;br /&gt;
   *&lt;br /&gt;
Not sure if that's really needed.  Same idea as the kdm/Xaccess though.  I think this is similar to doing xhost +. &amp;lt;br&amp;gt;&lt;br /&gt;
Note that everything still starts up and runs normally if I reboot into linux through grub/lilo.  These changes didn't prevent KDE or X from starting up. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second batch file (multiwindow) is used for when you don't want a full KDE on windows, but just want the linux consoles (alt-f4 to get multiple consoles does work) and a couple graphical linux applications to run under Xming.  The -ac flag disables access control (needed since we are not using XDMCP and otherwise you get errors involving mit cookies or access denied).  To test this mode: &amp;lt;br&amp;gt;&lt;br /&gt;
run colinux.bat &amp;lt;br&amp;gt;&lt;br /&gt;
run runx_multiwindow.bat &amp;lt;br&amp;gt;&lt;br /&gt;
under linux: &amp;lt;br&amp;gt;&lt;br /&gt;
. /etc/colinuxdisplay (or source /etc/colinuxdisplay) &amp;lt;br&amp;gt;&lt;br /&gt;
try: ddd (assuming it's installed on your linux distro). &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That should be all there is to it to get codeblocks running under colinux (after compiling codeblocks under linux of course). &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Compiling from source===&lt;br /&gt;
&lt;br /&gt;
The reason to want to do this is if you want to use a different kernel than the one provided by the colinux installer (currently 2.6.11).  If you want to compile your own modules or add something to the kernel then this might be the way to go.  If you just try to compile a new kernel and then run it under the existing colinux binaries you will get an ABI mismatch unless you compiled with their version of gcc they used (3.3.x) to cross compile the colinux binaries, so it's probably best to just setup your own cross compiler under linux and recompile the source.  Note that colinux runs in kernel mode, but does not allow linux to do direct hardware access.  It writes a layer and then hands hardware requests to windows.  So no sound output is supported (yet) and X doesn't run under linux (yet - but you can use xmingw as described above).  It's best not to modify the kernel settings from what the colinux .config file provides too much.  You will need a working linux installation and an internet connection to compile from source. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- grab the source&lt;br /&gt;
[http://www.colinux.org/snapshots/stable-colinux-20050524.tar.gz]&lt;br /&gt;
&lt;br /&gt;
- switch to linux&lt;br /&gt;
I actually recompiled everything from within colinux which works fine.  You could also reboot into linux. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- extract the source and compile&lt;br /&gt;
I used /usr/src as the base directory.  You can use /home/username if desired. &amp;lt;br&amp;gt;&lt;br /&gt;
 cd /usr/src; tar xfz stable-colinux-20050524.tar.gz&lt;br /&gt;
 cd stable-colinux-20050524&lt;br /&gt;
&lt;br /&gt;
Your linux distribution needs a couple of things to be able to setup the cross compiler and compile the daemons.  I needed to grab and install: &amp;lt;br&amp;gt;&lt;br /&gt;
 unix2dos-2.2.src.tar.gz&lt;br /&gt;
&lt;br /&gt;
The configure script will let you know about any other missing dependencies (Everything else was present here: LFS &amp;amp; BLFS installation).  Make sure you have wget installed since all needed mingw packages are fetched with it. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Edit bin/build-common.sh &amp;lt;br&amp;gt;&lt;br /&gt;
      GCC_VERSION=&amp;quot;3.4.4&amp;quot;&lt;br /&gt;
      GCC_RELEASE=&amp;quot;$GCC_VERSION-20050522-1&amp;quot;   &lt;br /&gt;
      GCC_PATCH=&amp;quot;gcc-core-$GCC_RELEASE-src-fix1.patch&amp;quot;&lt;br /&gt;
      MXML_URL=http://ftp.easysw.com/pub/mxml/1.3&lt;br /&gt;
&lt;br /&gt;
Needed patch: &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#########&amp;lt;/nowiki&amp;gt;begin gcc-core-3.4.4-20050522-1-src-fix1.patch&amp;lt;nowiki&amp;gt;##########&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
diff -urN gcc-3.4.4-20050522-1.old/gcc/crtstuff.c gcc-3.4.4-20050522-1/gcc/crtstuff.c&lt;br /&gt;
--- gcc-3.4.4-20050522-1.old/gcc/crtstuff.c	2005-08-18 15:46:45.000000000 -0400&lt;br /&gt;
+++ gcc-3.4.4-20050522-1/gcc/crtstuff.c	2005-08-18 15:53:00.000000000 -0400&lt;br /&gt;
@@ -602,7 +602,8 @@&lt;br /&gt;
 #if defined (USE_EH_FRAME_REGISTRY) \&lt;br /&gt;
 	     &amp;amp;&amp;amp; !__USING_SJLJ_EXCEPTIONS__&lt;br /&gt;
 static int __EH_FRAME_END__[]&lt;br /&gt;
-     __attribute__ ((unused, mode(SI), section(EH_FRAME_SECTION_NAME),&lt;br /&gt;
+/*     __attribute__ ((unused, mode(SI), section(EH_FRAME_SECTION_NAME), */&lt;br /&gt;
+     __attribute__ ((unused, section(EH_FRAME_SECTION_NAME),&lt;br /&gt;
 		     aligned(4)))&lt;br /&gt;
      = { 0 };&lt;br /&gt;
 static void __reg_frame_ctor (void) __attribute__ ((constructor));&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#########&amp;lt;/nowiki&amp;gt;end gcc-core-3.4.4-20050522-1-src-fix1.patch&amp;lt;nowiki&amp;gt;#########&amp;lt;/nowiki&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Save the above (between the &amp;lt;nowiki&amp;gt;###&amp;lt;/nowiki&amp;gt; marks) to gcc-core-3.4.4-20050522-1-src-fix1.patch &amp;lt;br&amp;gt;&lt;br /&gt;
 mkdir /usr/src/download (mkdir /home/username/download if using home directory)&lt;br /&gt;
 mv gcc-core-3.4.4-20050522-1-src-fix1.patch /usr/src/download&lt;br /&gt;
&lt;br /&gt;
The patch is needed for gcc 3.4.4 to compile as a cross compiler using sjlj exceptions (dwarf exceptions don't work well under windows it seems).  Otherwise you get errors about the mode(SI) statement. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compile: &amp;lt;br&amp;gt;&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 make # I got md5sum creation errors, but things resumed ok -- just type make again...&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This will download and install a mingw cross compiler under linux.  It will then proceed to compile the windows colinux daemons and finally the colinux kernel.  The kernel source will be in a subdirectory of the directory you are compiling from (/usr/src/linux-2.6.11-co or something).  You can later recompile the colinux kernel by switching to this directory and doing: &amp;lt;br&amp;gt;&lt;br /&gt;
 make menuconfig # set kernel options...don't change too much or it may not work with colinux&lt;br /&gt;
 make vmlinux&lt;br /&gt;
 make modules modules_install # installed to /lib/linux-2.6.11-co i believe&lt;br /&gt;
&lt;br /&gt;
Then just move the /usr/src/linux-2.6.11-co/vmlinux kernel image to c:\coLinux (backup the old one in case).  Fyi, the kernel patch they are using is under stable-colinux-20050524/patch/linux and the kernel .config file is stable-colinux-20050524/config/linux-config &amp;lt;br&amp;gt;&lt;br /&gt;
(tar xfz linux-2.6.11-12.tar.gz; cd linux-2.6.11-12; patch -p1 -i  &amp;lt;br&amp;gt; stable-colinux-20050524/patch/linux; cp stable-colinux-20050524/config/linux-config .config) &amp;lt;br&amp;gt;&lt;br /&gt;
to start from fresh kernel.org sources.  note that only up to 2.6.11-X is working.  A patch is available on colinux.org for 2.6.12 but I haven't tried it. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Btw the make install above just installs to a subdirectory (dist/).  It won't touch /usr or /usr/local.  Once everything completes you can just tar the dist directory and copy to your windows directory: &amp;lt;br&amp;gt;&lt;br /&gt;
 tar cfz dist.tar.gz dist&lt;br /&gt;
 mount /mnt/cofs&lt;br /&gt;
 mv dist.tar.gz /mnt/cofs&lt;br /&gt;
Winrar supports extracting from .tar.gz and .tar.bz2 archives (7zip does too I believe).&lt;br /&gt;
That's all that should be required to build colinux from source and compile custom colinux kernels.&lt;br /&gt;
Make sure you use the same gcc major version (gcc 3.4.x here) to compile both the daemons and kernel (the automatic kernel build run by the colinux install scripts does this by default). &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Tips%27n%27Tricks&amp;diff=180</id>
		<title>Tips'n'Tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Tips%27n%27Tricks&amp;diff=180"/>
		<updated>2005-08-25T12:49:47Z</updated>

		<summary type="html">&lt;p&gt;Grv: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====[[Personalities]]====&lt;br /&gt;
====[[Fixing Internal Errors]]====&lt;br /&gt;
====[[Setting the WX_VER variable]]====&lt;br /&gt;
====[[Running under colinux]]====&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Various_development_tips&amp;diff=354</id>
		<title>Various development tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Various_development_tips&amp;diff=354"/>
		<updated>2005-08-24T10:15:34Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* JIT debugging */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains various tips for developing '''for''' Code::Blocks. It is meant for developers wanting to extend Code::Blocks.&lt;br /&gt;
&lt;br /&gt;
====Using Code::Blocks' global configuration====&lt;br /&gt;
&lt;br /&gt;
There are many cases where you may need to have persistent configuration values. For example, you may be writing a new plugin (or extend an existing).&lt;br /&gt;
The global configuration object is a singleton, meaning that only one exists for the program's lifetime. It can be accessed like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#include &amp;lt;configmanager.h&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
ConfigManager::Get()-&amp;gt;Read(...); // &amp;quot;read&amp;quot; example&lt;br /&gt;
ConfigManager::Get()-&amp;gt;Write(...); // &amp;quot;write&amp;quot; example&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see, all that's needed is to include the relevant header file. To access the configuration then, you use the static member function ConfigManager::Get() which returns a ConfigManager object (the only). ConfigManager descends from wxConfigBase and so it inherits all its public methods for working with configuration files.&lt;br /&gt;
&lt;br /&gt;
Let's see a real world example. Suppose you 're writing a new plugin and it needs to keep a directory path in a configuration value.&lt;br /&gt;
To write the configuration value, possibly prior to exiting (or after its imaginary configuration window is closed), do this:&lt;br /&gt;
&amp;lt;pre&amp;gt;// somehow set pluginDir to the value you want&lt;br /&gt;
wxString pluginDir;&lt;br /&gt;
// write it in the global configuration&lt;br /&gt;
ConfigManager::Get()-&amp;gt;Write(&amp;quot;/new_plugin/directory&amp;quot;, pluginDir);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
And to read the saved value, do this:&lt;br /&gt;
&amp;lt;pre&amp;gt;// write it in the global configuration&lt;br /&gt;
// if we never written the value before, &amp;quot;default&amp;quot; will be returned&lt;br /&gt;
wxString pluginDir = ConfigManager::Get()-&amp;gt;Read(&amp;quot;/new_plugin/directory&amp;quot;, &amp;quot;default&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the above examples, the &amp;quot;/new_plugin&amp;quot; part of the string should be replaced with something unique for the plugin you 're writing. For example, the compiler plugin uses &amp;quot;/compiler_gcc&amp;quot;, the internal editor class uses &amp;quot;/editor&amp;quot; and so on.&lt;br /&gt;
That's how simple is to use Code::Blocks' global configuration :)&lt;br /&gt;
&lt;br /&gt;
One more thing: if you want your plugin's configuration to be included in the import/export list in &amp;quot;Settings-&amp;gt;Import/export configuration&amp;quot;, just add in your plugin's constructor(s) the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;ConfigManager::AddConfiguration(m_PluginInfo.title, &amp;quot;/new_plugin&amp;quot;);&amp;lt;/pre&amp;gt;&lt;br /&gt;
This line will add your plugin in the import/export list. Neat huh?&lt;br /&gt;
&lt;br /&gt;
====JIT debugging====&lt;br /&gt;
&lt;br /&gt;
 cd C:\mingw\bin&lt;br /&gt;
 drmingw -i -v&lt;br /&gt;
this will install drmingw as the jit debugger (drmingw -u to later uninstall)&lt;br /&gt;
(windbg from the platform sdk can be installed as the jit debugger with windbg -I&lt;br /&gt;
but it doesn't support gcc debug symbols.  it does support vc5/6/7 .pdb files&lt;br /&gt;
generated by vc++ toolkit, providing true source level debugging)&lt;br /&gt;
&lt;br /&gt;
to test:&lt;br /&gt;
 - create a win32 project using the gcc compiler as default&lt;br /&gt;
 - place&lt;br /&gt;
  __asm(&amp;quot;int3&amp;quot;);&lt;br /&gt;
  somewhere in the code&lt;br /&gt;
 - compile &amp;amp; run&lt;br /&gt;
  gcc -g&lt;br /&gt;
&lt;br /&gt;
 - create a win32 project using vc++ toolkit compiler as default&lt;br /&gt;
 - place&lt;br /&gt;
  __asm{ int 3 };&lt;br /&gt;
  somewhere in the code&lt;br /&gt;
 - compile &amp;amp; run&lt;br /&gt;
  cl /Zi&lt;br /&gt;
  link /debug&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Various_development_tips&amp;diff=170</id>
		<title>Various development tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Various_development_tips&amp;diff=170"/>
		<updated>2005-08-23T13:04:07Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Using Code::Blocks' global configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains various tips for developing '''for''' Code::Blocks. It is meant for developers wanting to extend Code::Blocks.&lt;br /&gt;
&lt;br /&gt;
====Using Code::Blocks' global configuration====&lt;br /&gt;
&lt;br /&gt;
There are many cases where you may need to have persistent configuration values. For example, you may be writing a new plugin (or extend an existing).&lt;br /&gt;
The global configuration object is a singleton, meaning that only one exists for the program's lifetime. It can be accessed like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#include &amp;lt;configmanager.h&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
ConfigManager::Get()-&amp;gt;Read(...); // &amp;quot;read&amp;quot; example&lt;br /&gt;
ConfigManager::Get()-&amp;gt;Write(...); // &amp;quot;write&amp;quot; example&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see, all that's needed is to include the relevant header file. To access the configuration then, you use the static member function ConfigManager::Get() which returns a ConfigManager object (the only). ConfigManager descends from wxConfigBase and so it inherits all its public methods for working with configuration files.&lt;br /&gt;
&lt;br /&gt;
Let's see a real world example. Suppose you 're writing a new plugin and it needs to keep a directory path in a configuration value.&lt;br /&gt;
To write the configuration value, possibly prior to exiting (or after its imaginary configuration window is closed), do this:&lt;br /&gt;
&amp;lt;pre&amp;gt;// somehow set pluginDir to the value you want&lt;br /&gt;
wxString pluginDir;&lt;br /&gt;
// write it in the global configuration&lt;br /&gt;
ConfigManager::Get()-&amp;gt;Write(&amp;quot;/new_plugin/directory&amp;quot;, pluginDir);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
And to read the saved value, do this:&lt;br /&gt;
&amp;lt;pre&amp;gt;// write it in the global configuration&lt;br /&gt;
// if we never written the value before, &amp;quot;default&amp;quot; will be returned&lt;br /&gt;
wxString pluginDir = ConfigManager::Get()-&amp;gt;Read(&amp;quot;/new_plugin/directory&amp;quot;, &amp;quot;default&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the above examples, the &amp;quot;/new_plugin&amp;quot; part of the string should be replaced with something unique for the plugin you 're writing. For example, the compiler plugin uses &amp;quot;/compiler_gcc&amp;quot;, the internal editor class uses &amp;quot;/editor&amp;quot; and so on.&lt;br /&gt;
That's how simple is to use Code::Blocks' global configuration :)&lt;br /&gt;
&lt;br /&gt;
One more thing: if you want your plugin's configuration to be included in the import/export list in &amp;quot;Settings-&amp;gt;Import/export configuration&amp;quot;, just add in your plugin's constructor(s) the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;ConfigManager::AddConfiguration(m_PluginInfo.title, &amp;quot;/new_plugin&amp;quot;);&amp;lt;/pre&amp;gt;&lt;br /&gt;
This line will add your plugin in the import/export list. Neat huh?&lt;br /&gt;
&lt;br /&gt;
====JIT debugging====&lt;br /&gt;
&lt;br /&gt;
 cd C:\mingw\bin&lt;br /&gt;
 drmingw -i -v&lt;br /&gt;
this will install drmingw as the jit debugger (drmingw -u to later uninstall)&lt;br /&gt;
(windbg from the platform sdk can be installed as the jit debugger with windbg -I&lt;br /&gt;
but it doesn't support gcc gcc debug symbols.  it does support vc5/6/7 .pdb files&lt;br /&gt;
generated by vc++ toolkit, providing true source level debugging)&lt;br /&gt;
&lt;br /&gt;
to test:&lt;br /&gt;
 - create a win32 project using the gcc compiler as default&lt;br /&gt;
 - place&lt;br /&gt;
  __asm(&amp;quot;int3&amp;quot;);&lt;br /&gt;
  somewhere in the code&lt;br /&gt;
 - compile &amp;amp; run&lt;br /&gt;
  gcc -g&lt;br /&gt;
&lt;br /&gt;
 - create a win32 project using vc++ toolkit compiler as default&lt;br /&gt;
 - place&lt;br /&gt;
  __asm{ int 3 };&lt;br /&gt;
  somewhere in the code&lt;br /&gt;
 - compile &amp;amp; run&lt;br /&gt;
  cl /Zi&lt;br /&gt;
  link /debug&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=183</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=183"/>
		<updated>2005-08-23T05:49:15Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building codeblocks from source (using makefile) */&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 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;
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; mkdir codeblocks_gcc; cd ..\gcc_dll; move * ..\codeblocks_gcc; move msw ..\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; mkdir codeblocks_vc; cd ..\vc_dll; move * ..\codeblocks_vc; move msw ..\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>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=168</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=168"/>
		<updated>2005-08-23T04:57:46Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building codeblocks from source (using makefile) */&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 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;
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; mkdir codeblocks_gcc; cd ..\gcc_dll; move * ..\codeblocks_gcc; move msw ..\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; mkdir codeblocks_vc; cd ..\vc_dll; move * ..\codeblocks_vc; move msw ..\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;
update.bat&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;
output\CodeBlocks.exe&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=167</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=167"/>
		<updated>2005-08-23T04:54:22Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building codeblocks from source */&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 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;
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; mkdir codeblocks_gcc; cd ..\gcc_dll; move * ..\codeblocks_gcc; move msw ..\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; mkdir codeblocks_vc; cd ..\vc_dll; move * ..\codeblocks_vc; move msw ..\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&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;
update.bat&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;
output\CodeBlocks.exe&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=166</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=166"/>
		<updated>2005-08-23T04:42:26Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building wxWidgets 2.6.1 mingw32 &amp;amp; vc++ toolkit 2003 */&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 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;
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; mkdir codeblocks_gcc; cd ..\gcc_dll; move * ..\codeblocks_gcc; move msw ..\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; mkdir codeblocks_vc; cd ..\vc_dll; move * ..\codeblocks_vc; move msw ..\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====&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&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;
update.bat&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;
output\CodeBlocks.exe&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=165</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=165"/>
		<updated>2005-08-23T04:08:40Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building wxWidgets 2.6.1 mingw32 &amp;amp; vc++ toolkit 2003 */&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 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;
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; mkdir codeblocks_gcc; cd ..\gcc_dll; move * ..\codeblocks_gcc; move msw ..\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; mkdir codeblocks_vc; cd ..\vc_dll; move * ..\codeblocks_vc; move msw ..\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;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=203</id>
		<title>Installing Code::Blocks from source on Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=203"/>
		<updated>2005-08-21T06:46:38Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* wxWidgets 2.6.1 build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are instructions on how to build Code::Blocks under Linux. I 've ran and verified this procedure to work under SuSE 9.2 and Fedora Core 3. These instructions should work for all Linux distros, as we 'll be installing from sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
&lt;br /&gt;
In order to sucesfully compile Code::Blocks, the wxWidgets (wxGTK-2.4.2) cross-platform UI library must be installed. In this document, it is not assumed that it is already installed in your system and instructions are given on how to download, build and install it.&lt;br /&gt;
What is '''not''' covered here, is the wxWidgets prerequisites. The most important being GTK2, of course!&lt;br /&gt;
Let me stress it here, while it's early: &amp;lt;u&amp;gt;GTK2 is required&amp;lt;/u&amp;gt;, not GTK1, for Code::Blocks to be operational.&lt;br /&gt;
&lt;br /&gt;
All the instructions below, assume an existing directory named &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;. If you 'll be using a different one, adjust the path to match.&lt;br /&gt;
As a first step create this directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===wxGTK-2.4.2 installation===&lt;br /&gt;
====Getting wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Visit the [http://www.wxwidgets.org wxWidgets] web site. Click on the &amp;quot;Download&amp;quot; button in the sidebar on the left side of the page. You want to download the file named wxGTK-2.4.2.tar.gz (or wxGTK-2.4.2.tar.bz2). Save the file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Uncompressing the wxGTK sources====&lt;br /&gt;
&lt;br /&gt;
After the download finishes, switch to &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, untar the wxGTK sources:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar zxf wxGTK-2.4.2.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar jxf wxGTK-2.4.2.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
depending on which file you downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Patching wxGTK=====&lt;br /&gt;
&lt;br /&gt;
Most newer distros provide gtk2.4.x. Although wxGTK will compile using this gtk version, applications using this wxGTK will not compile succesfully. This happens because some internal function names were changed in later gtk versions and wxGTK-2.4.2, at the time of its release, did not account for these changes.&lt;br /&gt;
If your distro uses this gtk version, you will need to patch the wxGTK sources before the build process.&lt;br /&gt;
You can get the required patch from here (TODO: add link), or create a new file and put the following in it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;//sgl/devel/grimoire/x11-toolkits/wxGTK/gtk-2.4-fix.patch#1 - add change 30747 (text)&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/menu.cpp wxGTK-2.4.2-fix/src/gtk/menu.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/menu.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/menu.cpp	2004-03-29 14:53:34.000000000 +0200&lt;br /&gt;
@@ -30,13 +30,13 @@&lt;br /&gt;
 #ifdef __WXGTK20__&lt;br /&gt;
     #include &amp;lt;glib-object.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
-    #define gtk_accel_group_attach(g, o) _gtk_accel_group_attach((g), (o))&lt;br /&gt;
-    #define gtk_accel_group_detach(g, o) _gtk_accel_group_detach((g), (o))&lt;br /&gt;
+    #define gtk_accel_group_attach(g, o) gtk_window_add_accel_group((o), (g))&lt;br /&gt;
+    #define gtk_accel_group_detach(g, o) gtk_window_remove_accel_group((o), (g))&lt;br /&gt;
     #define gtk_menu_ensure_uline_accel_group(m) gtk_menu_get_accel_group(m)&lt;br /&gt;
 &lt;br /&gt;
-    #define ACCEL_OBJECT        GObject&lt;br /&gt;
+    #define ACCEL_OBJECT        GtkWindow&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;acceleratables&lt;br /&gt;
-    #define ACCEL_OBJ_CAST(obj) G_OBJECT(obj)&lt;br /&gt;
+    #define ACCEL_OBJ_CAST(obj) GTK_WINDOW(obj)&lt;br /&gt;
 #else // GTK+ 1.x&lt;br /&gt;
     #define ACCEL_OBJECT        GtkObject&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;attach_objects&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/settings.cpp wxGTK-2.4.2-fix/src/gtk/settings.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/settings.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/settings.cpp	2004-03-29 15:15:35.000000000 +0200&lt;br /&gt;
@@ -340,8 +340,8 @@&lt;br /&gt;
                 }  &lt;br /&gt;
                 else  &lt;br /&gt;
                 {  &lt;br /&gt;
-                    const gchar *font_name =&lt;br /&gt;
-                        _gtk_rc_context_get_default_font_name(gtk_settings_get_default());&lt;br /&gt;
+                    gchar *font_name;&lt;br /&gt;
+                    g_object_get(gtk_settings_get_default(), &amp;quot;gtk-font-name&amp;quot;, &amp;amp;font_name, NULL);&lt;br /&gt;
                     g_systemFont = new wxFont(wxString::FromAscii(font_name));&lt;br /&gt;
                 }  &lt;br /&gt;
                 gtk_widget_destroy( widget );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;(''Patch copied from http://www.flamerobin.org/dokuwiki/doku.php?id=wiki:wxgtkpatch.'')&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file as &amp;lt;tt&amp;gt;~/devel/gtk-2.4-fix.patch&amp;lt;/tt&amp;gt; and apply it by issuing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
patch -Np0 -i gtk-2.4-fix.patch&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can build wxGTK!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Issue the following commands to build wxGTK-2.4.2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel/wxGTK-2.4.2&lt;br /&gt;
./configure --enable-gtk2&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If something fails when you run the configure command, some wxGTK prerequisite is probably missing. Read through the output and figure out what's missing.&lt;br /&gt;
If all's gone well, after 10 to 30 minutes (depending on your machine), the wxGTK library should be ready. Time to install it, system-wide:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above command will ask you for the root's password (you &amp;lt;u&amp;gt;are&amp;lt;/u&amp;gt; working as a regular user, aren't you?) and then it will install the library and the needed development files in your system.&lt;br /&gt;
&lt;br /&gt;
The next step is to build STC: the wxWidgets wrapper for Scintilla (the editor). This is located in the contrib subdir hierarchy. To do this, issue the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd contrib/src/stc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you 're done, STC will have been installed too. All that's left, is the XRC library which is used to load XML resources. Type the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ../xrc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;NOTE:&amp;lt;/u&amp;gt; ''The Fedora Core 3 installation I tested this procedure, did not have /usr/local/lib in the library search path. I had to manually add /usr/local/lib in /etc/ld.so.conf as root and then issue ldconfig, as root again.''&lt;br /&gt;
&lt;br /&gt;
That's it! If you reached here, congratulations! You 've built and installed wxGTK in your system.&lt;br /&gt;
You 're now ready to download and build Code::Blocks - i.e. the easy part :)&lt;br /&gt;
&lt;br /&gt;
====wxWidgets 2.6.1 build====&lt;br /&gt;
&lt;br /&gt;
In case you want to use wxGTK 2.6.1 instead.&lt;br /&gt;
Here we will create a seperate build directory instead of building from the src directory, so that we can easily rebuild with different options (unicode / ansi, monolithic / many libs, etc).&lt;br /&gt;
&lt;br /&gt;
The documentation says the default is for gtk2 to use unicode and wx &amp;gt; 2.5 to build as a monolithic library.  This doesn't appear to be the case, so these flags are passed to configure.&lt;br /&gt;
&lt;br /&gt;
 mkdir build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 cd build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 ../configure --prefix=/opt/wx/2.6 \&lt;br /&gt;
        --enable-xrc \&lt;br /&gt;
        --enable-monolithic \&lt;br /&gt;
        --enable-unicode&lt;br /&gt;
 make&lt;br /&gt;
 make -C contrib/src/stc&lt;br /&gt;
 su&lt;br /&gt;
 make install&lt;br /&gt;
 make -C contrib/src/stc install&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
add /opt/wx/2.6 to /etc/ld.so.conf (nano /etc/ld.so.conf)&lt;br /&gt;
ldconfig&lt;br /&gt;
&lt;br /&gt;
That's it.  Now the linker will look in /opt/wx/2.6 for wx libraries and you will have a monolithic shared library unicode build.&lt;br /&gt;
&lt;br /&gt;
===Code::Blocks installation===&lt;br /&gt;
&lt;br /&gt;
====Downloading Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
You can get Code::Blocks source code in one of two ways:&lt;br /&gt;
* Download the latest source package, or&lt;br /&gt;
* Get the latest sources from the CVS repository.&lt;br /&gt;
Both methods, are described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Downloading the latest source package=====&lt;br /&gt;
&lt;br /&gt;
Go to the Code::Blocks [https://www.codeblocks.org web site] and download the latest source package. This would be the &amp;quot; Code::Blocks IDE version 1.0-finalbeta source code (tarball)&amp;quot; codeblocks-1.0-finalbeta.tar.gz.&lt;br /&gt;
Save this file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt; and then untar it:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
tar zxf codeblocks-1.0-finalbeta.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;~/devel/codeblocks-1.0-finalbeta&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks-1.0-finalbeta/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Getting the latest sources from CVS=====&lt;br /&gt;
&lt;br /&gt;
For the following to work, you need to have the &amp;lt;tt&amp;gt;cvs&amp;lt;/tt&amp;gt; command line client installed on your system.&lt;br /&gt;
First you need to login to the CVS server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When asked for a password, press enter.&lt;br /&gt;
Now, just checkout (i.e. download) the sources from the repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks co codeblocks&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;codeblocks&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
To build Code::Blocks all you have to do now is type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will build everything: the application and the plugins. The final step is to update the working environment for your system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following notes about converting the line endings does '''not''' apply to the CVS Version! The &amp;quot;update&amp;quot; script included there works just fine.&lt;br /&gt;
&lt;br /&gt;
'''Important note:''' Don't run that final make yet! The &amp;quot;update&amp;quot; script seems to be using Dos character encoding, which will result in its failure to run on Linux. To fix this, use dos2unix:&lt;br /&gt;
&lt;br /&gt;
To install it in Gentoo, do:&lt;br /&gt;
&lt;br /&gt;
 # emerge -av dos2unix&lt;br /&gt;
&lt;br /&gt;
In Debian and Ubuntu, do (as root, or using sudo etc.):&lt;br /&gt;
&lt;br /&gt;
 # apt-get install sysutils&lt;br /&gt;
&lt;br /&gt;
This will install dos2unix. Now we are ready to convert the script.&lt;br /&gt;
 # dos2unix -n update update.unix&lt;br /&gt;
 # chmod +x update.unix&lt;br /&gt;
 # ./update.unix&lt;br /&gt;
The first line converts the script character encoding, the second makes it executable and the third runs it. This trick is from a forum post by ilkapo.&lt;br /&gt;
&lt;br /&gt;
OK. Now that the update script is converted to unix format, you can run the final make:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything's gone well, congratulations! You should be able to launch Code::Blocks by running the generated &amp;lt;tt&amp;gt;run.sh&amp;lt;/tt&amp;gt; script in the &amp;lt;tt&amp;gt;output&amp;lt;/tt&amp;gt; subdir:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;output/run.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script can be ran from anywhere in your system so, yes, you can make a shortcut to it on your desktop ;)&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=148</id>
		<title>Installing Code::Blocks from source on Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=148"/>
		<updated>2005-08-21T05:00:16Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* wxWidgets 2.6.1 build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are instructions on how to build Code::Blocks under Linux. I 've ran and verified this procedure to work under SuSE 9.2 and Fedora Core 3. These instructions should work for all Linux distros, as we 'll be installing from sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
&lt;br /&gt;
In order to sucesfully compile Code::Blocks, the wxWidgets (wxGTK-2.4.2) cross-platform UI library must be installed. In this document, it is not assumed that it is already installed in your system and instructions are given on how to download, build and install it.&lt;br /&gt;
What is '''not''' covered here, is the wxWidgets prerequisites. The most important being GTK2, of course!&lt;br /&gt;
Let me stress it here, while it's early: &amp;lt;u&amp;gt;GTK2 is required&amp;lt;/u&amp;gt;, not GTK1, for Code::Blocks to be operational.&lt;br /&gt;
&lt;br /&gt;
All the instructions below, assume an existing directory named &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;. If you 'll be using a different one, adjust the path to match.&lt;br /&gt;
As a first step create this directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===wxGTK-2.4.2 installation===&lt;br /&gt;
====Getting wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Visit the [http://www.wxwidgets.org wxWidgets] web site. Click on the &amp;quot;Download&amp;quot; button in the sidebar on the left side of the page. You want to download the file named wxGTK-2.4.2.tar.gz (or wxGTK-2.4.2.tar.bz2). Save the file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Uncompressing the wxGTK sources====&lt;br /&gt;
&lt;br /&gt;
After the download finishes, switch to &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, untar the wxGTK sources:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar zxf wxGTK-2.4.2.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar jxf wxGTK-2.4.2.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
depending on which file you downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Patching wxGTK=====&lt;br /&gt;
&lt;br /&gt;
Most newer distros provide gtk2.4.x. Although wxGTK will compile using this gtk version, applications using this wxGTK will not compile succesfully. This happens because some internal function names were changed in later gtk versions and wxGTK-2.4.2, at the time of its release, did not account for these changes.&lt;br /&gt;
If your distro uses this gtk version, you will need to patch the wxGTK sources before the build process.&lt;br /&gt;
You can get the required patch from here (TODO: add link), or create a new file and put the following in it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;//sgl/devel/grimoire/x11-toolkits/wxGTK/gtk-2.4-fix.patch#1 - add change 30747 (text)&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/menu.cpp wxGTK-2.4.2-fix/src/gtk/menu.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/menu.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/menu.cpp	2004-03-29 14:53:34.000000000 +0200&lt;br /&gt;
@@ -30,13 +30,13 @@&lt;br /&gt;
 #ifdef __WXGTK20__&lt;br /&gt;
     #include &amp;lt;glib-object.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
-    #define gtk_accel_group_attach(g, o) _gtk_accel_group_attach((g), (o))&lt;br /&gt;
-    #define gtk_accel_group_detach(g, o) _gtk_accel_group_detach((g), (o))&lt;br /&gt;
+    #define gtk_accel_group_attach(g, o) gtk_window_add_accel_group((o), (g))&lt;br /&gt;
+    #define gtk_accel_group_detach(g, o) gtk_window_remove_accel_group((o), (g))&lt;br /&gt;
     #define gtk_menu_ensure_uline_accel_group(m) gtk_menu_get_accel_group(m)&lt;br /&gt;
 &lt;br /&gt;
-    #define ACCEL_OBJECT        GObject&lt;br /&gt;
+    #define ACCEL_OBJECT        GtkWindow&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;acceleratables&lt;br /&gt;
-    #define ACCEL_OBJ_CAST(obj) G_OBJECT(obj)&lt;br /&gt;
+    #define ACCEL_OBJ_CAST(obj) GTK_WINDOW(obj)&lt;br /&gt;
 #else // GTK+ 1.x&lt;br /&gt;
     #define ACCEL_OBJECT        GtkObject&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;attach_objects&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/settings.cpp wxGTK-2.4.2-fix/src/gtk/settings.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/settings.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/settings.cpp	2004-03-29 15:15:35.000000000 +0200&lt;br /&gt;
@@ -340,8 +340,8 @@&lt;br /&gt;
                 }  &lt;br /&gt;
                 else  &lt;br /&gt;
                 {  &lt;br /&gt;
-                    const gchar *font_name =&lt;br /&gt;
-                        _gtk_rc_context_get_default_font_name(gtk_settings_get_default());&lt;br /&gt;
+                    gchar *font_name;&lt;br /&gt;
+                    g_object_get(gtk_settings_get_default(), &amp;quot;gtk-font-name&amp;quot;, &amp;amp;font_name, NULL);&lt;br /&gt;
                     g_systemFont = new wxFont(wxString::FromAscii(font_name));&lt;br /&gt;
                 }  &lt;br /&gt;
                 gtk_widget_destroy( widget );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;(''Patch copied from http://www.flamerobin.org/dokuwiki/doku.php?id=wiki:wxgtkpatch.'')&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file as &amp;lt;tt&amp;gt;~/devel/gtk-2.4-fix.patch&amp;lt;/tt&amp;gt; and apply it by issuing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
patch -Np0 -i gtk-2.4-fix.patch&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can build wxGTK!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Issue the following commands to build wxGTK-2.4.2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel/wxGTK-2.4.2&lt;br /&gt;
./configure --enable-gtk2&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If something fails when you run the configure command, some wxGTK prerequisite is probably missing. Read through the output and figure out what's missing.&lt;br /&gt;
If all's gone well, after 10 to 30 minutes (depending on your machine), the wxGTK library should be ready. Time to install it, system-wide:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above command will ask you for the root's password (you &amp;lt;u&amp;gt;are&amp;lt;/u&amp;gt; working as a regular user, aren't you?) and then it will install the library and the needed development files in your system.&lt;br /&gt;
&lt;br /&gt;
The next step is to build STC: the wxWidgets wrapper for Scintilla (the editor). This is located in the contrib subdir hierarchy. To do this, issue the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd contrib/src/stc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you 're done, STC will have been installed too. All that's left, is the XRC library which is used to load XML resources. Type the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ../xrc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;NOTE:&amp;lt;/u&amp;gt; ''The Fedora Core 3 installation I tested this procedure, did not have /usr/local/lib in the library search path. I had to manually add /usr/local/lib in /etc/ld.so.conf as root and then issue ldconfig, as root again.''&lt;br /&gt;
&lt;br /&gt;
That's it! If you reached here, congratulations! You 've built and installed wxGTK in your system.&lt;br /&gt;
You 're now ready to download and build Code::Blocks - i.e. the easy part :)&lt;br /&gt;
&lt;br /&gt;
====wxWidgets 2.6.1 build====&lt;br /&gt;
&lt;br /&gt;
In case you want to use wxGTK 2.6.1 instead.&lt;br /&gt;
Here we will create a seperate build directory instead of building from the src directory, so that we can easily rebuild with different options (unicode / ansi, monolithic / many libs, etc).&lt;br /&gt;
&lt;br /&gt;
The documentation says the default is for gtk2 to use unicode and wx &amp;gt; 2.5 to build as a monolithic library.  This doesn't appear to be the case, so these flags are passed to configure.&lt;br /&gt;
&lt;br /&gt;
 mkdir build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 cd build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 ../configure --prefix=/opt/wx/2.6 \&lt;br /&gt;
        --enable-xrc \&lt;br /&gt;
        --enable-monolithic \&lt;br /&gt;
        --enable-unicode&lt;br /&gt;
 make&lt;br /&gt;
 make -C contrib/src/stc&lt;br /&gt;
 make -C contrib/src/xrc&lt;br /&gt;
 su&lt;br /&gt;
 make install&lt;br /&gt;
 make -C contrib/src/stc install&lt;br /&gt;
 make -C contrib/src/xrc install&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
add /opt/wx/2.6 to /etc/ld.so.conf (nano /etc/ld.so.conf)&lt;br /&gt;
ldconfig&lt;br /&gt;
&lt;br /&gt;
That's it.  Now the linker will look in /opt/wx/2.6 for wx libraries and you will have a monolithic shared library unicode build.&lt;br /&gt;
&lt;br /&gt;
===Code::Blocks installation===&lt;br /&gt;
&lt;br /&gt;
====Downloading Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
You can get Code::Blocks source code in one of two ways:&lt;br /&gt;
* Download the latest source package, or&lt;br /&gt;
* Get the latest sources from the CVS repository.&lt;br /&gt;
Both methods, are described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Downloading the latest source package=====&lt;br /&gt;
&lt;br /&gt;
Go to the Code::Blocks [https://www.codeblocks.org web site] and download the latest source package. This would be the &amp;quot; Code::Blocks IDE version 1.0-finalbeta source code (tarball)&amp;quot; codeblocks-1.0-finalbeta.tar.gz.&lt;br /&gt;
Save this file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt; and then untar it:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
tar zxf codeblocks-1.0-finalbeta.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;~/devel/codeblocks-1.0-finalbeta&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks-1.0-finalbeta/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Getting the latest sources from CVS=====&lt;br /&gt;
&lt;br /&gt;
For the following to work, you need to have the &amp;lt;tt&amp;gt;cvs&amp;lt;/tt&amp;gt; command line client installed on your system.&lt;br /&gt;
First you need to login to the CVS server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When asked for a password, press enter.&lt;br /&gt;
Now, just checkout (i.e. download) the sources from the repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks co codeblocks&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;codeblocks&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
To build Code::Blocks all you have to do now is type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will build everything: the application and the plugins. The final step is to update the working environment for your system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following notes about converting the line endings does '''not''' apply to the CVS Version! The &amp;quot;update&amp;quot; script included there works just fine.&lt;br /&gt;
&lt;br /&gt;
'''Important note:''' Don't run that final make yet! The &amp;quot;update&amp;quot; script seems to be using Dos character encoding, which will result in its failure to run on Linux. To fix this, use dos2unix:&lt;br /&gt;
&lt;br /&gt;
To install it in Gentoo, do:&lt;br /&gt;
&lt;br /&gt;
 # emerge -av dos2unix&lt;br /&gt;
&lt;br /&gt;
In Debian and Ubuntu, do (as root, or using sudo etc.):&lt;br /&gt;
&lt;br /&gt;
 # apt-get install sysutils&lt;br /&gt;
&lt;br /&gt;
This will install dos2unix. Now we are ready to convert the script.&lt;br /&gt;
 # dos2unix -n update update.unix&lt;br /&gt;
 # chmod +x update.unix&lt;br /&gt;
 # ./update.unix&lt;br /&gt;
The first line converts the script character encoding, the second makes it executable and the third runs it. This trick is from a forum post by ilkapo.&lt;br /&gt;
&lt;br /&gt;
OK. Now that the update script is converted to unix format, you can run the final make:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything's gone well, congratulations! You should be able to launch Code::Blocks by running the generated &amp;lt;tt&amp;gt;run.sh&amp;lt;/tt&amp;gt; script in the &amp;lt;tt&amp;gt;output&amp;lt;/tt&amp;gt; subdir:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;output/run.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script can be ran from anywhere in your system so, yes, you can make a shortcut to it on your desktop ;)&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=147</id>
		<title>Installing Code::Blocks from source on Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=147"/>
		<updated>2005-08-21T04:36:37Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* wxGTK-2.4.2 installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are instructions on how to build Code::Blocks under Linux. I 've ran and verified this procedure to work under SuSE 9.2 and Fedora Core 3. These instructions should work for all Linux distros, as we 'll be installing from sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
&lt;br /&gt;
In order to sucesfully compile Code::Blocks, the wxWidgets (wxGTK-2.4.2) cross-platform UI library must be installed. In this document, it is not assumed that it is already installed in your system and instructions are given on how to download, build and install it.&lt;br /&gt;
What is '''not''' covered here, is the wxWidgets prerequisites. The most important being GTK2, of course!&lt;br /&gt;
Let me stress it here, while it's early: &amp;lt;u&amp;gt;GTK2 is required&amp;lt;/u&amp;gt;, not GTK1, for Code::Blocks to be operational.&lt;br /&gt;
&lt;br /&gt;
All the instructions below, assume an existing directory named &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;. If you 'll be using a different one, adjust the path to match.&lt;br /&gt;
As a first step create this directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===wxGTK-2.4.2 installation===&lt;br /&gt;
====Getting wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Visit the [http://www.wxwidgets.org wxWidgets] web site. Click on the &amp;quot;Download&amp;quot; button in the sidebar on the left side of the page. You want to download the file named wxGTK-2.4.2.tar.gz (or wxGTK-2.4.2.tar.bz2). Save the file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Uncompressing the wxGTK sources====&lt;br /&gt;
&lt;br /&gt;
After the download finishes, switch to &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, untar the wxGTK sources:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar zxf wxGTK-2.4.2.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar jxf wxGTK-2.4.2.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
depending on which file you downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Patching wxGTK=====&lt;br /&gt;
&lt;br /&gt;
Most newer distros provide gtk2.4.x. Although wxGTK will compile using this gtk version, applications using this wxGTK will not compile succesfully. This happens because some internal function names were changed in later gtk versions and wxGTK-2.4.2, at the time of its release, did not account for these changes.&lt;br /&gt;
If your distro uses this gtk version, you will need to patch the wxGTK sources before the build process.&lt;br /&gt;
You can get the required patch from here (TODO: add link), or create a new file and put the following in it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;//sgl/devel/grimoire/x11-toolkits/wxGTK/gtk-2.4-fix.patch#1 - add change 30747 (text)&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/menu.cpp wxGTK-2.4.2-fix/src/gtk/menu.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/menu.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/menu.cpp	2004-03-29 14:53:34.000000000 +0200&lt;br /&gt;
@@ -30,13 +30,13 @@&lt;br /&gt;
 #ifdef __WXGTK20__&lt;br /&gt;
     #include &amp;lt;glib-object.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
-    #define gtk_accel_group_attach(g, o) _gtk_accel_group_attach((g), (o))&lt;br /&gt;
-    #define gtk_accel_group_detach(g, o) _gtk_accel_group_detach((g), (o))&lt;br /&gt;
+    #define gtk_accel_group_attach(g, o) gtk_window_add_accel_group((o), (g))&lt;br /&gt;
+    #define gtk_accel_group_detach(g, o) gtk_window_remove_accel_group((o), (g))&lt;br /&gt;
     #define gtk_menu_ensure_uline_accel_group(m) gtk_menu_get_accel_group(m)&lt;br /&gt;
 &lt;br /&gt;
-    #define ACCEL_OBJECT        GObject&lt;br /&gt;
+    #define ACCEL_OBJECT        GtkWindow&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;acceleratables&lt;br /&gt;
-    #define ACCEL_OBJ_CAST(obj) G_OBJECT(obj)&lt;br /&gt;
+    #define ACCEL_OBJ_CAST(obj) GTK_WINDOW(obj)&lt;br /&gt;
 #else // GTK+ 1.x&lt;br /&gt;
     #define ACCEL_OBJECT        GtkObject&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;attach_objects&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/settings.cpp wxGTK-2.4.2-fix/src/gtk/settings.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/settings.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/settings.cpp	2004-03-29 15:15:35.000000000 +0200&lt;br /&gt;
@@ -340,8 +340,8 @@&lt;br /&gt;
                 }  &lt;br /&gt;
                 else  &lt;br /&gt;
                 {  &lt;br /&gt;
-                    const gchar *font_name =&lt;br /&gt;
-                        _gtk_rc_context_get_default_font_name(gtk_settings_get_default());&lt;br /&gt;
+                    gchar *font_name;&lt;br /&gt;
+                    g_object_get(gtk_settings_get_default(), &amp;quot;gtk-font-name&amp;quot;, &amp;amp;font_name, NULL);&lt;br /&gt;
                     g_systemFont = new wxFont(wxString::FromAscii(font_name));&lt;br /&gt;
                 }  &lt;br /&gt;
                 gtk_widget_destroy( widget );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;(''Patch copied from http://www.flamerobin.org/dokuwiki/doku.php?id=wiki:wxgtkpatch.'')&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file as &amp;lt;tt&amp;gt;~/devel/gtk-2.4-fix.patch&amp;lt;/tt&amp;gt; and apply it by issuing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
patch -Np0 -i gtk-2.4-fix.patch&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can build wxGTK!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Issue the following commands to build wxGTK-2.4.2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel/wxGTK-2.4.2&lt;br /&gt;
./configure --enable-gtk2&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If something fails when you run the configure command, some wxGTK prerequisite is probably missing. Read through the output and figure out what's missing.&lt;br /&gt;
If all's gone well, after 10 to 30 minutes (depending on your machine), the wxGTK library should be ready. Time to install it, system-wide:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above command will ask you for the root's password (you &amp;lt;u&amp;gt;are&amp;lt;/u&amp;gt; working as a regular user, aren't you?) and then it will install the library and the needed development files in your system.&lt;br /&gt;
&lt;br /&gt;
The next step is to build STC: the wxWidgets wrapper for Scintilla (the editor). This is located in the contrib subdir hierarchy. To do this, issue the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd contrib/src/stc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you 're done, STC will have been installed too. All that's left, is the XRC library which is used to load XML resources. Type the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ../xrc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;NOTE:&amp;lt;/u&amp;gt; ''The Fedora Core 3 installation I tested this procedure, did not have /usr/local/lib in the library search path. I had to manually add /usr/local/lib in /etc/ld.so.conf as root and then issue ldconfig, as root again.''&lt;br /&gt;
&lt;br /&gt;
That's it! If you reached here, congratulations! You 've built and installed wxGTK in your system.&lt;br /&gt;
You 're now ready to download and build Code::Blocks - i.e. the easy part :)&lt;br /&gt;
&lt;br /&gt;
====wxWidgets 2.6.1 build====&lt;br /&gt;
&lt;br /&gt;
In case you want to use wxGTK 2.6.1 instead.&lt;br /&gt;
Here we will create a seperate build directory instead of building from the src directory, so that we can easily rebuild with different options (unicode / ansi, monolithic / many libs, etc).&lt;br /&gt;
&lt;br /&gt;
The documentation says the default is for gtk2 to use unicode and wx &amp;gt; 2.5 to build as a monolithic library.  This doesn't appear to be the case, so these flags are passed to configure.&lt;br /&gt;
&lt;br /&gt;
 mkdir build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 cd build_gtk2_shared_monolithic_unicode&lt;br /&gt;
 ../configure --prefix=/opt/wx/2.6 \&lt;br /&gt;
        --enable-monolithic \&lt;br /&gt;
        --enable-unicode || exit 1&lt;br /&gt;
 make || exit 1&lt;br /&gt;
 make -C contrib/src/stc || exit 1&lt;br /&gt;
 su&lt;br /&gt;
 make install&lt;br /&gt;
 make -C contrib/src/stc install&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
add /opt/wx/2.6 to /etc/ld.so.conf (nano /etc/ld.so.conf)&lt;br /&gt;
ldconfig&lt;br /&gt;
&lt;br /&gt;
That's it.  Now the linker will look in /opt/wx/2.6 for wx libraries and you will have a monolithic shared library unicode build.&lt;br /&gt;
&lt;br /&gt;
===Code::Blocks installation===&lt;br /&gt;
&lt;br /&gt;
====Downloading Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
You can get Code::Blocks source code in one of two ways:&lt;br /&gt;
* Download the latest source package, or&lt;br /&gt;
* Get the latest sources from the CVS repository.&lt;br /&gt;
Both methods, are described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Downloading the latest source package=====&lt;br /&gt;
&lt;br /&gt;
Go to the Code::Blocks [https://www.codeblocks.org web site] and download the latest source package. This would be the &amp;quot; Code::Blocks IDE version 1.0-finalbeta source code (tarball)&amp;quot; codeblocks-1.0-finalbeta.tar.gz.&lt;br /&gt;
Save this file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt; and then untar it:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
tar zxf codeblocks-1.0-finalbeta.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;~/devel/codeblocks-1.0-finalbeta&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks-1.0-finalbeta/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Getting the latest sources from CVS=====&lt;br /&gt;
&lt;br /&gt;
For the following to work, you need to have the &amp;lt;tt&amp;gt;cvs&amp;lt;/tt&amp;gt; command line client installed on your system.&lt;br /&gt;
First you need to login to the CVS server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When asked for a password, press enter.&lt;br /&gt;
Now, just checkout (i.e. download) the sources from the repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks co codeblocks&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;codeblocks&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
To build Code::Blocks all you have to do now is type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will build everything: the application and the plugins. The final step is to update the working environment for your system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following notes about converting the line endings does '''not''' apply to the CVS Version! The &amp;quot;update&amp;quot; script included there works just fine.&lt;br /&gt;
&lt;br /&gt;
'''Important note:''' Don't run that final make yet! The &amp;quot;update&amp;quot; script seems to be using Dos character encoding, which will result in its failure to run on Linux. To fix this, use dos2unix:&lt;br /&gt;
&lt;br /&gt;
To install it in Gentoo, do:&lt;br /&gt;
&lt;br /&gt;
 # emerge -av dos2unix&lt;br /&gt;
&lt;br /&gt;
In Debian and Ubuntu, do (as root, or using sudo etc.):&lt;br /&gt;
&lt;br /&gt;
 # apt-get install sysutils&lt;br /&gt;
&lt;br /&gt;
This will install dos2unix. Now we are ready to convert the script.&lt;br /&gt;
 # dos2unix -n update update.unix&lt;br /&gt;
 # chmod +x update.unix&lt;br /&gt;
 # ./update.unix&lt;br /&gt;
The first line converts the script character encoding, the second makes it executable and the third runs it. This trick is from a forum post by ilkapo.&lt;br /&gt;
&lt;br /&gt;
OK. Now that the update script is converted to unix format, you can run the final make:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything's gone well, congratulations! You should be able to launch Code::Blocks by running the generated &amp;lt;tt&amp;gt;run.sh&amp;lt;/tt&amp;gt; script in the &amp;lt;tt&amp;gt;output&amp;lt;/tt&amp;gt; subdir:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;output/run.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script can be ran from anywhere in your system so, yes, you can make a shortcut to it on your desktop ;)&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=146</id>
		<title>Installing Code::Blocks from source on Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=146"/>
		<updated>2005-08-21T04:35:04Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* wxWidgets 2.6.1 build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are instructions on how to build Code::Blocks under Linux. I 've ran and verified this procedure to work under SuSE 9.2 and Fedora Core 3. These instructions should work for all Linux distros, as we 'll be installing from sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
&lt;br /&gt;
In order to sucesfully compile Code::Blocks, the wxWidgets (wxGTK-2.4.2) cross-platform UI library must be installed. In this document, it is not assumed that it is already installed in your system and instructions are given on how to download, build and install it.&lt;br /&gt;
What is '''not''' covered here, is the wxWidgets prerequisites. The most important being GTK2, of course!&lt;br /&gt;
Let me stress it here, while it's early: &amp;lt;u&amp;gt;GTK2 is required&amp;lt;/u&amp;gt;, not GTK1, for Code::Blocks to be operational.&lt;br /&gt;
&lt;br /&gt;
All the instructions below, assume an existing directory named &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;. If you 'll be using a different one, adjust the path to match.&lt;br /&gt;
As a first step create this directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===wxGTK-2.4.2 installation===&lt;br /&gt;
====Getting wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Visit the [http://www.wxwidgets.org wxWidgets] web site. Click on the &amp;quot;Download&amp;quot; button in the sidebar on the left side of the page. You want to download the file named wxGTK-2.4.2.tar.gz (or wxGTK-2.4.2.tar.bz2). Save the file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Uncompressing the wxGTK sources====&lt;br /&gt;
&lt;br /&gt;
After the download finishes, switch to &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, untar the wxGTK sources:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar zxf wxGTK-2.4.2.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar jxf wxGTK-2.4.2.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
depending on which file you downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Patching wxGTK=====&lt;br /&gt;
&lt;br /&gt;
Most newer distros provide gtk2.4.x. Although wxGTK will compile using this gtk version, applications using this wxGTK will not compile succesfully. This happens because some internal function names were changed in later gtk versions and wxGTK-2.4.2, at the time of its release, did not account for these changes.&lt;br /&gt;
If your distro uses this gtk version, you will need to patch the wxGTK sources before the build process.&lt;br /&gt;
You can get the required patch from here (TODO: add link), or create a new file and put the following in it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;//sgl/devel/grimoire/x11-toolkits/wxGTK/gtk-2.4-fix.patch#1 - add change 30747 (text)&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/menu.cpp wxGTK-2.4.2-fix/src/gtk/menu.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/menu.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/menu.cpp	2004-03-29 14:53:34.000000000 +0200&lt;br /&gt;
@@ -30,13 +30,13 @@&lt;br /&gt;
 #ifdef __WXGTK20__&lt;br /&gt;
     #include &amp;lt;glib-object.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
-    #define gtk_accel_group_attach(g, o) _gtk_accel_group_attach((g), (o))&lt;br /&gt;
-    #define gtk_accel_group_detach(g, o) _gtk_accel_group_detach((g), (o))&lt;br /&gt;
+    #define gtk_accel_group_attach(g, o) gtk_window_add_accel_group((o), (g))&lt;br /&gt;
+    #define gtk_accel_group_detach(g, o) gtk_window_remove_accel_group((o), (g))&lt;br /&gt;
     #define gtk_menu_ensure_uline_accel_group(m) gtk_menu_get_accel_group(m)&lt;br /&gt;
 &lt;br /&gt;
-    #define ACCEL_OBJECT        GObject&lt;br /&gt;
+    #define ACCEL_OBJECT        GtkWindow&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;acceleratables&lt;br /&gt;
-    #define ACCEL_OBJ_CAST(obj) G_OBJECT(obj)&lt;br /&gt;
+    #define ACCEL_OBJ_CAST(obj) GTK_WINDOW(obj)&lt;br /&gt;
 #else // GTK+ 1.x&lt;br /&gt;
     #define ACCEL_OBJECT        GtkObject&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;attach_objects&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/settings.cpp wxGTK-2.4.2-fix/src/gtk/settings.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/settings.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/settings.cpp	2004-03-29 15:15:35.000000000 +0200&lt;br /&gt;
@@ -340,8 +340,8 @@&lt;br /&gt;
                 }  &lt;br /&gt;
                 else  &lt;br /&gt;
                 {  &lt;br /&gt;
-                    const gchar *font_name =&lt;br /&gt;
-                        _gtk_rc_context_get_default_font_name(gtk_settings_get_default());&lt;br /&gt;
+                    gchar *font_name;&lt;br /&gt;
+                    g_object_get(gtk_settings_get_default(), &amp;quot;gtk-font-name&amp;quot;, &amp;amp;font_name, NULL);&lt;br /&gt;
                     g_systemFont = new wxFont(wxString::FromAscii(font_name));&lt;br /&gt;
                 }  &lt;br /&gt;
                 gtk_widget_destroy( widget );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;(''Patch copied from http://www.flamerobin.org/dokuwiki/doku.php?id=wiki:wxgtkpatch.'')&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file as &amp;lt;tt&amp;gt;~/devel/gtk-2.4-fix.patch&amp;lt;/tt&amp;gt; and apply it by issuing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
patch -Np0 -i gtk-2.4-fix.patch&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can build wxGTK!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Issue the following commands to build wxGTK-2.4.2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel/wxGTK-2.4.2&lt;br /&gt;
./configure --enable-gtk2&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If something fails when you run the configure command, some wxGTK prerequisite is probably missing. Read through the output and figure out what's missing.&lt;br /&gt;
If all's gone well, after 10 to 30 minutes (depending on your machine), the wxGTK library should be ready. Time to install it, system-wide:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above command will ask you for the root's password (you &amp;lt;u&amp;gt;are&amp;lt;/u&amp;gt; working as a regular user, aren't you?) and then it will install the library and the needed development files in your system.&lt;br /&gt;
&lt;br /&gt;
The next step is to build STC: the wxWidgets wrapper for Scintilla (the editor). This is located in the contrib subdir hierarchy. To do this, issue the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd contrib/src/stc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you 're done, STC will have been installed too. All that's left, is the XRC library which is used to load XML resources. Type the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ../xrc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;NOTE:&amp;lt;/u&amp;gt; ''The Fedora Core 3 installation I tested this procedure, did not have /usr/local/lib in the library search path. I had to manually add /usr/local/lib in /etc/ld.so.conf as root and then issue ldconfig, as root again.''&lt;br /&gt;
&lt;br /&gt;
That's it! If you reached here, congratulations! You 've built and installed wxGTK in your system.&lt;br /&gt;
You 're now ready to download and build Code::Blocks - i.e. the easy part :) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Code::Blocks installation===&lt;br /&gt;
&lt;br /&gt;
====Downloading Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
You can get Code::Blocks source code in one of two ways:&lt;br /&gt;
* Download the latest source package, or&lt;br /&gt;
* Get the latest sources from the CVS repository.&lt;br /&gt;
Both methods, are described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Downloading the latest source package=====&lt;br /&gt;
&lt;br /&gt;
Go to the Code::Blocks [https://www.codeblocks.org web site] and download the latest source package. This would be the &amp;quot; Code::Blocks IDE version 1.0-finalbeta source code (tarball)&amp;quot; codeblocks-1.0-finalbeta.tar.gz.&lt;br /&gt;
Save this file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt; and then untar it:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
tar zxf codeblocks-1.0-finalbeta.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;~/devel/codeblocks-1.0-finalbeta&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks-1.0-finalbeta/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Getting the latest sources from CVS=====&lt;br /&gt;
&lt;br /&gt;
For the following to work, you need to have the &amp;lt;tt&amp;gt;cvs&amp;lt;/tt&amp;gt; command line client installed on your system.&lt;br /&gt;
First you need to login to the CVS server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When asked for a password, press enter.&lt;br /&gt;
Now, just checkout (i.e. download) the sources from the repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks co codeblocks&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;codeblocks&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
To build Code::Blocks all you have to do now is type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will build everything: the application and the plugins. The final step is to update the working environment for your system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following notes about converting the line endings does '''not''' apply to the CVS Version! The &amp;quot;update&amp;quot; script included there works just fine.&lt;br /&gt;
&lt;br /&gt;
'''Important note:''' Don't run that final make yet! The &amp;quot;update&amp;quot; script seems to be using Dos character encoding, which will result in its failure to run on Linux. To fix this, use dos2unix:&lt;br /&gt;
&lt;br /&gt;
To install it in Gentoo, do:&lt;br /&gt;
&lt;br /&gt;
 # emerge -av dos2unix&lt;br /&gt;
&lt;br /&gt;
In Debian and Ubuntu, do (as root, or using sudo etc.):&lt;br /&gt;
&lt;br /&gt;
 # apt-get install sysutils&lt;br /&gt;
&lt;br /&gt;
This will install dos2unix. Now we are ready to convert the script.&lt;br /&gt;
 # dos2unix -n update update.unix&lt;br /&gt;
 # chmod +x update.unix&lt;br /&gt;
 # ./update.unix&lt;br /&gt;
The first line converts the script character encoding, the second makes it executable and the third runs it. This trick is from a forum post by ilkapo.&lt;br /&gt;
&lt;br /&gt;
OK. Now that the update script is converted to unix format, you can run the final make:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything's gone well, congratulations! You should be able to launch Code::Blocks by running the generated &amp;lt;tt&amp;gt;run.sh&amp;lt;/tt&amp;gt; script in the &amp;lt;tt&amp;gt;output&amp;lt;/tt&amp;gt; subdir:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;output/run.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script can be ran from anywhere in your system so, yes, you can make a shortcut to it on your desktop ;)&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=145</id>
		<title>Installing Code::Blocks from source on Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux&amp;diff=145"/>
		<updated>2005-08-21T04:34:30Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building Code::Blocks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are instructions on how to build Code::Blocks under Linux. I 've ran and verified this procedure to work under SuSE 9.2 and Fedora Core 3. These instructions should work for all Linux distros, as we 'll be installing from sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
&lt;br /&gt;
In order to sucesfully compile Code::Blocks, the wxWidgets (wxGTK-2.4.2) cross-platform UI library must be installed. In this document, it is not assumed that it is already installed in your system and instructions are given on how to download, build and install it.&lt;br /&gt;
What is '''not''' covered here, is the wxWidgets prerequisites. The most important being GTK2, of course!&lt;br /&gt;
Let me stress it here, while it's early: &amp;lt;u&amp;gt;GTK2 is required&amp;lt;/u&amp;gt;, not GTK1, for Code::Blocks to be operational.&lt;br /&gt;
&lt;br /&gt;
All the instructions below, assume an existing directory named &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;. If you 'll be using a different one, adjust the path to match.&lt;br /&gt;
As a first step create this directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===wxGTK-2.4.2 installation===&lt;br /&gt;
====Getting wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Visit the [http://www.wxwidgets.org wxWidgets] web site. Click on the &amp;quot;Download&amp;quot; button in the sidebar on the left side of the page. You want to download the file named wxGTK-2.4.2.tar.gz (or wxGTK-2.4.2.tar.bz2). Save the file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Uncompressing the wxGTK sources====&lt;br /&gt;
&lt;br /&gt;
After the download finishes, switch to &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, untar the wxGTK sources:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar zxf wxGTK-2.4.2.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;tar jxf wxGTK-2.4.2.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
depending on which file you downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Patching wxGTK=====&lt;br /&gt;
&lt;br /&gt;
Most newer distros provide gtk2.4.x. Although wxGTK will compile using this gtk version, applications using this wxGTK will not compile succesfully. This happens because some internal function names were changed in later gtk versions and wxGTK-2.4.2, at the time of its release, did not account for these changes.&lt;br /&gt;
If your distro uses this gtk version, you will need to patch the wxGTK sources before the build process.&lt;br /&gt;
You can get the required patch from here (TODO: add link), or create a new file and put the following in it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;//sgl/devel/grimoire/x11-toolkits/wxGTK/gtk-2.4-fix.patch#1 - add change 30747 (text)&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/menu.cpp wxGTK-2.4.2-fix/src/gtk/menu.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/menu.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/menu.cpp	2004-03-29 14:53:34.000000000 +0200&lt;br /&gt;
@@ -30,13 +30,13 @@&lt;br /&gt;
 #ifdef __WXGTK20__&lt;br /&gt;
     #include &amp;lt;glib-object.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
-    #define gtk_accel_group_attach(g, o) _gtk_accel_group_attach((g), (o))&lt;br /&gt;
-    #define gtk_accel_group_detach(g, o) _gtk_accel_group_detach((g), (o))&lt;br /&gt;
+    #define gtk_accel_group_attach(g, o) gtk_window_add_accel_group((o), (g))&lt;br /&gt;
+    #define gtk_accel_group_detach(g, o) gtk_window_remove_accel_group((o), (g))&lt;br /&gt;
     #define gtk_menu_ensure_uline_accel_group(m) gtk_menu_get_accel_group(m)&lt;br /&gt;
 &lt;br /&gt;
-    #define ACCEL_OBJECT        GObject&lt;br /&gt;
+    #define ACCEL_OBJECT        GtkWindow&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;acceleratables&lt;br /&gt;
-    #define ACCEL_OBJ_CAST(obj) G_OBJECT(obj)&lt;br /&gt;
+    #define ACCEL_OBJ_CAST(obj) GTK_WINDOW(obj)&lt;br /&gt;
 #else // GTK+ 1.x&lt;br /&gt;
     #define ACCEL_OBJECT        GtkObject&lt;br /&gt;
     #define ACCEL_OBJECTS(a)    (a)-&amp;gt;attach_objects&lt;br /&gt;
diff -Nur wxGTK-2.4.2/src/gtk/settings.cpp wxGTK-2.4.2-fix/src/gtk/settings.cpp&lt;br /&gt;
--- wxGTK-2.4.2/src/gtk/settings.cpp	2003-09-21 13:31:57.000000000 +0200&lt;br /&gt;
+++ wxGTK-2.4.2-fix/src/gtk/settings.cpp	2004-03-29 15:15:35.000000000 +0200&lt;br /&gt;
@@ -340,8 +340,8 @@&lt;br /&gt;
                 }  &lt;br /&gt;
                 else  &lt;br /&gt;
                 {  &lt;br /&gt;
-                    const gchar *font_name =&lt;br /&gt;
-                        _gtk_rc_context_get_default_font_name(gtk_settings_get_default());&lt;br /&gt;
+                    gchar *font_name;&lt;br /&gt;
+                    g_object_get(gtk_settings_get_default(), &amp;quot;gtk-font-name&amp;quot;, &amp;amp;font_name, NULL);&lt;br /&gt;
                     g_systemFont = new wxFont(wxString::FromAscii(font_name));&lt;br /&gt;
                 }  &lt;br /&gt;
                 gtk_widget_destroy( widget );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;(''Patch copied from http://www.flamerobin.org/dokuwiki/doku.php?id=wiki:wxgtkpatch.'')&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file as &amp;lt;tt&amp;gt;~/devel/gtk-2.4-fix.patch&amp;lt;/tt&amp;gt; and apply it by issuing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
patch -Np0 -i gtk-2.4-fix.patch&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can build wxGTK!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building wxGTK-2.4.2====&lt;br /&gt;
&lt;br /&gt;
Issue the following commands to build wxGTK-2.4.2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel/wxGTK-2.4.2&lt;br /&gt;
./configure --enable-gtk2&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If something fails when you run the configure command, some wxGTK prerequisite is probably missing. Read through the output and figure out what's missing.&lt;br /&gt;
If all's gone well, after 10 to 30 minutes (depending on your machine), the wxGTK library should be ready. Time to install it, system-wide:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above command will ask you for the root's password (you &amp;lt;u&amp;gt;are&amp;lt;/u&amp;gt; working as a regular user, aren't you?) and then it will install the library and the needed development files in your system.&lt;br /&gt;
&lt;br /&gt;
The next step is to build STC: the wxWidgets wrapper for Scintilla (the editor). This is located in the contrib subdir hierarchy. To do this, issue the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd contrib/src/stc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you 're done, STC will have been installed too. All that's left, is the XRC library which is used to load XML resources. Type the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ../xrc&lt;br /&gt;
make&lt;br /&gt;
su -c &amp;quot;make install&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;NOTE:&amp;lt;/u&amp;gt; ''The Fedora Core 3 installation I tested this procedure, did not have /usr/local/lib in the library search path. I had to manually add /usr/local/lib in /etc/ld.so.conf as root and then issue ldconfig, as root again.''&lt;br /&gt;
&lt;br /&gt;
That's it! If you reached here, congratulations! You 've built and installed wxGTK in your system.&lt;br /&gt;
You 're now ready to download and build Code::Blocks - i.e. the easy part :) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Code::Blocks installation===&lt;br /&gt;
&lt;br /&gt;
====Downloading Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
You can get Code::Blocks source code in one of two ways:&lt;br /&gt;
* Download the latest source package, or&lt;br /&gt;
* Get the latest sources from the CVS repository.&lt;br /&gt;
Both methods, are described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Downloading the latest source package=====&lt;br /&gt;
&lt;br /&gt;
Go to the Code::Blocks [https://www.codeblocks.org web site] and download the latest source package. This would be the &amp;quot; Code::Blocks IDE version 1.0-finalbeta source code (tarball)&amp;quot; codeblocks-1.0-finalbeta.tar.gz.&lt;br /&gt;
Save this file in &amp;lt;tt&amp;gt;~/devel&amp;lt;/tt&amp;gt; and then untar it:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
tar zxf codeblocks-1.0-finalbeta.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;~/devel/codeblocks-1.0-finalbeta&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks-1.0-finalbeta/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Getting the latest sources from CVS=====&lt;br /&gt;
&lt;br /&gt;
For the following to work, you need to have the &amp;lt;tt&amp;gt;cvs&amp;lt;/tt&amp;gt; command line client installed on your system.&lt;br /&gt;
First you need to login to the CVS server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When asked for a password, press enter.&lt;br /&gt;
Now, just checkout (i.e. download) the sources from the repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~/devel&lt;br /&gt;
cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks co codeblocks&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will create the directory &amp;lt;tt&amp;gt;codeblocks&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Change to the source code directory, by issuing the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd codeblocks/src&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Building Code::Blocks====&lt;br /&gt;
&lt;br /&gt;
To build Code::Blocks all you have to do now is type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will build everything: the application and the plugins. The final step is to update the working environment for your system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following notes about converting the line endings does '''not''' apply to the CVS Version! The &amp;quot;update&amp;quot; script included there works just fine.&lt;br /&gt;
&lt;br /&gt;
'''Important note:''' Don't run that final make yet! The &amp;quot;update&amp;quot; script seems to be using Dos character encoding, which will result in its failure to run on Linux. To fix this, use dos2unix:&lt;br /&gt;
&lt;br /&gt;
To install it in Gentoo, do:&lt;br /&gt;
&lt;br /&gt;
 # emerge -av dos2unix&lt;br /&gt;
&lt;br /&gt;
In Debian and Ubuntu, do (as root, or using sudo etc.):&lt;br /&gt;
&lt;br /&gt;
 # apt-get install sysutils&lt;br /&gt;
&lt;br /&gt;
This will install dos2unix. Now we are ready to convert the script.&lt;br /&gt;
 # dos2unix -n update update.unix&lt;br /&gt;
 # chmod +x update.unix&lt;br /&gt;
 # ./update.unix&lt;br /&gt;
The first line converts the script character encoding, the second makes it executable and the third runs it. This trick is from a forum post by ilkapo.&lt;br /&gt;
&lt;br /&gt;
OK. Now that the update script is converted to unix format, you can run the final make:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;make -f Makefile.unix update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything's gone well, congratulations! You should be able to launch Code::Blocks by running the generated &amp;lt;tt&amp;gt;run.sh&amp;lt;/tt&amp;gt; script in the &amp;lt;tt&amp;gt;output&amp;lt;/tt&amp;gt; subdir:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;output/run.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script can be ran from anywhere in your system so, yes, you can make a shortcut to it on your desktop ;)&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
====wxWidgets 2.6.1 build====&lt;br /&gt;
&lt;br /&gt;
Here we will create a seperate build directory instead of building from the src directory, so that we can easily rebuild with different options (unicode / ansi, monolithic / many libs, etc).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The documentation says the default is for gtk2 to use unicode and wx &amp;gt; 2.5 to build as a monolithic library.  This doesn't appear to be the case, so these flags are passed to configure.&lt;br /&gt;
&lt;br /&gt;
mkdir build_gtk2_shared_monolithic_unicode&lt;br /&gt;
cd build_gtk2_shared_monolithic_unicode&lt;br /&gt;
../configure --prefix=/opt/wx/2.6 \&lt;br /&gt;
        --enable-monolithic \&lt;br /&gt;
        --enable-unicode || exit 1&lt;br /&gt;
make || exit 1&lt;br /&gt;
make -C contrib/src/stc || exit 1&lt;br /&gt;
su&lt;br /&gt;
make install&lt;br /&gt;
make -C contrib/src/stc install&lt;br /&gt;
exit&lt;br /&gt;
&lt;br /&gt;
add /opt/wx/2.6 to /etc/ld.so.conf (nano /etc/ld.so.conf)&lt;br /&gt;
ldconfig&lt;br /&gt;
&lt;br /&gt;
That's it.  Now the linker will look in /opt/wx/2.6 for wx libraries and you will have a monolithic shared library unicode build.&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=FAQ&amp;diff=187</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=FAQ&amp;diff=187"/>
		<updated>2005-08-16T16:36:33Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* I can't compile a multithreaded app with VC Toolkit! Where are the libraries? */&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 and DigitalMars Free Compiler.&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 definitions&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;
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                                          (VCT3)&lt;br /&gt;
 LIBCPMTD.LIB 	Multithreaded, static link                                            (none)&lt;br /&gt;
 MSVCPRTD.LIB 	Multithreaded, dynamic link (import library for MSVCP71D.DLL)         (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;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=FAQ&amp;diff=141</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=FAQ&amp;diff=141"/>
		<updated>2005-08-16T14:12:53Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* I can't compile a multithreaded app with VC Toolkit! Where are the libraries? */&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 and DigitalMars Free Compiler.&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 definitions&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;
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                                          (VCT3)&lt;br /&gt;
 LIBCPMTD.LIB 	Multithreaded, static link                                            (none)&lt;br /&gt;
 MSVCPRTD.LIB 	Multithreaded, dynamic link (import library for MSVCP71D.DLL)         (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.  You may also want to consider the Visual C++ Express Beta 2005 download @ http://msdn.microsoft.com/express instead of VCT3.&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;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=196</id>
		<title>Integrating Microsoft Visual Toolkit 2003 with Code::Blocks IDE</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=196"/>
		<updated>2005-08-09T20:05:02Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Compiling Hints */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Microsoft Visual C++ Toolkit 2003 - Overview==&lt;br /&gt;
'''Microsoft Visual C++ Toolkit 2003''' (or VCToolkit, MVCT) is freely available and free for commercial use minimalistic compiler suite released by Microsoft. It consists of high quality C/C++ optimizing compiler (VC 7.1, which is much better than old VC++ 6.0) and linker, but obviously comes  without IDE, thus making management of medium and larger projects nearly impossible. Luckily, it's where Code::Blocks IDE with its multi-compiler integration feature comes in handy! This tutorial will cover process of integrating these two incredible pieces of software - VCToolkit and Code::Blocks IDE.&lt;br /&gt;
&lt;br /&gt;
==What does VC Toolkit include, and what does it not?==&lt;br /&gt;
&lt;br /&gt;
According to '''readme.txt''' shipped with package, Microsoft Visual C++ Toolkit 2003 '''does include''':&lt;br /&gt;
 &lt;br /&gt;
* Visual C/C++ compiler and linker, same as these shipped with Visual Studio .NET 2003 Professional! &lt;br /&gt;
 &lt;br /&gt;
* C Runtime Library and the C++ Standard Library, including the Standard Template Library.  These are the same static-link libraries included with Visual Studio.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft .NET Framework Common Language Runtime.  Visual C++ can optionally build applications that run on the Common Language Runtime (CLR).  &lt;br /&gt;
 &lt;br /&gt;
* Code samples. The toolkit includes four samples designed to showcase the powerful new features of the 2003 version, including new optimization capabilities, features to improve code-security and robustness, enhanced ISO C++ standards support, and the ability to use the .NET Framework library and target the CLR. &lt;br /&gt;
&lt;br /&gt;
According the same source, MSVT '''does NOT include''':&lt;br /&gt;
 &lt;br /&gt;
* Various development tools shipped only with commercial Visual Studio IDE - like debugger, profiler, etc.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft Foundation Class (MFC) and Active Template Libraries (ATL). &lt;br /&gt;
&lt;br /&gt;
* Advanced developer tools, including compilers and tools for developing using other languages like Visual Basic and C#.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Packages needed==&lt;br /&gt;
In order to set up '''Code::Blocks IDE''' with '''Microsoft Visual C++ Toolkit 2003''' you need following packages:&lt;br /&gt;
&lt;br /&gt;
* '''Code::Blocks IDE''' itself.&lt;br /&gt;
: You can grab the latest version of '''Code::Blocks IDE''' in download section of [http://codeblocks.org/downloads.shtml Code::Blocks homepage] or at [http://sourceforge.net/project/showfiles.php?group_id=126998 project's site] at [http://sourceforge.net Source Forge]. (~3 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Microsoft Visual C++ Toolkit 2003''' compiler suite&lt;br /&gt;
: This package contains fully functional Visual C++ 7.1 compiler suite, which is '''free for commercial use'''. It contains minimalistic set of tools and C/C++ header and library files required for basic application development. You can download latest release of MVCT from [http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91B&amp;amp;displaylang=en Microsoft's website]. (~31.4 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Platform SDK'''&lt;br /&gt;
: This package provides a whole bunch of useful stuff not only for Visual C++ compiler users, but generally, any Windows developer - it includes extensive headers and libraries, as well as tools (like resource compiler, '''not included''' in basic VCToolkit package), documentation and samples.&lt;br /&gt;
&lt;br /&gt;
: There are three ways to obtain '''Platform SDK''':&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&amp;amp;DisplayLang=en Platform SDK Web Install]&lt;br /&gt;
: '''Platform SDK''' in its most compact shape - download tiny (~1.2 MB), compact installer, which will guide you through rest of the installation process (online). You will also decide yourself which components you want to install.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=eba0128f-a770-45f1-86f3-7ab010b398a3&amp;amp;DisplayLang=en Platform SDK Full Download] (beware, it's HUGE!)&lt;br /&gt;
: Complete '''Platform SDK''', with all things you will ever need or not. Huge, self-extracting *.cab installer.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?familyid=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92&amp;amp;displaylang=en Platform SDK ISO Install] (beware, it's HUGE!)&lt;br /&gt;
: Same as above, but you get it as *.img (CD image) file.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
: Choose the most convinient way for yourself.&lt;br /&gt;
&lt;br /&gt;
==Okay, so let's proceed with installation:==&lt;br /&gt;
&lt;br /&gt;
Basically, it doesn't really matter what you install first. The most convinient way, however, is to have compiler suite installed before running '''Code::Blocks IDE''' for the first time. In such case, C::B will likely autodetect available compilers during its startup, and set up everything correctly. If you have some of the components already installed, just skip that part.&lt;br /&gt;
&lt;br /&gt;
===Installing Microsoft Visual C++ Toolkit 2003===&lt;br /&gt;
Simply run '''VCToolkitSetup.exe''' and installation process will start. Select a path you want to install MVCT to. This tutorial assumes you installed it to:&lt;br /&gt;
 C:\VCToolkit2003\&lt;br /&gt;
When installation is done, navigate to the MSVT directory (&amp;quot;C:\VCToolkit2003\&amp;quot;) and run vcvars32.bat. It will set up enviromental variables.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' &amp;lt;small&amp;gt;Installing VCToolkit requires .NET Framework. Most likely you already have it. If not, setup will trigger .NET Framework installation and proceed it smoothly on older Windows NT systems (NT &amp;amp; 2000), newer ones (XP and above) already have it. This one will, however, fail if you have Windows 9x/Me. In order to install VCToolkit on these machines you need to install .NET Framework manually, preventing setup from triggering malfunctioning procedure. [TODO: it would be great if someone who actually tried it describe it somewhere here]&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Installing Platform SDK===&lt;br /&gt;
In this tutorial we will follow '''Platform SDK Web Install'''. Download (links above) and run '''PSDK-x86.exe''', '''PSDK-amd64.exe''' or '''PSDK-ia64.exe''' (according your PCs architecture). Select a path you want to install Platform SDK to. We will use &lt;br /&gt;
 C:\PlatformSDK\&lt;br /&gt;
If you select '''custom installation''', you will have to select which components you want to install. I didn't dare to run '''typical installation''', because it presumably downloads &amp;amp; installs everything (= hundreds of megabytes). Selecting components may be a little tricky, most of them are  related to various Microsoft technologies, and if you are using any of them in your applications, you  should install these features here, otherwise your programs will likely fail to compile and/or link correctly. You can update your Platform SDK installation at any time.&lt;br /&gt;
&lt;br /&gt;
When installation is finished, navigate to the Platform SDK directory (&amp;quot;C:\PlatformSDK\&amp;quot;) and run '''SetEnv.Cmd'''.&lt;br /&gt;
&lt;br /&gt;
===Installing Code::Blocks IDE===&lt;br /&gt;
Simply run setup file, and select a path where you want it to be installed. &lt;br /&gt;
&lt;br /&gt;
'''Note:''' some of the plugins are '''MinGW''' specific (GDB plugin, DevPak plugin). If you are not sure whether you might need them some day (you may switch to '''MinGW''' or simply decide to use more than one compiler), better install them (they are just few kilobytes anyway) and eventually keep them disabled.&lt;br /&gt;
&lt;br /&gt;
Now you can run the '''Code::Blocks IDE''' for the first time, and set up the compiler.&lt;br /&gt;
&lt;br /&gt;
==Setting up the compiler==&lt;br /&gt;
===First run compiler auto-detection===&lt;br /&gt;
If you have already installed MVCT on your machine, Code::Blocks will autodetect it now ([http://img289.imageshack.us/img289/4028/compilerautodetecton8rb.png screen]), as well as all other supported compilers that are present. If more than one compiler is detected, you can set one of them as default one.&lt;br /&gt;
&lt;br /&gt;
After this step, you should have Visual C++ compiler almost fully integrated with Code::Blocks.&lt;br /&gt;
You only need to inform compiler about your Platform SDK installation and goodies (like resource compiler) it should find there. Now, either go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; (in your C::B IDE) and then jump quickly to [[#Setting Platform SDK]], or read further to know more details and verify your auto-detection results.&lt;br /&gt;
&lt;br /&gt;
===Setting compiler from scratch (missed or failed first run auto-detection)===&lt;br /&gt;
In case you missed first run auto-detection (MVCT was not present at the time) or somehow it failed, you have to set up your compiler manually. Whole procedure is actually common for any supported compiler, and applies to Microsoft Visual C++ Toolkit 2003 perfectly:&lt;br /&gt;
&lt;br /&gt;
'''''Golden Tip :''' &amp;quot;In order to integrate any supported compiler with Code::Blocks, all you need to do is to correctly specify location of compiler's executables, as well as compiler's (include) and linker's (lib) directories&amp;quot;.''&lt;br /&gt;
====Specifying location of compiler's executables====&lt;br /&gt;
Go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; and make sure that &amp;quot;Microsoft Visual C++ Toolkit 2003&amp;quot; is selected.&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Programs&amp;quot; tab - verify whether '''''Compiler's installation directory''''' (the same you installed VCToolkit to, ie: &amp;quot;C:\VCToolkit2003\&amp;quot; ) is set properly  - if not - press &amp;quot;Autodetect&amp;quot;. If correct path doesn't appear, simply paste the correct one there or navigate to it using dialog available under &amp;quot;...&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
Note that all specified executables (compiler, linker, resource compiler) must exist either in the &amp;quot;bin&amp;quot; subdirectory of '''''Compiler's installation path''''' (ie: &amp;quot;C:\VCToolkit2003\bin\&amp;quot;) or in any other path specified here as &amp;quot;Extra path&amp;quot;. (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
====Specifying location of compiler's and linker's directories====&lt;br /&gt;
Open &amp;quot;Directories&amp;quot; tab and verify if following entries are present:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab - entries should point to &amp;quot;include&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab - entries should point to &amp;quot;lib&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\lib&lt;br /&gt;
&lt;br /&gt;
If not, do not hestitate to add these ones.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If you ever be using any library that is not included in MVCT (like FMOD, Allegro, or any of thousands open source libraries out there), you need either to add appropriate &amp;quot;include&amp;quot; and &amp;quot;libs&amp;quot; paths here too, or copy headers and libs to already specified paths.&lt;br /&gt;
 &lt;br /&gt;
===Setting Platform SDK===&lt;br /&gt;
Setting up Platform SDK looks the same as previous step, you just have to add appropriate entries that point to Platform SDK's &amp;quot;include&amp;quot; and &amp;quot;lib&amp;quot; subdirectories respectively.&lt;br /&gt;
&lt;br /&gt;
Being in &amp;quot;Directories&amp;quot; tab just add following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Lib&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Resource compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
Do not forget to specify extra path for resource compiler executable (it's in Platform SDK's &amp;quot;bin&amp;quot; subdirectory, ie: &amp;quot;C:\PlatformSDK\Bin&amp;quot; ) - you can do this in &amp;quot;Programs&amp;quot; tab (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That's all - you can compile your applications using free Microsoft Visual C++ Toolkit 2003 with Code::Blocks as your IDE.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
===Compiling Hints===&lt;br /&gt;
&lt;br /&gt;
-H1:  If the project cannot find &amp;quot;lib.exe&amp;quot; or &amp;quot;cvtres.exe&amp;quot; then use the ones in C:\Program Files\Microsoft Platform SDK\Bin\win64.  They correctly make lib files for 32-bit windows.  So add to the END of Programs-&amp;gt;Additional paths under &amp;quot;Compiler Settings&amp;quot;:&lt;br /&gt;
 C:\Program Files\Microsoft Platform SDK\Bin\win64&lt;br /&gt;
&lt;br /&gt;
-H2:  If the project you are compiling complains that it cannot find &amp;quot;msvcrt.lib&amp;quot; then download the .NET 1.1 SDK and add to the END of the Directories-&amp;gt;Linker tab:&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib&lt;br /&gt;
&lt;br /&gt;
Both the VC++ Toolkit 2003 and the platform SDK omit this library.&lt;br /&gt;
&lt;br /&gt;
-H3:  Note that the VC++ Toolkit itself does not come with debugging versions of the .lib library files.  For these you should also download the .NET 1.1 SDK and add the linker path as in H2 above.&lt;br /&gt;
&lt;br /&gt;
The MS naming convention for some their libraries seems to be e.g.&lt;br /&gt;
 release version = libc.lib&lt;br /&gt;
 debug version = libcd.lib&lt;br /&gt;
 multithreaded release version = libmt.lib&lt;br /&gt;
etc. (not sure about the 'i' or 'p' variants) &amp;lt;br&amp;gt;&lt;br /&gt;
The above link statically.&lt;br /&gt;
 dynamic multithreaded release version (uses a dll) = msvcrt.lib&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=136</id>
		<title>Integrating Microsoft Visual Toolkit 2003 with Code::Blocks IDE</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=136"/>
		<updated>2005-08-09T20:04:39Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Compiling Hints */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Microsoft Visual C++ Toolkit 2003 - Overview==&lt;br /&gt;
'''Microsoft Visual C++ Toolkit 2003''' (or VCToolkit, MVCT) is freely available and free for commercial use minimalistic compiler suite released by Microsoft. It consists of high quality C/C++ optimizing compiler (VC 7.1, which is much better than old VC++ 6.0) and linker, but obviously comes  without IDE, thus making management of medium and larger projects nearly impossible. Luckily, it's where Code::Blocks IDE with its multi-compiler integration feature comes in handy! This tutorial will cover process of integrating these two incredible pieces of software - VCToolkit and Code::Blocks IDE.&lt;br /&gt;
&lt;br /&gt;
==What does VC Toolkit include, and what does it not?==&lt;br /&gt;
&lt;br /&gt;
According to '''readme.txt''' shipped with package, Microsoft Visual C++ Toolkit 2003 '''does include''':&lt;br /&gt;
 &lt;br /&gt;
* Visual C/C++ compiler and linker, same as these shipped with Visual Studio .NET 2003 Professional! &lt;br /&gt;
 &lt;br /&gt;
* C Runtime Library and the C++ Standard Library, including the Standard Template Library.  These are the same static-link libraries included with Visual Studio.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft .NET Framework Common Language Runtime.  Visual C++ can optionally build applications that run on the Common Language Runtime (CLR).  &lt;br /&gt;
 &lt;br /&gt;
* Code samples. The toolkit includes four samples designed to showcase the powerful new features of the 2003 version, including new optimization capabilities, features to improve code-security and robustness, enhanced ISO C++ standards support, and the ability to use the .NET Framework library and target the CLR. &lt;br /&gt;
&lt;br /&gt;
According the same source, MSVT '''does NOT include''':&lt;br /&gt;
 &lt;br /&gt;
* Various development tools shipped only with commercial Visual Studio IDE - like debugger, profiler, etc.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft Foundation Class (MFC) and Active Template Libraries (ATL). &lt;br /&gt;
&lt;br /&gt;
* Advanced developer tools, including compilers and tools for developing using other languages like Visual Basic and C#.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Packages needed==&lt;br /&gt;
In order to set up '''Code::Blocks IDE''' with '''Microsoft Visual C++ Toolkit 2003''' you need following packages:&lt;br /&gt;
&lt;br /&gt;
* '''Code::Blocks IDE''' itself.&lt;br /&gt;
: You can grab the latest version of '''Code::Blocks IDE''' in download section of [http://codeblocks.org/downloads.shtml Code::Blocks homepage] or at [http://sourceforge.net/project/showfiles.php?group_id=126998 project's site] at [http://sourceforge.net Source Forge]. (~3 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Microsoft Visual C++ Toolkit 2003''' compiler suite&lt;br /&gt;
: This package contains fully functional Visual C++ 7.1 compiler suite, which is '''free for commercial use'''. It contains minimalistic set of tools and C/C++ header and library files required for basic application development. You can download latest release of MVCT from [http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91B&amp;amp;displaylang=en Microsoft's website]. (~31.4 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Platform SDK'''&lt;br /&gt;
: This package provides a whole bunch of useful stuff not only for Visual C++ compiler users, but generally, any Windows developer - it includes extensive headers and libraries, as well as tools (like resource compiler, '''not included''' in basic VCToolkit package), documentation and samples.&lt;br /&gt;
&lt;br /&gt;
: There are three ways to obtain '''Platform SDK''':&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&amp;amp;DisplayLang=en Platform SDK Web Install]&lt;br /&gt;
: '''Platform SDK''' in its most compact shape - download tiny (~1.2 MB), compact installer, which will guide you through rest of the installation process (online). You will also decide yourself which components you want to install.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=eba0128f-a770-45f1-86f3-7ab010b398a3&amp;amp;DisplayLang=en Platform SDK Full Download] (beware, it's HUGE!)&lt;br /&gt;
: Complete '''Platform SDK''', with all things you will ever need or not. Huge, self-extracting *.cab installer.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?familyid=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92&amp;amp;displaylang=en Platform SDK ISO Install] (beware, it's HUGE!)&lt;br /&gt;
: Same as above, but you get it as *.img (CD image) file.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
: Choose the most convinient way for yourself.&lt;br /&gt;
&lt;br /&gt;
==Okay, so let's proceed with installation:==&lt;br /&gt;
&lt;br /&gt;
Basically, it doesn't really matter what you install first. The most convinient way, however, is to have compiler suite installed before running '''Code::Blocks IDE''' for the first time. In such case, C::B will likely autodetect available compilers during its startup, and set up everything correctly. If you have some of the components already installed, just skip that part.&lt;br /&gt;
&lt;br /&gt;
===Installing Microsoft Visual C++ Toolkit 2003===&lt;br /&gt;
Simply run '''VCToolkitSetup.exe''' and installation process will start. Select a path you want to install MVCT to. This tutorial assumes you installed it to:&lt;br /&gt;
 C:\VCToolkit2003\&lt;br /&gt;
When installation is done, navigate to the MSVT directory (&amp;quot;C:\VCToolkit2003\&amp;quot;) and run vcvars32.bat. It will set up enviromental variables.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' &amp;lt;small&amp;gt;Installing VCToolkit requires .NET Framework. Most likely you already have it. If not, setup will trigger .NET Framework installation and proceed it smoothly on older Windows NT systems (NT &amp;amp; 2000), newer ones (XP and above) already have it. This one will, however, fail if you have Windows 9x/Me. In order to install VCToolkit on these machines you need to install .NET Framework manually, preventing setup from triggering malfunctioning procedure. [TODO: it would be great if someone who actually tried it describe it somewhere here]&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Installing Platform SDK===&lt;br /&gt;
In this tutorial we will follow '''Platform SDK Web Install'''. Download (links above) and run '''PSDK-x86.exe''', '''PSDK-amd64.exe''' or '''PSDK-ia64.exe''' (according your PCs architecture). Select a path you want to install Platform SDK to. We will use &lt;br /&gt;
 C:\PlatformSDK\&lt;br /&gt;
If you select '''custom installation''', you will have to select which components you want to install. I didn't dare to run '''typical installation''', because it presumably downloads &amp;amp; installs everything (= hundreds of megabytes). Selecting components may be a little tricky, most of them are  related to various Microsoft technologies, and if you are using any of them in your applications, you  should install these features here, otherwise your programs will likely fail to compile and/or link correctly. You can update your Platform SDK installation at any time.&lt;br /&gt;
&lt;br /&gt;
When installation is finished, navigate to the Platform SDK directory (&amp;quot;C:\PlatformSDK\&amp;quot;) and run '''SetEnv.Cmd'''.&lt;br /&gt;
&lt;br /&gt;
===Installing Code::Blocks IDE===&lt;br /&gt;
Simply run setup file, and select a path where you want it to be installed. &lt;br /&gt;
&lt;br /&gt;
'''Note:''' some of the plugins are '''MinGW''' specific (GDB plugin, DevPak plugin). If you are not sure whether you might need them some day (you may switch to '''MinGW''' or simply decide to use more than one compiler), better install them (they are just few kilobytes anyway) and eventually keep them disabled.&lt;br /&gt;
&lt;br /&gt;
Now you can run the '''Code::Blocks IDE''' for the first time, and set up the compiler.&lt;br /&gt;
&lt;br /&gt;
==Setting up the compiler==&lt;br /&gt;
===First run compiler auto-detection===&lt;br /&gt;
If you have already installed MVCT on your machine, Code::Blocks will autodetect it now ([http://img289.imageshack.us/img289/4028/compilerautodetecton8rb.png screen]), as well as all other supported compilers that are present. If more than one compiler is detected, you can set one of them as default one.&lt;br /&gt;
&lt;br /&gt;
After this step, you should have Visual C++ compiler almost fully integrated with Code::Blocks.&lt;br /&gt;
You only need to inform compiler about your Platform SDK installation and goodies (like resource compiler) it should find there. Now, either go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; (in your C::B IDE) and then jump quickly to [[#Setting Platform SDK]], or read further to know more details and verify your auto-detection results.&lt;br /&gt;
&lt;br /&gt;
===Setting compiler from scratch (missed or failed first run auto-detection)===&lt;br /&gt;
In case you missed first run auto-detection (MVCT was not present at the time) or somehow it failed, you have to set up your compiler manually. Whole procedure is actually common for any supported compiler, and applies to Microsoft Visual C++ Toolkit 2003 perfectly:&lt;br /&gt;
&lt;br /&gt;
'''''Golden Tip :''' &amp;quot;In order to integrate any supported compiler with Code::Blocks, all you need to do is to correctly specify location of compiler's executables, as well as compiler's (include) and linker's (lib) directories&amp;quot;.''&lt;br /&gt;
====Specifying location of compiler's executables====&lt;br /&gt;
Go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; and make sure that &amp;quot;Microsoft Visual C++ Toolkit 2003&amp;quot; is selected.&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Programs&amp;quot; tab - verify whether '''''Compiler's installation directory''''' (the same you installed VCToolkit to, ie: &amp;quot;C:\VCToolkit2003\&amp;quot; ) is set properly  - if not - press &amp;quot;Autodetect&amp;quot;. If correct path doesn't appear, simply paste the correct one there or navigate to it using dialog available under &amp;quot;...&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
Note that all specified executables (compiler, linker, resource compiler) must exist either in the &amp;quot;bin&amp;quot; subdirectory of '''''Compiler's installation path''''' (ie: &amp;quot;C:\VCToolkit2003\bin\&amp;quot;) or in any other path specified here as &amp;quot;Extra path&amp;quot;. (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
====Specifying location of compiler's and linker's directories====&lt;br /&gt;
Open &amp;quot;Directories&amp;quot; tab and verify if following entries are present:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab - entries should point to &amp;quot;include&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab - entries should point to &amp;quot;lib&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\lib&lt;br /&gt;
&lt;br /&gt;
If not, do not hestitate to add these ones.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If you ever be using any library that is not included in MVCT (like FMOD, Allegro, or any of thousands open source libraries out there), you need either to add appropriate &amp;quot;include&amp;quot; and &amp;quot;libs&amp;quot; paths here too, or copy headers and libs to already specified paths.&lt;br /&gt;
 &lt;br /&gt;
===Setting Platform SDK===&lt;br /&gt;
Setting up Platform SDK looks the same as previous step, you just have to add appropriate entries that point to Platform SDK's &amp;quot;include&amp;quot; and &amp;quot;lib&amp;quot; subdirectories respectively.&lt;br /&gt;
&lt;br /&gt;
Being in &amp;quot;Directories&amp;quot; tab just add following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Lib&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Resource compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
Do not forget to specify extra path for resource compiler executable (it's in Platform SDK's &amp;quot;bin&amp;quot; subdirectory, ie: &amp;quot;C:\PlatformSDK\Bin&amp;quot; ) - you can do this in &amp;quot;Programs&amp;quot; tab (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That's all - you can compile your applications using free Microsoft Visual C++ Toolkit 2003 with Code::Blocks as your IDE.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
===Compiling Hints===&lt;br /&gt;
&lt;br /&gt;
-H1:  If the project cannot find &amp;quot;lib.exe&amp;quot; or &amp;quot;cvtres.exe&amp;quot; then use the ones in C:\Program Files\Microsoft Platform SDK\Bin\win64.  They correctly make lib files for 32-bit windows.  So add to the END of Programs-&amp;gt;Additional paths under &amp;quot;Compiler Settings&amp;quot;:&lt;br /&gt;
 C:\Program Files\Microsoft Platform SDK\Bin\win64&lt;br /&gt;
&lt;br /&gt;
-H2:  If the project you are compiling complains that it cannot find &amp;quot;msvcrt.lib&amp;quot; then download the .NET 1.1 SDK and add to the END of the Directories-&amp;gt;Linker tab:&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib&lt;br /&gt;
&lt;br /&gt;
Both the VC++ Toolkit 2003 and the platform SDK omit this library.&lt;br /&gt;
&lt;br /&gt;
-H3:  Note that the VC++ Toolkit itself does not come with debugging versions of the .lib library files.  For these you should also download the .NET 1.1 SDK and add the linker path as in H2 above.&lt;br /&gt;
&lt;br /&gt;
The MS naming convention for some their libraries seems to be e.g.&lt;br /&gt;
 release version = libc.lib&lt;br /&gt;
 debug version = libcd.lib&lt;br /&gt;
 multithreaded release version = libmt.lib&lt;br /&gt;
etc. (not sure about the 'i' or 'p' variants)&lt;br /&gt;
The above link statically.&lt;br /&gt;
 dynamic multithreaded release version (uses a dll) = msvcrt.lib&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=135</id>
		<title>Integrating Microsoft Visual Toolkit 2003 with Code::Blocks IDE</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=135"/>
		<updated>2005-08-09T20:03:15Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Compiling Hints */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Microsoft Visual C++ Toolkit 2003 - Overview==&lt;br /&gt;
'''Microsoft Visual C++ Toolkit 2003''' (or VCToolkit, MVCT) is freely available and free for commercial use minimalistic compiler suite released by Microsoft. It consists of high quality C/C++ optimizing compiler (VC 7.1, which is much better than old VC++ 6.0) and linker, but obviously comes  without IDE, thus making management of medium and larger projects nearly impossible. Luckily, it's where Code::Blocks IDE with its multi-compiler integration feature comes in handy! This tutorial will cover process of integrating these two incredible pieces of software - VCToolkit and Code::Blocks IDE.&lt;br /&gt;
&lt;br /&gt;
==What does VC Toolkit include, and what does it not?==&lt;br /&gt;
&lt;br /&gt;
According to '''readme.txt''' shipped with package, Microsoft Visual C++ Toolkit 2003 '''does include''':&lt;br /&gt;
 &lt;br /&gt;
* Visual C/C++ compiler and linker, same as these shipped with Visual Studio .NET 2003 Professional! &lt;br /&gt;
 &lt;br /&gt;
* C Runtime Library and the C++ Standard Library, including the Standard Template Library.  These are the same static-link libraries included with Visual Studio.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft .NET Framework Common Language Runtime.  Visual C++ can optionally build applications that run on the Common Language Runtime (CLR).  &lt;br /&gt;
 &lt;br /&gt;
* Code samples. The toolkit includes four samples designed to showcase the powerful new features of the 2003 version, including new optimization capabilities, features to improve code-security and robustness, enhanced ISO C++ standards support, and the ability to use the .NET Framework library and target the CLR. &lt;br /&gt;
&lt;br /&gt;
According the same source, MSVT '''does NOT include''':&lt;br /&gt;
 &lt;br /&gt;
* Various development tools shipped only with commercial Visual Studio IDE - like debugger, profiler, etc.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft Foundation Class (MFC) and Active Template Libraries (ATL). &lt;br /&gt;
&lt;br /&gt;
* Advanced developer tools, including compilers and tools for developing using other languages like Visual Basic and C#.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Packages needed==&lt;br /&gt;
In order to set up '''Code::Blocks IDE''' with '''Microsoft Visual C++ Toolkit 2003''' you need following packages:&lt;br /&gt;
&lt;br /&gt;
* '''Code::Blocks IDE''' itself.&lt;br /&gt;
: You can grab the latest version of '''Code::Blocks IDE''' in download section of [http://codeblocks.org/downloads.shtml Code::Blocks homepage] or at [http://sourceforge.net/project/showfiles.php?group_id=126998 project's site] at [http://sourceforge.net Source Forge]. (~3 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Microsoft Visual C++ Toolkit 2003''' compiler suite&lt;br /&gt;
: This package contains fully functional Visual C++ 7.1 compiler suite, which is '''free for commercial use'''. It contains minimalistic set of tools and C/C++ header and library files required for basic application development. You can download latest release of MVCT from [http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91B&amp;amp;displaylang=en Microsoft's website]. (~31.4 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Platform SDK'''&lt;br /&gt;
: This package provides a whole bunch of useful stuff not only for Visual C++ compiler users, but generally, any Windows developer - it includes extensive headers and libraries, as well as tools (like resource compiler, '''not included''' in basic VCToolkit package), documentation and samples.&lt;br /&gt;
&lt;br /&gt;
: There are three ways to obtain '''Platform SDK''':&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&amp;amp;DisplayLang=en Platform SDK Web Install]&lt;br /&gt;
: '''Platform SDK''' in its most compact shape - download tiny (~1.2 MB), compact installer, which will guide you through rest of the installation process (online). You will also decide yourself which components you want to install.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=eba0128f-a770-45f1-86f3-7ab010b398a3&amp;amp;DisplayLang=en Platform SDK Full Download] (beware, it's HUGE!)&lt;br /&gt;
: Complete '''Platform SDK''', with all things you will ever need or not. Huge, self-extracting *.cab installer.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?familyid=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92&amp;amp;displaylang=en Platform SDK ISO Install] (beware, it's HUGE!)&lt;br /&gt;
: Same as above, but you get it as *.img (CD image) file.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
: Choose the most convinient way for yourself.&lt;br /&gt;
&lt;br /&gt;
==Okay, so let's proceed with installation:==&lt;br /&gt;
&lt;br /&gt;
Basically, it doesn't really matter what you install first. The most convinient way, however, is to have compiler suite installed before running '''Code::Blocks IDE''' for the first time. In such case, C::B will likely autodetect available compilers during its startup, and set up everything correctly. If you have some of the components already installed, just skip that part.&lt;br /&gt;
&lt;br /&gt;
===Installing Microsoft Visual C++ Toolkit 2003===&lt;br /&gt;
Simply run '''VCToolkitSetup.exe''' and installation process will start. Select a path you want to install MVCT to. This tutorial assumes you installed it to:&lt;br /&gt;
 C:\VCToolkit2003\&lt;br /&gt;
When installation is done, navigate to the MSVT directory (&amp;quot;C:\VCToolkit2003\&amp;quot;) and run vcvars32.bat. It will set up enviromental variables.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' &amp;lt;small&amp;gt;Installing VCToolkit requires .NET Framework. Most likely you already have it. If not, setup will trigger .NET Framework installation and proceed it smoothly on older Windows NT systems (NT &amp;amp; 2000), newer ones (XP and above) already have it. This one will, however, fail if you have Windows 9x/Me. In order to install VCToolkit on these machines you need to install .NET Framework manually, preventing setup from triggering malfunctioning procedure. [TODO: it would be great if someone who actually tried it describe it somewhere here]&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Installing Platform SDK===&lt;br /&gt;
In this tutorial we will follow '''Platform SDK Web Install'''. Download (links above) and run '''PSDK-x86.exe''', '''PSDK-amd64.exe''' or '''PSDK-ia64.exe''' (according your PCs architecture). Select a path you want to install Platform SDK to. We will use &lt;br /&gt;
 C:\PlatformSDK\&lt;br /&gt;
If you select '''custom installation''', you will have to select which components you want to install. I didn't dare to run '''typical installation''', because it presumably downloads &amp;amp; installs everything (= hundreds of megabytes). Selecting components may be a little tricky, most of them are  related to various Microsoft technologies, and if you are using any of them in your applications, you  should install these features here, otherwise your programs will likely fail to compile and/or link correctly. You can update your Platform SDK installation at any time.&lt;br /&gt;
&lt;br /&gt;
When installation is finished, navigate to the Platform SDK directory (&amp;quot;C:\PlatformSDK\&amp;quot;) and run '''SetEnv.Cmd'''.&lt;br /&gt;
&lt;br /&gt;
===Installing Code::Blocks IDE===&lt;br /&gt;
Simply run setup file, and select a path where you want it to be installed. &lt;br /&gt;
&lt;br /&gt;
'''Note:''' some of the plugins are '''MinGW''' specific (GDB plugin, DevPak plugin). If you are not sure whether you might need them some day (you may switch to '''MinGW''' or simply decide to use more than one compiler), better install them (they are just few kilobytes anyway) and eventually keep them disabled.&lt;br /&gt;
&lt;br /&gt;
Now you can run the '''Code::Blocks IDE''' for the first time, and set up the compiler.&lt;br /&gt;
&lt;br /&gt;
==Setting up the compiler==&lt;br /&gt;
===First run compiler auto-detection===&lt;br /&gt;
If you have already installed MVCT on your machine, Code::Blocks will autodetect it now ([http://img289.imageshack.us/img289/4028/compilerautodetecton8rb.png screen]), as well as all other supported compilers that are present. If more than one compiler is detected, you can set one of them as default one.&lt;br /&gt;
&lt;br /&gt;
After this step, you should have Visual C++ compiler almost fully integrated with Code::Blocks.&lt;br /&gt;
You only need to inform compiler about your Platform SDK installation and goodies (like resource compiler) it should find there. Now, either go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; (in your C::B IDE) and then jump quickly to [[#Setting Platform SDK]], or read further to know more details and verify your auto-detection results.&lt;br /&gt;
&lt;br /&gt;
===Setting compiler from scratch (missed or failed first run auto-detection)===&lt;br /&gt;
In case you missed first run auto-detection (MVCT was not present at the time) or somehow it failed, you have to set up your compiler manually. Whole procedure is actually common for any supported compiler, and applies to Microsoft Visual C++ Toolkit 2003 perfectly:&lt;br /&gt;
&lt;br /&gt;
'''''Golden Tip :''' &amp;quot;In order to integrate any supported compiler with Code::Blocks, all you need to do is to correctly specify location of compiler's executables, as well as compiler's (include) and linker's (lib) directories&amp;quot;.''&lt;br /&gt;
====Specifying location of compiler's executables====&lt;br /&gt;
Go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; and make sure that &amp;quot;Microsoft Visual C++ Toolkit 2003&amp;quot; is selected.&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Programs&amp;quot; tab - verify whether '''''Compiler's installation directory''''' (the same you installed VCToolkit to, ie: &amp;quot;C:\VCToolkit2003\&amp;quot; ) is set properly  - if not - press &amp;quot;Autodetect&amp;quot;. If correct path doesn't appear, simply paste the correct one there or navigate to it using dialog available under &amp;quot;...&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
Note that all specified executables (compiler, linker, resource compiler) must exist either in the &amp;quot;bin&amp;quot; subdirectory of '''''Compiler's installation path''''' (ie: &amp;quot;C:\VCToolkit2003\bin\&amp;quot;) or in any other path specified here as &amp;quot;Extra path&amp;quot;. (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
====Specifying location of compiler's and linker's directories====&lt;br /&gt;
Open &amp;quot;Directories&amp;quot; tab and verify if following entries are present:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab - entries should point to &amp;quot;include&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab - entries should point to &amp;quot;lib&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\lib&lt;br /&gt;
&lt;br /&gt;
If not, do not hestitate to add these ones.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If you ever be using any library that is not included in MVCT (like FMOD, Allegro, or any of thousands open source libraries out there), you need either to add appropriate &amp;quot;include&amp;quot; and &amp;quot;libs&amp;quot; paths here too, or copy headers and libs to already specified paths.&lt;br /&gt;
 &lt;br /&gt;
===Setting Platform SDK===&lt;br /&gt;
Setting up Platform SDK looks the same as previous step, you just have to add appropriate entries that point to Platform SDK's &amp;quot;include&amp;quot; and &amp;quot;lib&amp;quot; subdirectories respectively.&lt;br /&gt;
&lt;br /&gt;
Being in &amp;quot;Directories&amp;quot; tab just add following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Lib&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Resource compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
Do not forget to specify extra path for resource compiler executable (it's in Platform SDK's &amp;quot;bin&amp;quot; subdirectory, ie: &amp;quot;C:\PlatformSDK\Bin&amp;quot; ) - you can do this in &amp;quot;Programs&amp;quot; tab (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That's all - you can compile your applications using free Microsoft Visual C++ Toolkit 2003 with Code::Blocks as your IDE.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
===Compiling Hints===&lt;br /&gt;
&lt;br /&gt;
-H1:  If the project cannot find &amp;quot;lib.exe&amp;quot; or &amp;quot;cvtres.exe&amp;quot; then use the ones in C:\Program Files\Microsoft Platform SDK\Bin\win64.  They correctly make lib files for 32-bit windows.  So add to the END of Programs-&amp;gt;Additional paths under &amp;quot;Compiler Settings&amp;quot;:&lt;br /&gt;
 C:\Program Files\Microsoft Platform SDK\Bin\win64&lt;br /&gt;
&lt;br /&gt;
-H2:  If the project you are compiling complains that it cannot find &amp;quot;msvcrt.lib&amp;quot; then download the .NET 1.1 SDK and add to the END of the Directories-&amp;gt;Linker tab:&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib&lt;br /&gt;
&lt;br /&gt;
Both the VC++ Toolkit 2003 and the platform SDK omit this library.&lt;br /&gt;
&lt;br /&gt;
-H3:  Note that the VC++ Toolkit itself does not come with debugging versions of the .lib library files.  For these you should also download the .NET 1.1 SDK and add the linker path as in H2 above.&lt;br /&gt;
&lt;br /&gt;
The MS naming convention for some their libraries seems to be e.g. &amp;lt;br&amp;gt;&lt;br /&gt;
release version = libc.lib &amp;lt;br&amp;gt;&lt;br /&gt;
debug version = libcd.lib &amp;lt;br&amp;gt;&lt;br /&gt;
multithreaded release version = libmt.lib &amp;lt;br&amp;gt;&lt;br /&gt;
etc. (not sure about the 'i' or 'p' variants) &amp;lt;br&amp;gt;&lt;br /&gt;
The above link statically. &amp;lt;br&amp;gt;&lt;br /&gt;
dynamic multithreaded release version (uses a dll) = msvcrt.lib &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=134</id>
		<title>Integrating Microsoft Visual Toolkit 2003 with Code::Blocks IDE</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=134"/>
		<updated>2005-08-09T20:02:01Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Compiling Hints */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Microsoft Visual C++ Toolkit 2003 - Overview==&lt;br /&gt;
'''Microsoft Visual C++ Toolkit 2003''' (or VCToolkit, MVCT) is freely available and free for commercial use minimalistic compiler suite released by Microsoft. It consists of high quality C/C++ optimizing compiler (VC 7.1, which is much better than old VC++ 6.0) and linker, but obviously comes  without IDE, thus making management of medium and larger projects nearly impossible. Luckily, it's where Code::Blocks IDE with its multi-compiler integration feature comes in handy! This tutorial will cover process of integrating these two incredible pieces of software - VCToolkit and Code::Blocks IDE.&lt;br /&gt;
&lt;br /&gt;
==What does VC Toolkit include, and what does it not?==&lt;br /&gt;
&lt;br /&gt;
According to '''readme.txt''' shipped with package, Microsoft Visual C++ Toolkit 2003 '''does include''':&lt;br /&gt;
 &lt;br /&gt;
* Visual C/C++ compiler and linker, same as these shipped with Visual Studio .NET 2003 Professional! &lt;br /&gt;
 &lt;br /&gt;
* C Runtime Library and the C++ Standard Library, including the Standard Template Library.  These are the same static-link libraries included with Visual Studio.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft .NET Framework Common Language Runtime.  Visual C++ can optionally build applications that run on the Common Language Runtime (CLR).  &lt;br /&gt;
 &lt;br /&gt;
* Code samples. The toolkit includes four samples designed to showcase the powerful new features of the 2003 version, including new optimization capabilities, features to improve code-security and robustness, enhanced ISO C++ standards support, and the ability to use the .NET Framework library and target the CLR. &lt;br /&gt;
&lt;br /&gt;
According the same source, MSVT '''does NOT include''':&lt;br /&gt;
 &lt;br /&gt;
* Various development tools shipped only with commercial Visual Studio IDE - like debugger, profiler, etc.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft Foundation Class (MFC) and Active Template Libraries (ATL). &lt;br /&gt;
&lt;br /&gt;
* Advanced developer tools, including compilers and tools for developing using other languages like Visual Basic and C#.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Packages needed==&lt;br /&gt;
In order to set up '''Code::Blocks IDE''' with '''Microsoft Visual C++ Toolkit 2003''' you need following packages:&lt;br /&gt;
&lt;br /&gt;
* '''Code::Blocks IDE''' itself.&lt;br /&gt;
: You can grab the latest version of '''Code::Blocks IDE''' in download section of [http://codeblocks.org/downloads.shtml Code::Blocks homepage] or at [http://sourceforge.net/project/showfiles.php?group_id=126998 project's site] at [http://sourceforge.net Source Forge]. (~3 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Microsoft Visual C++ Toolkit 2003''' compiler suite&lt;br /&gt;
: This package contains fully functional Visual C++ 7.1 compiler suite, which is '''free for commercial use'''. It contains minimalistic set of tools and C/C++ header and library files required for basic application development. You can download latest release of MVCT from [http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91B&amp;amp;displaylang=en Microsoft's website]. (~31.4 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Platform SDK'''&lt;br /&gt;
: This package provides a whole bunch of useful stuff not only for Visual C++ compiler users, but generally, any Windows developer - it includes extensive headers and libraries, as well as tools (like resource compiler, '''not included''' in basic VCToolkit package), documentation and samples.&lt;br /&gt;
&lt;br /&gt;
: There are three ways to obtain '''Platform SDK''':&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&amp;amp;DisplayLang=en Platform SDK Web Install]&lt;br /&gt;
: '''Platform SDK''' in its most compact shape - download tiny (~1.2 MB), compact installer, which will guide you through rest of the installation process (online). You will also decide yourself which components you want to install.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=eba0128f-a770-45f1-86f3-7ab010b398a3&amp;amp;DisplayLang=en Platform SDK Full Download] (beware, it's HUGE!)&lt;br /&gt;
: Complete '''Platform SDK''', with all things you will ever need or not. Huge, self-extracting *.cab installer.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?familyid=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92&amp;amp;displaylang=en Platform SDK ISO Install] (beware, it's HUGE!)&lt;br /&gt;
: Same as above, but you get it as *.img (CD image) file.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
: Choose the most convinient way for yourself.&lt;br /&gt;
&lt;br /&gt;
==Okay, so let's proceed with installation:==&lt;br /&gt;
&lt;br /&gt;
Basically, it doesn't really matter what you install first. The most convinient way, however, is to have compiler suite installed before running '''Code::Blocks IDE''' for the first time. In such case, C::B will likely autodetect available compilers during its startup, and set up everything correctly. If you have some of the components already installed, just skip that part.&lt;br /&gt;
&lt;br /&gt;
===Installing Microsoft Visual C++ Toolkit 2003===&lt;br /&gt;
Simply run '''VCToolkitSetup.exe''' and installation process will start. Select a path you want to install MVCT to. This tutorial assumes you installed it to:&lt;br /&gt;
 C:\VCToolkit2003\&lt;br /&gt;
When installation is done, navigate to the MSVT directory (&amp;quot;C:\VCToolkit2003\&amp;quot;) and run vcvars32.bat. It will set up enviromental variables.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' &amp;lt;small&amp;gt;Installing VCToolkit requires .NET Framework. Most likely you already have it. If not, setup will trigger .NET Framework installation and proceed it smoothly on older Windows NT systems (NT &amp;amp; 2000), newer ones (XP and above) already have it. This one will, however, fail if you have Windows 9x/Me. In order to install VCToolkit on these machines you need to install .NET Framework manually, preventing setup from triggering malfunctioning procedure. [TODO: it would be great if someone who actually tried it describe it somewhere here]&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Installing Platform SDK===&lt;br /&gt;
In this tutorial we will follow '''Platform SDK Web Install'''. Download (links above) and run '''PSDK-x86.exe''', '''PSDK-amd64.exe''' or '''PSDK-ia64.exe''' (according your PCs architecture). Select a path you want to install Platform SDK to. We will use &lt;br /&gt;
 C:\PlatformSDK\&lt;br /&gt;
If you select '''custom installation''', you will have to select which components you want to install. I didn't dare to run '''typical installation''', because it presumably downloads &amp;amp; installs everything (= hundreds of megabytes). Selecting components may be a little tricky, most of them are  related to various Microsoft technologies, and if you are using any of them in your applications, you  should install these features here, otherwise your programs will likely fail to compile and/or link correctly. You can update your Platform SDK installation at any time.&lt;br /&gt;
&lt;br /&gt;
When installation is finished, navigate to the Platform SDK directory (&amp;quot;C:\PlatformSDK\&amp;quot;) and run '''SetEnv.Cmd'''.&lt;br /&gt;
&lt;br /&gt;
===Installing Code::Blocks IDE===&lt;br /&gt;
Simply run setup file, and select a path where you want it to be installed. &lt;br /&gt;
&lt;br /&gt;
'''Note:''' some of the plugins are '''MinGW''' specific (GDB plugin, DevPak plugin). If you are not sure whether you might need them some day (you may switch to '''MinGW''' or simply decide to use more than one compiler), better install them (they are just few kilobytes anyway) and eventually keep them disabled.&lt;br /&gt;
&lt;br /&gt;
Now you can run the '''Code::Blocks IDE''' for the first time, and set up the compiler.&lt;br /&gt;
&lt;br /&gt;
==Setting up the compiler==&lt;br /&gt;
===First run compiler auto-detection===&lt;br /&gt;
If you have already installed MVCT on your machine, Code::Blocks will autodetect it now ([http://img289.imageshack.us/img289/4028/compilerautodetecton8rb.png screen]), as well as all other supported compilers that are present. If more than one compiler is detected, you can set one of them as default one.&lt;br /&gt;
&lt;br /&gt;
After this step, you should have Visual C++ compiler almost fully integrated with Code::Blocks.&lt;br /&gt;
You only need to inform compiler about your Platform SDK installation and goodies (like resource compiler) it should find there. Now, either go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; (in your C::B IDE) and then jump quickly to [[#Setting Platform SDK]], or read further to know more details and verify your auto-detection results.&lt;br /&gt;
&lt;br /&gt;
===Setting compiler from scratch (missed or failed first run auto-detection)===&lt;br /&gt;
In case you missed first run auto-detection (MVCT was not present at the time) or somehow it failed, you have to set up your compiler manually. Whole procedure is actually common for any supported compiler, and applies to Microsoft Visual C++ Toolkit 2003 perfectly:&lt;br /&gt;
&lt;br /&gt;
'''''Golden Tip :''' &amp;quot;In order to integrate any supported compiler with Code::Blocks, all you need to do is to correctly specify location of compiler's executables, as well as compiler's (include) and linker's (lib) directories&amp;quot;.''&lt;br /&gt;
====Specifying location of compiler's executables====&lt;br /&gt;
Go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; and make sure that &amp;quot;Microsoft Visual C++ Toolkit 2003&amp;quot; is selected.&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Programs&amp;quot; tab - verify whether '''''Compiler's installation directory''''' (the same you installed VCToolkit to, ie: &amp;quot;C:\VCToolkit2003\&amp;quot; ) is set properly  - if not - press &amp;quot;Autodetect&amp;quot;. If correct path doesn't appear, simply paste the correct one there or navigate to it using dialog available under &amp;quot;...&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
Note that all specified executables (compiler, linker, resource compiler) must exist either in the &amp;quot;bin&amp;quot; subdirectory of '''''Compiler's installation path''''' (ie: &amp;quot;C:\VCToolkit2003\bin\&amp;quot;) or in any other path specified here as &amp;quot;Extra path&amp;quot;. (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
====Specifying location of compiler's and linker's directories====&lt;br /&gt;
Open &amp;quot;Directories&amp;quot; tab and verify if following entries are present:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab - entries should point to &amp;quot;include&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab - entries should point to &amp;quot;lib&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\lib&lt;br /&gt;
&lt;br /&gt;
If not, do not hestitate to add these ones.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If you ever be using any library that is not included in MVCT (like FMOD, Allegro, or any of thousands open source libraries out there), you need either to add appropriate &amp;quot;include&amp;quot; and &amp;quot;libs&amp;quot; paths here too, or copy headers and libs to already specified paths.&lt;br /&gt;
 &lt;br /&gt;
===Setting Platform SDK===&lt;br /&gt;
Setting up Platform SDK looks the same as previous step, you just have to add appropriate entries that point to Platform SDK's &amp;quot;include&amp;quot; and &amp;quot;lib&amp;quot; subdirectories respectively.&lt;br /&gt;
&lt;br /&gt;
Being in &amp;quot;Directories&amp;quot; tab just add following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Lib&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Resource compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
Do not forget to specify extra path for resource compiler executable (it's in Platform SDK's &amp;quot;bin&amp;quot; subdirectory, ie: &amp;quot;C:\PlatformSDK\Bin&amp;quot; ) - you can do this in &amp;quot;Programs&amp;quot; tab (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That's all - you can compile your applications using free Microsoft Visual C++ Toolkit 2003 with Code::Blocks as your IDE.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
===Compiling Hints===&lt;br /&gt;
&lt;br /&gt;
-H1:  If the project cannot find &amp;quot;lib.exe&amp;quot; or &amp;quot;cvtres.exe&amp;quot; then use the ones in C:\Program Files\Microsoft Platform SDK\Bin\win64.  They correctly make lib files for 32-bit windows.  So add to the END of Programs-&amp;gt;Additional paths under &amp;quot;Compiler Settings&amp;quot;:&lt;br /&gt;
 C:\Program Files\Microsoft Platform SDK\Bin\win64&lt;br /&gt;
&lt;br /&gt;
-H2:  If the project you are compiling complains that it cannot find &amp;quot;msvcrt.lib&amp;quot; then download the .NET 1.1 SDK and add to the END of the Directories-&amp;gt;Linker tab:&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib&lt;br /&gt;
&lt;br /&gt;
Both the VC++ Toolkit 2003 and the platform SDK omit this library.&lt;br /&gt;
&lt;br /&gt;
-H3:  Note that the VC++ Toolkit itself does not come with debugging versions of the .lib library files.  For these you should also download the .NET 1.1 SDK and add the linker path as in H2 above.&lt;br /&gt;
&lt;br /&gt;
The MS naming convention for some their libraries seems to be e.g.&lt;br /&gt;
release version = libc.lib&lt;br /&gt;
debug version = libcd.lib&lt;br /&gt;
multithreaded release version = libmt.lib &lt;br /&gt;
etc. (not sure about the 'i' or 'p' variants)&lt;br /&gt;
The above link statically.&lt;br /&gt;
dynamic multithreaded release version (uses a dll) = msvcrt.lib&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=133</id>
		<title>Integrating Microsoft Visual Toolkit 2003 with Code::Blocks IDE</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=133"/>
		<updated>2005-08-09T20:00:05Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Compiling Hints */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Microsoft Visual C++ Toolkit 2003 - Overview==&lt;br /&gt;
'''Microsoft Visual C++ Toolkit 2003''' (or VCToolkit, MVCT) is freely available and free for commercial use minimalistic compiler suite released by Microsoft. It consists of high quality C/C++ optimizing compiler (VC 7.1, which is much better than old VC++ 6.0) and linker, but obviously comes  without IDE, thus making management of medium and larger projects nearly impossible. Luckily, it's where Code::Blocks IDE with its multi-compiler integration feature comes in handy! This tutorial will cover process of integrating these two incredible pieces of software - VCToolkit and Code::Blocks IDE.&lt;br /&gt;
&lt;br /&gt;
==What does VC Toolkit include, and what does it not?==&lt;br /&gt;
&lt;br /&gt;
According to '''readme.txt''' shipped with package, Microsoft Visual C++ Toolkit 2003 '''does include''':&lt;br /&gt;
 &lt;br /&gt;
* Visual C/C++ compiler and linker, same as these shipped with Visual Studio .NET 2003 Professional! &lt;br /&gt;
 &lt;br /&gt;
* C Runtime Library and the C++ Standard Library, including the Standard Template Library.  These are the same static-link libraries included with Visual Studio.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft .NET Framework Common Language Runtime.  Visual C++ can optionally build applications that run on the Common Language Runtime (CLR).  &lt;br /&gt;
 &lt;br /&gt;
* Code samples. The toolkit includes four samples designed to showcase the powerful new features of the 2003 version, including new optimization capabilities, features to improve code-security and robustness, enhanced ISO C++ standards support, and the ability to use the .NET Framework library and target the CLR. &lt;br /&gt;
&lt;br /&gt;
According the same source, MSVT '''does NOT include''':&lt;br /&gt;
 &lt;br /&gt;
* Various development tools shipped only with commercial Visual Studio IDE - like debugger, profiler, etc.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft Foundation Class (MFC) and Active Template Libraries (ATL). &lt;br /&gt;
&lt;br /&gt;
* Advanced developer tools, including compilers and tools for developing using other languages like Visual Basic and C#.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Packages needed==&lt;br /&gt;
In order to set up '''Code::Blocks IDE''' with '''Microsoft Visual C++ Toolkit 2003''' you need following packages:&lt;br /&gt;
&lt;br /&gt;
* '''Code::Blocks IDE''' itself.&lt;br /&gt;
: You can grab the latest version of '''Code::Blocks IDE''' in download section of [http://codeblocks.org/downloads.shtml Code::Blocks homepage] or at [http://sourceforge.net/project/showfiles.php?group_id=126998 project's site] at [http://sourceforge.net Source Forge]. (~3 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Microsoft Visual C++ Toolkit 2003''' compiler suite&lt;br /&gt;
: This package contains fully functional Visual C++ 7.1 compiler suite, which is '''free for commercial use'''. It contains minimalistic set of tools and C/C++ header and library files required for basic application development. You can download latest release of MVCT from [http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91B&amp;amp;displaylang=en Microsoft's website]. (~31.4 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Platform SDK'''&lt;br /&gt;
: This package provides a whole bunch of useful stuff not only for Visual C++ compiler users, but generally, any Windows developer - it includes extensive headers and libraries, as well as tools (like resource compiler, '''not included''' in basic VCToolkit package), documentation and samples.&lt;br /&gt;
&lt;br /&gt;
: There are three ways to obtain '''Platform SDK''':&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&amp;amp;DisplayLang=en Platform SDK Web Install]&lt;br /&gt;
: '''Platform SDK''' in its most compact shape - download tiny (~1.2 MB), compact installer, which will guide you through rest of the installation process (online). You will also decide yourself which components you want to install.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=eba0128f-a770-45f1-86f3-7ab010b398a3&amp;amp;DisplayLang=en Platform SDK Full Download] (beware, it's HUGE!)&lt;br /&gt;
: Complete '''Platform SDK''', with all things you will ever need or not. Huge, self-extracting *.cab installer.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?familyid=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92&amp;amp;displaylang=en Platform SDK ISO Install] (beware, it's HUGE!)&lt;br /&gt;
: Same as above, but you get it as *.img (CD image) file.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
: Choose the most convinient way for yourself.&lt;br /&gt;
&lt;br /&gt;
==Okay, so let's proceed with installation:==&lt;br /&gt;
&lt;br /&gt;
Basically, it doesn't really matter what you install first. The most convinient way, however, is to have compiler suite installed before running '''Code::Blocks IDE''' for the first time. In such case, C::B will likely autodetect available compilers during its startup, and set up everything correctly. If you have some of the components already installed, just skip that part.&lt;br /&gt;
&lt;br /&gt;
===Installing Microsoft Visual C++ Toolkit 2003===&lt;br /&gt;
Simply run '''VCToolkitSetup.exe''' and installation process will start. Select a path you want to install MVCT to. This tutorial assumes you installed it to:&lt;br /&gt;
 C:\VCToolkit2003\&lt;br /&gt;
When installation is done, navigate to the MSVT directory (&amp;quot;C:\VCToolkit2003\&amp;quot;) and run vcvars32.bat. It will set up enviromental variables.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' &amp;lt;small&amp;gt;Installing VCToolkit requires .NET Framework. Most likely you already have it. If not, setup will trigger .NET Framework installation and proceed it smoothly on older Windows NT systems (NT &amp;amp; 2000), newer ones (XP and above) already have it. This one will, however, fail if you have Windows 9x/Me. In order to install VCToolkit on these machines you need to install .NET Framework manually, preventing setup from triggering malfunctioning procedure. [TODO: it would be great if someone who actually tried it describe it somewhere here]&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Installing Platform SDK===&lt;br /&gt;
In this tutorial we will follow '''Platform SDK Web Install'''. Download (links above) and run '''PSDK-x86.exe''', '''PSDK-amd64.exe''' or '''PSDK-ia64.exe''' (according your PCs architecture). Select a path you want to install Platform SDK to. We will use &lt;br /&gt;
 C:\PlatformSDK\&lt;br /&gt;
If you select '''custom installation''', you will have to select which components you want to install. I didn't dare to run '''typical installation''', because it presumably downloads &amp;amp; installs everything (= hundreds of megabytes). Selecting components may be a little tricky, most of them are  related to various Microsoft technologies, and if you are using any of them in your applications, you  should install these features here, otherwise your programs will likely fail to compile and/or link correctly. You can update your Platform SDK installation at any time.&lt;br /&gt;
&lt;br /&gt;
When installation is finished, navigate to the Platform SDK directory (&amp;quot;C:\PlatformSDK\&amp;quot;) and run '''SetEnv.Cmd'''.&lt;br /&gt;
&lt;br /&gt;
===Installing Code::Blocks IDE===&lt;br /&gt;
Simply run setup file, and select a path where you want it to be installed. &lt;br /&gt;
&lt;br /&gt;
'''Note:''' some of the plugins are '''MinGW''' specific (GDB plugin, DevPak plugin). If you are not sure whether you might need them some day (you may switch to '''MinGW''' or simply decide to use more than one compiler), better install them (they are just few kilobytes anyway) and eventually keep them disabled.&lt;br /&gt;
&lt;br /&gt;
Now you can run the '''Code::Blocks IDE''' for the first time, and set up the compiler.&lt;br /&gt;
&lt;br /&gt;
==Setting up the compiler==&lt;br /&gt;
===First run compiler auto-detection===&lt;br /&gt;
If you have already installed MVCT on your machine, Code::Blocks will autodetect it now ([http://img289.imageshack.us/img289/4028/compilerautodetecton8rb.png screen]), as well as all other supported compilers that are present. If more than one compiler is detected, you can set one of them as default one.&lt;br /&gt;
&lt;br /&gt;
After this step, you should have Visual C++ compiler almost fully integrated with Code::Blocks.&lt;br /&gt;
You only need to inform compiler about your Platform SDK installation and goodies (like resource compiler) it should find there. Now, either go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; (in your C::B IDE) and then jump quickly to [[#Setting Platform SDK]], or read further to know more details and verify your auto-detection results.&lt;br /&gt;
&lt;br /&gt;
===Setting compiler from scratch (missed or failed first run auto-detection)===&lt;br /&gt;
In case you missed first run auto-detection (MVCT was not present at the time) or somehow it failed, you have to set up your compiler manually. Whole procedure is actually common for any supported compiler, and applies to Microsoft Visual C++ Toolkit 2003 perfectly:&lt;br /&gt;
&lt;br /&gt;
'''''Golden Tip :''' &amp;quot;In order to integrate any supported compiler with Code::Blocks, all you need to do is to correctly specify location of compiler's executables, as well as compiler's (include) and linker's (lib) directories&amp;quot;.''&lt;br /&gt;
====Specifying location of compiler's executables====&lt;br /&gt;
Go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; and make sure that &amp;quot;Microsoft Visual C++ Toolkit 2003&amp;quot; is selected.&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Programs&amp;quot; tab - verify whether '''''Compiler's installation directory''''' (the same you installed VCToolkit to, ie: &amp;quot;C:\VCToolkit2003\&amp;quot; ) is set properly  - if not - press &amp;quot;Autodetect&amp;quot;. If correct path doesn't appear, simply paste the correct one there or navigate to it using dialog available under &amp;quot;...&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
Note that all specified executables (compiler, linker, resource compiler) must exist either in the &amp;quot;bin&amp;quot; subdirectory of '''''Compiler's installation path''''' (ie: &amp;quot;C:\VCToolkit2003\bin\&amp;quot;) or in any other path specified here as &amp;quot;Extra path&amp;quot;. (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
====Specifying location of compiler's and linker's directories====&lt;br /&gt;
Open &amp;quot;Directories&amp;quot; tab and verify if following entries are present:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab - entries should point to &amp;quot;include&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab - entries should point to &amp;quot;lib&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\lib&lt;br /&gt;
&lt;br /&gt;
If not, do not hestitate to add these ones.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If you ever be using any library that is not included in MVCT (like FMOD, Allegro, or any of thousands open source libraries out there), you need either to add appropriate &amp;quot;include&amp;quot; and &amp;quot;libs&amp;quot; paths here too, or copy headers and libs to already specified paths.&lt;br /&gt;
 &lt;br /&gt;
===Setting Platform SDK===&lt;br /&gt;
Setting up Platform SDK looks the same as previous step, you just have to add appropriate entries that point to Platform SDK's &amp;quot;include&amp;quot; and &amp;quot;lib&amp;quot; subdirectories respectively.&lt;br /&gt;
&lt;br /&gt;
Being in &amp;quot;Directories&amp;quot; tab just add following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Lib&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Resource compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
Do not forget to specify extra path for resource compiler executable (it's in Platform SDK's &amp;quot;bin&amp;quot; subdirectory, ie: &amp;quot;C:\PlatformSDK\Bin&amp;quot; ) - you can do this in &amp;quot;Programs&amp;quot; tab (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That's all - you can compile your applications using free Microsoft Visual C++ Toolkit 2003 with Code::Blocks as your IDE.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
===Compiling Hints===&lt;br /&gt;
&lt;br /&gt;
-H1:  If the project cannot find &amp;quot;lib.exe&amp;quot; or &amp;quot;cvtres.exe&amp;quot; then use the ones in C:\Program Files\Microsoft Platform SDK\Bin\win64.  They correctly makes lib files for 32-bit windows.  So add to the END of Programs-&amp;gt;Additional paths under &amp;quot;Compiler Settings&amp;quot;:&lt;br /&gt;
 C:\Program Files\Microsoft Platform SDK\Bin\win64&lt;br /&gt;
&lt;br /&gt;
-H2:  If the project you are compiling complains that it cannot find &amp;quot;msvcrt.lib&amp;quot; then download the .NET 1.1 SDK and add to the END of the Directories-&amp;gt;Linker tab:&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib&lt;br /&gt;
&lt;br /&gt;
Both the VC++ Toolkit 2003 and the platform SDK omit this library.&lt;br /&gt;
&lt;br /&gt;
-H3:  Note that the VC++ Toolkit itself does not come with debugging versions of the .lib library files.  For these you should also download the .NET 1.1 SDK and add the linker path as in H2 above.&lt;br /&gt;
&lt;br /&gt;
The MS naming convention for some their libraries seems to be e.g.&lt;br /&gt;
release version = libc.lib&lt;br /&gt;
debug version = libcd.lib&lt;br /&gt;
multithreaded release version = libmt.lib &lt;br /&gt;
etc. (not sure about the 'i' or 'p' variants)&lt;br /&gt;
The above link statically.&lt;br /&gt;
dynamic multithreaded release version (uses a dll) = msvcrt.lib&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=132</id>
		<title>Integrating Microsoft Visual Toolkit 2003 with Code::Blocks IDE</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=132"/>
		<updated>2005-08-09T19:59:40Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Compiling Hints */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Microsoft Visual C++ Toolkit 2003 - Overview==&lt;br /&gt;
'''Microsoft Visual C++ Toolkit 2003''' (or VCToolkit, MVCT) is freely available and free for commercial use minimalistic compiler suite released by Microsoft. It consists of high quality C/C++ optimizing compiler (VC 7.1, which is much better than old VC++ 6.0) and linker, but obviously comes  without IDE, thus making management of medium and larger projects nearly impossible. Luckily, it's where Code::Blocks IDE with its multi-compiler integration feature comes in handy! This tutorial will cover process of integrating these two incredible pieces of software - VCToolkit and Code::Blocks IDE.&lt;br /&gt;
&lt;br /&gt;
==What does VC Toolkit include, and what does it not?==&lt;br /&gt;
&lt;br /&gt;
According to '''readme.txt''' shipped with package, Microsoft Visual C++ Toolkit 2003 '''does include''':&lt;br /&gt;
 &lt;br /&gt;
* Visual C/C++ compiler and linker, same as these shipped with Visual Studio .NET 2003 Professional! &lt;br /&gt;
 &lt;br /&gt;
* C Runtime Library and the C++ Standard Library, including the Standard Template Library.  These are the same static-link libraries included with Visual Studio.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft .NET Framework Common Language Runtime.  Visual C++ can optionally build applications that run on the Common Language Runtime (CLR).  &lt;br /&gt;
 &lt;br /&gt;
* Code samples. The toolkit includes four samples designed to showcase the powerful new features of the 2003 version, including new optimization capabilities, features to improve code-security and robustness, enhanced ISO C++ standards support, and the ability to use the .NET Framework library and target the CLR. &lt;br /&gt;
&lt;br /&gt;
According the same source, MSVT '''does NOT include''':&lt;br /&gt;
 &lt;br /&gt;
* Various development tools shipped only with commercial Visual Studio IDE - like debugger, profiler, etc.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft Foundation Class (MFC) and Active Template Libraries (ATL). &lt;br /&gt;
&lt;br /&gt;
* Advanced developer tools, including compilers and tools for developing using other languages like Visual Basic and C#.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Packages needed==&lt;br /&gt;
In order to set up '''Code::Blocks IDE''' with '''Microsoft Visual C++ Toolkit 2003''' you need following packages:&lt;br /&gt;
&lt;br /&gt;
* '''Code::Blocks IDE''' itself.&lt;br /&gt;
: You can grab the latest version of '''Code::Blocks IDE''' in download section of [http://codeblocks.org/downloads.shtml Code::Blocks homepage] or at [http://sourceforge.net/project/showfiles.php?group_id=126998 project's site] at [http://sourceforge.net Source Forge]. (~3 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Microsoft Visual C++ Toolkit 2003''' compiler suite&lt;br /&gt;
: This package contains fully functional Visual C++ 7.1 compiler suite, which is '''free for commercial use'''. It contains minimalistic set of tools and C/C++ header and library files required for basic application development. You can download latest release of MVCT from [http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91B&amp;amp;displaylang=en Microsoft's website]. (~31.4 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Platform SDK'''&lt;br /&gt;
: This package provides a whole bunch of useful stuff not only for Visual C++ compiler users, but generally, any Windows developer - it includes extensive headers and libraries, as well as tools (like resource compiler, '''not included''' in basic VCToolkit package), documentation and samples.&lt;br /&gt;
&lt;br /&gt;
: There are three ways to obtain '''Platform SDK''':&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&amp;amp;DisplayLang=en Platform SDK Web Install]&lt;br /&gt;
: '''Platform SDK''' in its most compact shape - download tiny (~1.2 MB), compact installer, which will guide you through rest of the installation process (online). You will also decide yourself which components you want to install.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=eba0128f-a770-45f1-86f3-7ab010b398a3&amp;amp;DisplayLang=en Platform SDK Full Download] (beware, it's HUGE!)&lt;br /&gt;
: Complete '''Platform SDK''', with all things you will ever need or not. Huge, self-extracting *.cab installer.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?familyid=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92&amp;amp;displaylang=en Platform SDK ISO Install] (beware, it's HUGE!)&lt;br /&gt;
: Same as above, but you get it as *.img (CD image) file.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
: Choose the most convinient way for yourself.&lt;br /&gt;
&lt;br /&gt;
==Okay, so let's proceed with installation:==&lt;br /&gt;
&lt;br /&gt;
Basically, it doesn't really matter what you install first. The most convinient way, however, is to have compiler suite installed before running '''Code::Blocks IDE''' for the first time. In such case, C::B will likely autodetect available compilers during its startup, and set up everything correctly. If you have some of the components already installed, just skip that part.&lt;br /&gt;
&lt;br /&gt;
===Installing Microsoft Visual C++ Toolkit 2003===&lt;br /&gt;
Simply run '''VCToolkitSetup.exe''' and installation process will start. Select a path you want to install MVCT to. This tutorial assumes you installed it to:&lt;br /&gt;
 C:\VCToolkit2003\&lt;br /&gt;
When installation is done, navigate to the MSVT directory (&amp;quot;C:\VCToolkit2003\&amp;quot;) and run vcvars32.bat. It will set up enviromental variables.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' &amp;lt;small&amp;gt;Installing VCToolkit requires .NET Framework. Most likely you already have it. If not, setup will trigger .NET Framework installation and proceed it smoothly on older Windows NT systems (NT &amp;amp; 2000), newer ones (XP and above) already have it. This one will, however, fail if you have Windows 9x/Me. In order to install VCToolkit on these machines you need to install .NET Framework manually, preventing setup from triggering malfunctioning procedure. [TODO: it would be great if someone who actually tried it describe it somewhere here]&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Installing Platform SDK===&lt;br /&gt;
In this tutorial we will follow '''Platform SDK Web Install'''. Download (links above) and run '''PSDK-x86.exe''', '''PSDK-amd64.exe''' or '''PSDK-ia64.exe''' (according your PCs architecture). Select a path you want to install Platform SDK to. We will use &lt;br /&gt;
 C:\PlatformSDK\&lt;br /&gt;
If you select '''custom installation''', you will have to select which components you want to install. I didn't dare to run '''typical installation''', because it presumably downloads &amp;amp; installs everything (= hundreds of megabytes). Selecting components may be a little tricky, most of them are  related to various Microsoft technologies, and if you are using any of them in your applications, you  should install these features here, otherwise your programs will likely fail to compile and/or link correctly. You can update your Platform SDK installation at any time.&lt;br /&gt;
&lt;br /&gt;
When installation is finished, navigate to the Platform SDK directory (&amp;quot;C:\PlatformSDK\&amp;quot;) and run '''SetEnv.Cmd'''.&lt;br /&gt;
&lt;br /&gt;
===Installing Code::Blocks IDE===&lt;br /&gt;
Simply run setup file, and select a path where you want it to be installed. &lt;br /&gt;
&lt;br /&gt;
'''Note:''' some of the plugins are '''MinGW''' specific (GDB plugin, DevPak plugin). If you are not sure whether you might need them some day (you may switch to '''MinGW''' or simply decide to use more than one compiler), better install them (they are just few kilobytes anyway) and eventually keep them disabled.&lt;br /&gt;
&lt;br /&gt;
Now you can run the '''Code::Blocks IDE''' for the first time, and set up the compiler.&lt;br /&gt;
&lt;br /&gt;
==Setting up the compiler==&lt;br /&gt;
===First run compiler auto-detection===&lt;br /&gt;
If you have already installed MVCT on your machine, Code::Blocks will autodetect it now ([http://img289.imageshack.us/img289/4028/compilerautodetecton8rb.png screen]), as well as all other supported compilers that are present. If more than one compiler is detected, you can set one of them as default one.&lt;br /&gt;
&lt;br /&gt;
After this step, you should have Visual C++ compiler almost fully integrated with Code::Blocks.&lt;br /&gt;
You only need to inform compiler about your Platform SDK installation and goodies (like resource compiler) it should find there. Now, either go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; (in your C::B IDE) and then jump quickly to [[#Setting Platform SDK]], or read further to know more details and verify your auto-detection results.&lt;br /&gt;
&lt;br /&gt;
===Setting compiler from scratch (missed or failed first run auto-detection)===&lt;br /&gt;
In case you missed first run auto-detection (MVCT was not present at the time) or somehow it failed, you have to set up your compiler manually. Whole procedure is actually common for any supported compiler, and applies to Microsoft Visual C++ Toolkit 2003 perfectly:&lt;br /&gt;
&lt;br /&gt;
'''''Golden Tip :''' &amp;quot;In order to integrate any supported compiler with Code::Blocks, all you need to do is to correctly specify location of compiler's executables, as well as compiler's (include) and linker's (lib) directories&amp;quot;.''&lt;br /&gt;
====Specifying location of compiler's executables====&lt;br /&gt;
Go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; and make sure that &amp;quot;Microsoft Visual C++ Toolkit 2003&amp;quot; is selected.&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Programs&amp;quot; tab - verify whether '''''Compiler's installation directory''''' (the same you installed VCToolkit to, ie: &amp;quot;C:\VCToolkit2003\&amp;quot; ) is set properly  - if not - press &amp;quot;Autodetect&amp;quot;. If correct path doesn't appear, simply paste the correct one there or navigate to it using dialog available under &amp;quot;...&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
Note that all specified executables (compiler, linker, resource compiler) must exist either in the &amp;quot;bin&amp;quot; subdirectory of '''''Compiler's installation path''''' (ie: &amp;quot;C:\VCToolkit2003\bin\&amp;quot;) or in any other path specified here as &amp;quot;Extra path&amp;quot;. (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
====Specifying location of compiler's and linker's directories====&lt;br /&gt;
Open &amp;quot;Directories&amp;quot; tab and verify if following entries are present:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab - entries should point to &amp;quot;include&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab - entries should point to &amp;quot;lib&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\lib&lt;br /&gt;
&lt;br /&gt;
If not, do not hestitate to add these ones.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If you ever be using any library that is not included in MVCT (like FMOD, Allegro, or any of thousands open source libraries out there), you need either to add appropriate &amp;quot;include&amp;quot; and &amp;quot;libs&amp;quot; paths here too, or copy headers and libs to already specified paths.&lt;br /&gt;
 &lt;br /&gt;
===Setting Platform SDK===&lt;br /&gt;
Setting up Platform SDK looks the same as previous step, you just have to add appropriate entries that point to Platform SDK's &amp;quot;include&amp;quot; and &amp;quot;lib&amp;quot; subdirectories respectively.&lt;br /&gt;
&lt;br /&gt;
Being in &amp;quot;Directories&amp;quot; tab just add following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Lib&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Resource compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
Do not forget to specify extra path for resource compiler executable (it's in Platform SDK's &amp;quot;bin&amp;quot; subdirectory, ie: &amp;quot;C:\PlatformSDK\Bin&amp;quot; ) - you can do this in &amp;quot;Programs&amp;quot; tab (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That's all - you can compile your applications using free Microsoft Visual C++ Toolkit 2003 with Code::Blocks as your IDE.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
===Compiling Hints===&lt;br /&gt;
&lt;br /&gt;
-H1-  If the project cannot find &amp;quot;lib.exe&amp;quot; or &amp;quot;cvtres.exe&amp;quot; then use the ones in C:\Program Files\Microsoft Platform SDK\Bin\win64.  They correctly makes lib files for 32-bit windows.  So add to the END of Programs-&amp;gt;Additional paths under &amp;quot;Compiler Settings&amp;quot;:&lt;br /&gt;
 C:\Program Files\Microsoft Platform SDK\Bin\win64&lt;br /&gt;
&lt;br /&gt;
-H2-  If the project you are compiling complains that it cannot find &amp;quot;msvcrt.lib&amp;quot; then download the .NET 1.1 SDK and add to the END of the Directories-&amp;gt;Linker tab:&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib&lt;br /&gt;
&lt;br /&gt;
Both the VC++ Toolkit 2003 and the platform SDK omit this library.&lt;br /&gt;
&lt;br /&gt;
-H3-  Note that the VC++ Toolkit itself does not come with debugging versions of the .lib library files.  For these you should also download the .NET 1.1 SDK and add the linker path as in H2 above.&lt;br /&gt;
&lt;br /&gt;
The MS naming convention for some their libraries seems to be e.g.&lt;br /&gt;
release version = libc.lib&lt;br /&gt;
debug version = libcd.lib&lt;br /&gt;
multithreaded release version = libmt.lib &lt;br /&gt;
etc. (not sure about the 'i' or 'p' variants)&lt;br /&gt;
The above link statically.&lt;br /&gt;
dynamic multithreaded release version (uses a dll) = msvcrt.lib&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=131</id>
		<title>Integrating Microsoft Visual Toolkit 2003 with Code::Blocks IDE</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=131"/>
		<updated>2005-08-09T04:32:44Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Compiling Hints */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Microsoft Visual C++ Toolkit 2003 - Overview==&lt;br /&gt;
'''Microsoft Visual C++ Toolkit 2003''' (or VCToolkit, MVCT) is freely available and free for commercial use minimalistic compiler suite released by Microsoft. It consists of high quality C/C++ optimizing compiler (VC 7.1, which is much better than old VC++ 6.0) and linker, but obviously comes  without IDE, thus making management of medium and larger projects nearly impossible. Luckily, it's where Code::Blocks IDE with its multi-compiler integration feature comes in handy! This tutorial will cover process of integrating these two incredible pieces of software - VCToolkit and Code::Blocks IDE.&lt;br /&gt;
&lt;br /&gt;
==What does VC Toolkit include, and what does it not?==&lt;br /&gt;
&lt;br /&gt;
According to '''readme.txt''' shipped with package, Microsoft Visual C++ Toolkit 2003 '''does include''':&lt;br /&gt;
 &lt;br /&gt;
* Visual C/C++ compiler and linker, same as these shipped with Visual Studio .NET 2003 Professional! &lt;br /&gt;
 &lt;br /&gt;
* C Runtime Library and the C++ Standard Library, including the Standard Template Library.  These are the same static-link libraries included with Visual Studio.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft .NET Framework Common Language Runtime.  Visual C++ can optionally build applications that run on the Common Language Runtime (CLR).  &lt;br /&gt;
 &lt;br /&gt;
* Code samples. The toolkit includes four samples designed to showcase the powerful new features of the 2003 version, including new optimization capabilities, features to improve code-security and robustness, enhanced ISO C++ standards support, and the ability to use the .NET Framework library and target the CLR. &lt;br /&gt;
&lt;br /&gt;
According the same source, MSVT '''does NOT include''':&lt;br /&gt;
 &lt;br /&gt;
* Various development tools shipped only with commercial Visual Studio IDE - like debugger, profiler, etc.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft Foundation Class (MFC) and Active Template Libraries (ATL). &lt;br /&gt;
&lt;br /&gt;
* Advanced developer tools, including compilers and tools for developing using other languages like Visual Basic and C#.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Packages needed==&lt;br /&gt;
In order to set up '''Code::Blocks IDE''' with '''Microsoft Visual C++ Toolkit 2003''' you need following packages:&lt;br /&gt;
&lt;br /&gt;
* '''Code::Blocks IDE''' itself.&lt;br /&gt;
: You can grab the latest version of '''Code::Blocks IDE''' in download section of [http://codeblocks.org/downloads.shtml Code::Blocks homepage] or at [http://sourceforge.net/project/showfiles.php?group_id=126998 project's site] at [http://sourceforge.net Source Forge]. (~3 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Microsoft Visual C++ Toolkit 2003''' compiler suite&lt;br /&gt;
: This package contains fully functional Visual C++ 7.1 compiler suite, which is '''free for commercial use'''. It contains minimalistic set of tools and C/C++ header and library files required for basic application development. You can download latest release of MVCT from [http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91B&amp;amp;displaylang=en Microsoft's website]. (~31.4 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Platform SDK'''&lt;br /&gt;
: This package provides a whole bunch of useful stuff not only for Visual C++ compiler users, but generally, any Windows developer - it includes extensive headers and libraries, as well as tools (like resource compiler, '''not included''' in basic VCToolkit package), documentation and samples.&lt;br /&gt;
&lt;br /&gt;
: There are three ways to obtain '''Platform SDK''':&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&amp;amp;DisplayLang=en Platform SDK Web Install]&lt;br /&gt;
: '''Platform SDK''' in its most compact shape - download tiny (~1.2 MB), compact installer, which will guide you through rest of the installation process (online). You will also decide yourself which components you want to install.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=eba0128f-a770-45f1-86f3-7ab010b398a3&amp;amp;DisplayLang=en Platform SDK Full Download] (beware, it's HUGE!)&lt;br /&gt;
: Complete '''Platform SDK''', with all things you will ever need or not. Huge, self-extracting *.cab installer.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?familyid=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92&amp;amp;displaylang=en Platform SDK ISO Install] (beware, it's HUGE!)&lt;br /&gt;
: Same as above, but you get it as *.img (CD image) file.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
: Choose the most convinient way for yourself.&lt;br /&gt;
&lt;br /&gt;
==Okay, so let's proceed with installation:==&lt;br /&gt;
&lt;br /&gt;
Basically, it doesn't really matter what you install first. The most convinient way, however, is to have compiler suite installed before running '''Code::Blocks IDE''' for the first time. In such case, C::B will likely autodetect available compilers during its startup, and set up everything correctly. If you have some of the components already installed, just skip that part.&lt;br /&gt;
&lt;br /&gt;
===Installing Microsoft Visual C++ Toolkit 2003===&lt;br /&gt;
Simply run '''VCToolkitSetup.exe''' and installation process will start. Select a path you want to install MVCT to. This tutorial assumes you installed it to:&lt;br /&gt;
 C:\VCToolkit2003\&lt;br /&gt;
When installation is done, navigate to the MSVT directory (&amp;quot;C:\VCToolkit2003\&amp;quot;) and run vcvars32.bat. It will set up enviromental variables.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' &amp;lt;small&amp;gt;Installing VCToolkit requires .NET Framework. Most likely you already have it. If not, setup will trigger .NET Framework installation and proceed it smoothly on older Windows NT systems (NT &amp;amp; 2000), newer ones (XP and above) already have it. This one will, however, fail if you have Windows 9x/Me. In order to install VCToolkit on these machines you need to install .NET Framework manually, preventing setup from triggering malfunctioning procedure. [TODO: it would be great if someone who actually tried it describe it somewhere here]&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Installing Platform SDK===&lt;br /&gt;
In this tutorial we will follow '''Platform SDK Web Install'''. Download (links above) and run '''PSDK-x86.exe''', '''PSDK-amd64.exe''' or '''PSDK-ia64.exe''' (according your PCs architecture). Select a path you want to install Platform SDK to. We will use &lt;br /&gt;
 C:\PlatformSDK\&lt;br /&gt;
If you select '''custom installation''', you will have to select which components you want to install. I didn't dare to run '''typical installation''', because it presumably downloads &amp;amp; installs everything (= hundreds of megabytes). Selecting components may be a little tricky, most of them are  related to various Microsoft technologies, and if you are using any of them in your applications, you  should install these features here, otherwise your programs will likely fail to compile and/or link correctly. You can update your Platform SDK installation at any time.&lt;br /&gt;
&lt;br /&gt;
When installation is finished, navigate to the Platform SDK directory (&amp;quot;C:\PlatformSDK\&amp;quot;) and run '''SetEnv.Cmd'''.&lt;br /&gt;
&lt;br /&gt;
===Installing Code::Blocks IDE===&lt;br /&gt;
Simply run setup file, and select a path where you want it to be installed. &lt;br /&gt;
&lt;br /&gt;
'''Note:''' some of the plugins are '''MinGW''' specific (GDB plugin, DevPak plugin). If you are not sure whether you might need them some day (you may switch to '''MinGW''' or simply decide to use more than one compiler), better install them (they are just few kilobytes anyway) and eventually keep them disabled.&lt;br /&gt;
&lt;br /&gt;
Now you can run the '''Code::Blocks IDE''' for the first time, and set up the compiler.&lt;br /&gt;
&lt;br /&gt;
==Setting up the compiler==&lt;br /&gt;
===First run compiler auto-detection===&lt;br /&gt;
If you have already installed MVCT on your machine, Code::Blocks will autodetect it now ([http://img289.imageshack.us/img289/4028/compilerautodetecton8rb.png screen]), as well as all other supported compilers that are present. If more than one compiler is detected, you can set one of them as default one.&lt;br /&gt;
&lt;br /&gt;
After this step, you should have Visual C++ compiler almost fully integrated with Code::Blocks.&lt;br /&gt;
You only need to inform compiler about your Platform SDK installation and goodies (like resource compiler) it should find there. Now, either go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; (in your C::B IDE) and then jump quickly to [[#Setting Platform SDK]], or read further to know more details and verify your auto-detection results.&lt;br /&gt;
&lt;br /&gt;
===Setting compiler from scratch (missed or failed first run auto-detection)===&lt;br /&gt;
In case you missed first run auto-detection (MVCT was not present at the time) or somehow it failed, you have to set up your compiler manually. Whole procedure is actually common for any supported compiler, and applies to Microsoft Visual C++ Toolkit 2003 perfectly:&lt;br /&gt;
&lt;br /&gt;
'''''Golden Tip :''' &amp;quot;In order to integrate any supported compiler with Code::Blocks, all you need to do is to correctly specify location of compiler's executables, as well as compiler's (include) and linker's (lib) directories&amp;quot;.''&lt;br /&gt;
====Specifying location of compiler's executables====&lt;br /&gt;
Go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; and make sure that &amp;quot;Microsoft Visual C++ Toolkit 2003&amp;quot; is selected.&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Programs&amp;quot; tab - verify whether '''''Compiler's installation directory''''' (the same you installed VCToolkit to, ie: &amp;quot;C:\VCToolkit2003\&amp;quot; ) is set properly  - if not - press &amp;quot;Autodetect&amp;quot;. If correct path doesn't appear, simply paste the correct one there or navigate to it using dialog available under &amp;quot;...&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
Note that all specified executables (compiler, linker, resource compiler) must exist either in the &amp;quot;bin&amp;quot; subdirectory of '''''Compiler's installation path''''' (ie: &amp;quot;C:\VCToolkit2003\bin\&amp;quot;) or in any other path specified here as &amp;quot;Extra path&amp;quot;. (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
====Specifying location of compiler's and linker's directories====&lt;br /&gt;
Open &amp;quot;Directories&amp;quot; tab and verify if following entries are present:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab - entries should point to &amp;quot;include&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab - entries should point to &amp;quot;lib&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\lib&lt;br /&gt;
&lt;br /&gt;
If not, do not hestitate to add these ones.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If you ever be using any library that is not included in MVCT (like FMOD, Allegro, or any of thousands open source libraries out there), you need either to add appropriate &amp;quot;include&amp;quot; and &amp;quot;libs&amp;quot; paths here too, or copy headers and libs to already specified paths.&lt;br /&gt;
 &lt;br /&gt;
===Setting Platform SDK===&lt;br /&gt;
Setting up Platform SDK looks the same as previous step, you just have to add appropriate entries that point to Platform SDK's &amp;quot;include&amp;quot; and &amp;quot;lib&amp;quot; subdirectories respectively.&lt;br /&gt;
&lt;br /&gt;
Being in &amp;quot;Directories&amp;quot; tab just add following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Lib&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Resource compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
Do not forget to specify extra path for resource compiler executable (it's in Platform SDK's &amp;quot;bin&amp;quot; subdirectory, ie: &amp;quot;C:\PlatformSDK\Bin&amp;quot; ) - you can do this in &amp;quot;Programs&amp;quot; tab (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That's all - you can compile your applications using free Microsoft Visual C++ Toolkit 2003 with Code::Blocks as your IDE.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
===Compiling Hints===&lt;br /&gt;
&lt;br /&gt;
-- If the project cannot find &amp;quot;lib.exe&amp;quot; or &amp;quot;cvtres.exe&amp;quot; then use the ones in C:\Program Files\Microsoft Platform SDK\Bin\win64.  They correctly makes lib files for 32-bit windows.  So add to the END of Programs-&amp;gt;Additional paths under &amp;quot;Compiler Settings&amp;quot;:&lt;br /&gt;
 C:\Program Files\Microsoft Platform SDK\Bin\win64&lt;br /&gt;
&lt;br /&gt;
-- If the project you are compiling complains that it cannot find &amp;quot;msvcrt.lib&amp;quot; then download the .NET 1.1 SDK and add to the END of the Directories-&amp;gt;Linker tab:&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib&lt;br /&gt;
&lt;br /&gt;
Both the VC++ Toolkit 2003 and the platform SDK omit this library.&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=164</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=164"/>
		<updated>2005-08-09T04:30:31Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building wxWidgets 2.6.1 mingw32 &amp;amp; vc++ toolkit 2003 */&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 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;
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;
cd &amp;lt;WXWIN&amp;gt;\build\msw &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc 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;
cd ..\..\contrib\build\stc &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc 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;
cd &amp;lt;WXWIN&amp;gt;\lib; mkdir codeblocks_gcc; cd ..\gcc_dll; move * ..\codeblocks_gcc; move msw ..\codeblocks_gcc &amp;lt;br&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;
cd &amp;lt;WXWIN&amp;gt;\build\msw &amp;lt;br&amp;gt;&lt;br /&gt;
nmake -f makefile.vc 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;
cd ..\..\contrib\build\stc &amp;lt;br&amp;gt;&lt;br /&gt;
nmake -f makefile.vc 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;
cd &amp;lt;WXWIN&amp;gt;\lib; mkdir codeblocks_vc; cd ..\vc_dll; move * ..\codeblocks_vc; move msw ..\codeblocks_vc &amp;lt;br&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;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=130</id>
		<title>Integrating Microsoft Visual Toolkit 2003 with Code::Blocks IDE</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=130"/>
		<updated>2005-08-08T20:13:55Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Compiling Hints */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Microsoft Visual C++ Toolkit 2003 - Overview==&lt;br /&gt;
'''Microsoft Visual C++ Toolkit 2003''' (or VCToolkit, MVCT) is freely available and free for commercial use minimalistic compiler suite released by Microsoft. It consists of high quality C/C++ optimizing compiler (VC 7.1, which is much better than old VC++ 6.0) and linker, but obviously comes  without IDE, thus making management of medium and larger projects nearly impossible. Luckily, it's where Code::Blocks IDE with its multi-compiler integration feature comes in handy! This tutorial will cover process of integrating these two incredible pieces of software - VCToolkit and Code::Blocks IDE.&lt;br /&gt;
&lt;br /&gt;
==What does VC Toolkit include, and what does it not?==&lt;br /&gt;
&lt;br /&gt;
According to '''readme.txt''' shipped with package, Microsoft Visual C++ Toolkit 2003 '''does include''':&lt;br /&gt;
 &lt;br /&gt;
* Visual C/C++ compiler and linker, same as these shipped with Visual Studio .NET 2003 Professional! &lt;br /&gt;
 &lt;br /&gt;
* C Runtime Library and the C++ Standard Library, including the Standard Template Library.  These are the same static-link libraries included with Visual Studio.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft .NET Framework Common Language Runtime.  Visual C++ can optionally build applications that run on the Common Language Runtime (CLR).  &lt;br /&gt;
 &lt;br /&gt;
* Code samples. The toolkit includes four samples designed to showcase the powerful new features of the 2003 version, including new optimization capabilities, features to improve code-security and robustness, enhanced ISO C++ standards support, and the ability to use the .NET Framework library and target the CLR. &lt;br /&gt;
&lt;br /&gt;
According the same source, MSVT '''does NOT include''':&lt;br /&gt;
 &lt;br /&gt;
* Various development tools shipped only with commercial Visual Studio IDE - like debugger, profiler, etc.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft Foundation Class (MFC) and Active Template Libraries (ATL). &lt;br /&gt;
&lt;br /&gt;
* Advanced developer tools, including compilers and tools for developing using other languages like Visual Basic and C#.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Packages needed==&lt;br /&gt;
In order to set up '''Code::Blocks IDE''' with '''Microsoft Visual C++ Toolkit 2003''' you need following packages:&lt;br /&gt;
&lt;br /&gt;
* '''Code::Blocks IDE''' itself.&lt;br /&gt;
: You can grab the latest version of '''Code::Blocks IDE''' in download section of [http://codeblocks.org/downloads.shtml Code::Blocks homepage] or at [http://sourceforge.net/project/showfiles.php?group_id=126998 project's site] at [http://sourceforge.net Source Forge]. (~3 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Microsoft Visual C++ Toolkit 2003''' compiler suite&lt;br /&gt;
: This package contains fully functional Visual C++ 7.1 compiler suite, which is '''free for commercial use'''. It contains minimalistic set of tools and C/C++ header and library files required for basic application development. You can download latest release of MVCT from [http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91B&amp;amp;displaylang=en Microsoft's website]. (~31.4 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Platform SDK'''&lt;br /&gt;
: This package provides a whole bunch of useful stuff not only for Visual C++ compiler users, but generally, any Windows developer - it includes extensive headers and libraries, as well as tools (like resource compiler, '''not included''' in basic VCToolkit package), documentation and samples.&lt;br /&gt;
&lt;br /&gt;
: There are three ways to obtain '''Platform SDK''':&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&amp;amp;DisplayLang=en Platform SDK Web Install]&lt;br /&gt;
: '''Platform SDK''' in its most compact shape - download tiny (~1.2 MB), compact installer, which will guide you through rest of the installation process (online). You will also decide yourself which components you want to install.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=eba0128f-a770-45f1-86f3-7ab010b398a3&amp;amp;DisplayLang=en Platform SDK Full Download] (beware, it's HUGE!)&lt;br /&gt;
: Complete '''Platform SDK''', with all things you will ever need or not. Huge, self-extracting *.cab installer.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?familyid=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92&amp;amp;displaylang=en Platform SDK ISO Install] (beware, it's HUGE!)&lt;br /&gt;
: Same as above, but you get it as *.img (CD image) file.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
: Choose the most convinient way for yourself.&lt;br /&gt;
&lt;br /&gt;
==Okay, so let's proceed with installation:==&lt;br /&gt;
&lt;br /&gt;
Basically, it doesn't really matter what you install first. The most convinient way, however, is to have compiler suite installed before running '''Code::Blocks IDE''' for the first time. In such case, C::B will likely autodetect available compilers during its startup, and set up everything correctly. If you have some of the components already installed, just skip that part.&lt;br /&gt;
&lt;br /&gt;
===Installing Microsoft Visual C++ Toolkit 2003===&lt;br /&gt;
Simply run '''VCToolkitSetup.exe''' and installation process will start. Select a path you want to install MVCT to. This tutorial assumes you installed it to:&lt;br /&gt;
 C:\VCToolkit2003\&lt;br /&gt;
When installation is done, navigate to the MSVT directory (&amp;quot;C:\VCToolkit2003\&amp;quot;) and run vcvars32.bat. It will set up enviromental variables.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' &amp;lt;small&amp;gt;Installing VCToolkit requires .NET Framework. Most likely you already have it. If not, setup will trigger .NET Framework installation and proceed it smoothly on older Windows NT systems (NT &amp;amp; 2000), newer ones (XP and above) already have it. This one will, however, fail if you have Windows 9x/Me. In order to install VCToolkit on these machines you need to install .NET Framework manually, preventing setup from triggering malfunctioning procedure. [TODO: it would be great if someone who actually tried it describe it somewhere here]&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Installing Platform SDK===&lt;br /&gt;
In this tutorial we will follow '''Platform SDK Web Install'''. Download (links above) and run '''PSDK-x86.exe''', '''PSDK-amd64.exe''' or '''PSDK-ia64.exe''' (according your PCs architecture). Select a path you want to install Platform SDK to. We will use &lt;br /&gt;
 C:\PlatformSDK\&lt;br /&gt;
If you select '''custom installation''', you will have to select which components you want to install. I didn't dare to run '''typical installation''', because it presumably downloads &amp;amp; installs everything (= hundreds of megabytes). Selecting components may be a little tricky, most of them are  related to various Microsoft technologies, and if you are using any of them in your applications, you  should install these features here, otherwise your programs will likely fail to compile and/or link correctly. You can update your Platform SDK installation at any time.&lt;br /&gt;
&lt;br /&gt;
When installation is finished, navigate to the Platform SDK directory (&amp;quot;C:\PlatformSDK\&amp;quot;) and run '''SetEnv.Cmd'''.&lt;br /&gt;
&lt;br /&gt;
===Installing Code::Blocks IDE===&lt;br /&gt;
Simply run setup file, and select a path where you want it to be installed. &lt;br /&gt;
&lt;br /&gt;
'''Note:''' some of the plugins are '''MinGW''' specific (GDB plugin, DevPak plugin). If you are not sure whether you might need them some day (you may switch to '''MinGW''' or simply decide to use more than one compiler), better install them (they are just few kilobytes anyway) and eventually keep them disabled.&lt;br /&gt;
&lt;br /&gt;
Now you can run the '''Code::Blocks IDE''' for the first time, and set up the compiler.&lt;br /&gt;
&lt;br /&gt;
==Setting up the compiler==&lt;br /&gt;
===First run compiler auto-detection===&lt;br /&gt;
If you have already installed MVCT on your machine, Code::Blocks will autodetect it now ([http://img289.imageshack.us/img289/4028/compilerautodetecton8rb.png screen]), as well as all other supported compilers that are present. If more than one compiler is detected, you can set one of them as default one.&lt;br /&gt;
&lt;br /&gt;
After this step, you should have Visual C++ compiler almost fully integrated with Code::Blocks.&lt;br /&gt;
You only need to inform compiler about your Platform SDK installation and goodies (like resource compiler) it should find there. Now, either go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; (in your C::B IDE) and then jump quickly to [[#Setting Platform SDK]], or read further to know more details and verify your auto-detection results.&lt;br /&gt;
&lt;br /&gt;
===Setting compiler from scratch (missed or failed first run auto-detection)===&lt;br /&gt;
In case you missed first run auto-detection (MVCT was not present at the time) or somehow it failed, you have to set up your compiler manually. Whole procedure is actually common for any supported compiler, and applies to Microsoft Visual C++ Toolkit 2003 perfectly:&lt;br /&gt;
&lt;br /&gt;
'''''Golden Tip :''' &amp;quot;In order to integrate any supported compiler with Code::Blocks, all you need to do is to correctly specify location of compiler's executables, as well as compiler's (include) and linker's (lib) directories&amp;quot;.''&lt;br /&gt;
====Specifying location of compiler's executables====&lt;br /&gt;
Go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; and make sure that &amp;quot;Microsoft Visual C++ Toolkit 2003&amp;quot; is selected.&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Programs&amp;quot; tab - verify whether '''''Compiler's installation directory''''' (the same you installed VCToolkit to, ie: &amp;quot;C:\VCToolkit2003\&amp;quot; ) is set properly  - if not - press &amp;quot;Autodetect&amp;quot;. If correct path doesn't appear, simply paste the correct one there or navigate to it using dialog available under &amp;quot;...&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
Note that all specified executables (compiler, linker, resource compiler) must exist either in the &amp;quot;bin&amp;quot; subdirectory of '''''Compiler's installation path''''' (ie: &amp;quot;C:\VCToolkit2003\bin\&amp;quot;) or in any other path specified here as &amp;quot;Extra path&amp;quot;. (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
====Specifying location of compiler's and linker's directories====&lt;br /&gt;
Open &amp;quot;Directories&amp;quot; tab and verify if following entries are present:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab - entries should point to &amp;quot;include&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab - entries should point to &amp;quot;lib&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\lib&lt;br /&gt;
&lt;br /&gt;
If not, do not hestitate to add these ones.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If you ever be using any library that is not included in MVCT (like FMOD, Allegro, or any of thousands open source libraries out there), you need either to add appropriate &amp;quot;include&amp;quot; and &amp;quot;libs&amp;quot; paths here too, or copy headers and libs to already specified paths.&lt;br /&gt;
 &lt;br /&gt;
===Setting Platform SDK===&lt;br /&gt;
Setting up Platform SDK looks the same as previous step, you just have to add appropriate entries that point to Platform SDK's &amp;quot;include&amp;quot; and &amp;quot;lib&amp;quot; subdirectories respectively.&lt;br /&gt;
&lt;br /&gt;
Being in &amp;quot;Directories&amp;quot; tab just add following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Lib&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Resource compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
Do not forget to specify extra path for resource compiler executable (it's in Platform SDK's &amp;quot;bin&amp;quot; subdirectory, ie: &amp;quot;C:\PlatformSDK\Bin&amp;quot; ) - you can do this in &amp;quot;Programs&amp;quot; tab (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That's all - you can compile your applications using free Microsoft Visual C++ Toolkit 2003 with Code::Blocks as your IDE.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
===Compiling Hints===&lt;br /&gt;
&lt;br /&gt;
-- If the project cannot find &amp;quot;lib.exe&amp;quot; then use the one in C:\Program Files\Microsoft Platform SDK\Bin\win64.  It correctly makes lib files for 32-bit windows.  So add to the END of Programs-&amp;gt;Additional paths under &amp;quot;Compiler Settings&amp;quot;:&lt;br /&gt;
 C:\Program Files\Microsoft Platform SDK\Bin\win64&lt;br /&gt;
&lt;br /&gt;
-- If the project you are compiling complains that it cannot find &amp;quot;msvcrt.lib&amp;quot; then download the .NET 1.1 SDK and add to the END of the Directories-&amp;gt;Linker tab:&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib&lt;br /&gt;
&lt;br /&gt;
Both the VC++ Toolkit 2003 and the platform SDK omit this library.&lt;br /&gt;
&lt;br /&gt;
-- If the project you are compiling has a resource (.rc) file then you will need cvtres.exe when using the VC++ Toolkit 2003.  Goto support.microsoft.com, and search the KB for &amp;quot;cvtres1.exe&amp;quot;.  Should come up with &amp;quot;FIX: Visual Studio 97 SP3 Installs Incorrect Cvtres.exe&amp;quot; (187280).  Download cvtres1.exe, rename to cvtres.exe and place this in a directory in the path, e.g. C:\PlatformSDK\Bin.&lt;br /&gt;
&lt;br /&gt;
Both the VC++ Toolkit 2003 and the platform SDK omit this utility.&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=128</id>
		<title>Integrating Microsoft Visual Toolkit 2003 with Code::Blocks IDE</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=128"/>
		<updated>2005-08-08T20:11:09Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Compiling Hints */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Microsoft Visual C++ Toolkit 2003 - Overview==&lt;br /&gt;
'''Microsoft Visual C++ Toolkit 2003''' (or VCToolkit, MVCT) is freely available and free for commercial use minimalistic compiler suite released by Microsoft. It consists of high quality C/C++ optimizing compiler (VC 7.1, which is much better than old VC++ 6.0) and linker, but obviously comes  without IDE, thus making management of medium and larger projects nearly impossible. Luckily, it's where Code::Blocks IDE with its multi-compiler integration feature comes in handy! This tutorial will cover process of integrating these two incredible pieces of software - VCToolkit and Code::Blocks IDE.&lt;br /&gt;
&lt;br /&gt;
==What does VC Toolkit include, and what does it not?==&lt;br /&gt;
&lt;br /&gt;
According to '''readme.txt''' shipped with package, Microsoft Visual C++ Toolkit 2003 '''does include''':&lt;br /&gt;
 &lt;br /&gt;
* Visual C/C++ compiler and linker, same as these shipped with Visual Studio .NET 2003 Professional! &lt;br /&gt;
 &lt;br /&gt;
* C Runtime Library and the C++ Standard Library, including the Standard Template Library.  These are the same static-link libraries included with Visual Studio.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft .NET Framework Common Language Runtime.  Visual C++ can optionally build applications that run on the Common Language Runtime (CLR).  &lt;br /&gt;
 &lt;br /&gt;
* Code samples. The toolkit includes four samples designed to showcase the powerful new features of the 2003 version, including new optimization capabilities, features to improve code-security and robustness, enhanced ISO C++ standards support, and the ability to use the .NET Framework library and target the CLR. &lt;br /&gt;
&lt;br /&gt;
According the same source, MSVT '''does NOT include''':&lt;br /&gt;
 &lt;br /&gt;
* Various development tools shipped only with commercial Visual Studio IDE - like debugger, profiler, etc.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft Foundation Class (MFC) and Active Template Libraries (ATL). &lt;br /&gt;
&lt;br /&gt;
* Advanced developer tools, including compilers and tools for developing using other languages like Visual Basic and C#.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Packages needed==&lt;br /&gt;
In order to set up '''Code::Blocks IDE''' with '''Microsoft Visual C++ Toolkit 2003''' you need following packages:&lt;br /&gt;
&lt;br /&gt;
* '''Code::Blocks IDE''' itself.&lt;br /&gt;
: You can grab the latest version of '''Code::Blocks IDE''' in download section of [http://codeblocks.org/downloads.shtml Code::Blocks homepage] or at [http://sourceforge.net/project/showfiles.php?group_id=126998 project's site] at [http://sourceforge.net Source Forge]. (~3 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Microsoft Visual C++ Toolkit 2003''' compiler suite&lt;br /&gt;
: This package contains fully functional Visual C++ 7.1 compiler suite, which is '''free for commercial use'''. It contains minimalistic set of tools and C/C++ header and library files required for basic application development. You can download latest release of MVCT from [http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91B&amp;amp;displaylang=en Microsoft's website]. (~31.4 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Platform SDK'''&lt;br /&gt;
: This package provides a whole bunch of useful stuff not only for Visual C++ compiler users, but generally, any Windows developer - it includes extensive headers and libraries, as well as tools (like resource compiler, '''not included''' in basic VCToolkit package), documentation and samples.&lt;br /&gt;
&lt;br /&gt;
: There are three ways to obtain '''Platform SDK''':&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&amp;amp;DisplayLang=en Platform SDK Web Install]&lt;br /&gt;
: '''Platform SDK''' in its most compact shape - download tiny (~1.2 MB), compact installer, which will guide you through rest of the installation process (online). You will also decide yourself which components you want to install.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=eba0128f-a770-45f1-86f3-7ab010b398a3&amp;amp;DisplayLang=en Platform SDK Full Download] (beware, it's HUGE!)&lt;br /&gt;
: Complete '''Platform SDK''', with all things you will ever need or not. Huge, self-extracting *.cab installer.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?familyid=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92&amp;amp;displaylang=en Platform SDK ISO Install] (beware, it's HUGE!)&lt;br /&gt;
: Same as above, but you get it as *.img (CD image) file.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
: Choose the most convinient way for yourself.&lt;br /&gt;
&lt;br /&gt;
==Okay, so let's proceed with installation:==&lt;br /&gt;
&lt;br /&gt;
Basically, it doesn't really matter what you install first. The most convinient way, however, is to have compiler suite installed before running '''Code::Blocks IDE''' for the first time. In such case, C::B will likely autodetect available compilers during its startup, and set up everything correctly. If you have some of the components already installed, just skip that part.&lt;br /&gt;
&lt;br /&gt;
===Installing Microsoft Visual C++ Toolkit 2003===&lt;br /&gt;
Simply run '''VCToolkitSetup.exe''' and installation process will start. Select a path you want to install MVCT to. This tutorial assumes you installed it to:&lt;br /&gt;
 C:\VCToolkit2003\&lt;br /&gt;
When installation is done, navigate to the MSVT directory (&amp;quot;C:\VCToolkit2003\&amp;quot;) and run vcvars32.bat. It will set up enviromental variables.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' &amp;lt;small&amp;gt;Installing VCToolkit requires .NET Framework. Most likely you already have it. If not, setup will trigger .NET Framework installation and proceed it smoothly on older Windows NT systems (NT &amp;amp; 2000), newer ones (XP and above) already have it. This one will, however, fail if you have Windows 9x/Me. In order to install VCToolkit on these machines you need to install .NET Framework manually, preventing setup from triggering malfunctioning procedure. [TODO: it would be great if someone who actually tried it describe it somewhere here]&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Installing Platform SDK===&lt;br /&gt;
In this tutorial we will follow '''Platform SDK Web Install'''. Download (links above) and run '''PSDK-x86.exe''', '''PSDK-amd64.exe''' or '''PSDK-ia64.exe''' (according your PCs architecture). Select a path you want to install Platform SDK to. We will use &lt;br /&gt;
 C:\PlatformSDK\&lt;br /&gt;
If you select '''custom installation''', you will have to select which components you want to install. I didn't dare to run '''typical installation''', because it presumably downloads &amp;amp; installs everything (= hundreds of megabytes). Selecting components may be a little tricky, most of them are  related to various Microsoft technologies, and if you are using any of them in your applications, you  should install these features here, otherwise your programs will likely fail to compile and/or link correctly. You can update your Platform SDK installation at any time.&lt;br /&gt;
&lt;br /&gt;
When installation is finished, navigate to the Platform SDK directory (&amp;quot;C:\PlatformSDK\&amp;quot;) and run '''SetEnv.Cmd'''.&lt;br /&gt;
&lt;br /&gt;
===Installing Code::Blocks IDE===&lt;br /&gt;
Simply run setup file, and select a path where you want it to be installed. &lt;br /&gt;
&lt;br /&gt;
'''Note:''' some of the plugins are '''MinGW''' specific (GDB plugin, DevPak plugin). If you are not sure whether you might need them some day (you may switch to '''MinGW''' or simply decide to use more than one compiler), better install them (they are just few kilobytes anyway) and eventually keep them disabled.&lt;br /&gt;
&lt;br /&gt;
Now you can run the '''Code::Blocks IDE''' for the first time, and set up the compiler.&lt;br /&gt;
&lt;br /&gt;
==Setting up the compiler==&lt;br /&gt;
===First run compiler auto-detection===&lt;br /&gt;
If you have already installed MVCT on your machine, Code::Blocks will autodetect it now ([http://img289.imageshack.us/img289/4028/compilerautodetecton8rb.png screen]), as well as all other supported compilers that are present. If more than one compiler is detected, you can set one of them as default one.&lt;br /&gt;
&lt;br /&gt;
After this step, you should have Visual C++ compiler almost fully integrated with Code::Blocks.&lt;br /&gt;
You only need to inform compiler about your Platform SDK installation and goodies (like resource compiler) it should find there. Now, either go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; (in your C::B IDE) and then jump quickly to [[#Setting Platform SDK]], or read further to know more details and verify your auto-detection results.&lt;br /&gt;
&lt;br /&gt;
===Setting compiler from scratch (missed or failed first run auto-detection)===&lt;br /&gt;
In case you missed first run auto-detection (MVCT was not present at the time) or somehow it failed, you have to set up your compiler manually. Whole procedure is actually common for any supported compiler, and applies to Microsoft Visual C++ Toolkit 2003 perfectly:&lt;br /&gt;
&lt;br /&gt;
'''''Golden Tip :''' &amp;quot;In order to integrate any supported compiler with Code::Blocks, all you need to do is to correctly specify location of compiler's executables, as well as compiler's (include) and linker's (lib) directories&amp;quot;.''&lt;br /&gt;
====Specifying location of compiler's executables====&lt;br /&gt;
Go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; and make sure that &amp;quot;Microsoft Visual C++ Toolkit 2003&amp;quot; is selected.&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Programs&amp;quot; tab - verify whether '''''Compiler's installation directory''''' (the same you installed VCToolkit to, ie: &amp;quot;C:\VCToolkit2003\&amp;quot; ) is set properly  - if not - press &amp;quot;Autodetect&amp;quot;. If correct path doesn't appear, simply paste the correct one there or navigate to it using dialog available under &amp;quot;...&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
Note that all specified executables (compiler, linker, resource compiler) must exist either in the &amp;quot;bin&amp;quot; subdirectory of '''''Compiler's installation path''''' (ie: &amp;quot;C:\VCToolkit2003\bin\&amp;quot;) or in any other path specified here as &amp;quot;Extra path&amp;quot;. (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
====Specifying location of compiler's and linker's directories====&lt;br /&gt;
Open &amp;quot;Directories&amp;quot; tab and verify if following entries are present:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab - entries should point to &amp;quot;include&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab - entries should point to &amp;quot;lib&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\lib&lt;br /&gt;
&lt;br /&gt;
If not, do not hestitate to add these ones.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If you ever be using any library that is not included in MVCT (like FMOD, Allegro, or any of thousands open source libraries out there), you need either to add appropriate &amp;quot;include&amp;quot; and &amp;quot;libs&amp;quot; paths here too, or copy headers and libs to already specified paths.&lt;br /&gt;
 &lt;br /&gt;
===Setting Platform SDK===&lt;br /&gt;
Setting up Platform SDK looks the same as previous step, you just have to add appropriate entries that point to Platform SDK's &amp;quot;include&amp;quot; and &amp;quot;lib&amp;quot; subdirectories respectively.&lt;br /&gt;
&lt;br /&gt;
Being in &amp;quot;Directories&amp;quot; tab just add following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Lib&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Resource compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
Do not forget to specify extra path for resource compiler executable (it's in Platform SDK's &amp;quot;bin&amp;quot; subdirectory, ie: &amp;quot;C:\PlatformSDK\Bin&amp;quot; ) - you can do this in &amp;quot;Programs&amp;quot; tab (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That's all - you can compile your applications using free Microsoft Visual C++ Toolkit 2003 with Code::Blocks as your IDE.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
===Compiling Hints===&lt;br /&gt;
&lt;br /&gt;
If the project cannot find &amp;quot;lib.exe&amp;quot; then use the one in C:\Program Files\Microsoft Platform SDK\Bin\win64.  It correctly makes lib files for 32-bit windows.  So add to the END of Programs-&amp;gt;Additional paths under &amp;quot;Compiler Settings&amp;quot;:&lt;br /&gt;
 C:\Program Files\Microsoft Platform SDK\Bin\win64&lt;br /&gt;
&lt;br /&gt;
If the project you are compiling complains that it cannot find &amp;quot;msvcrt.lib&amp;quot; then download the .NET 1.1 SDK and add to the END of the Directories-&amp;gt;Linker tab:&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib&lt;br /&gt;
&lt;br /&gt;
Both the VC++ Toolkit 2003 and the platform SDK omit this library.&lt;br /&gt;
&lt;br /&gt;
If the project you are compiling has a resource (.rc) file then you will need cvtres.exe when using the VC++ Toolkit 2003.  Goto support.microsoft.com, and search the KB for &amp;quot;cvtres1.exe&amp;quot;.  Should come up with &amp;quot;FIX: Visual Studio 97 SP3 Installs Incorrect Cvtres.exe&amp;quot; (187280).  Download cvtres1.exe, rename to cvtres.exe and place this in a directory in the path, e.g. C:\PlatformSDK\Bin.&lt;br /&gt;
&lt;br /&gt;
Both the VC++ Toolkit 2003 and the platform SDK omit this utility.&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=127</id>
		<title>Integrating Microsoft Visual Toolkit 2003 with Code::Blocks IDE</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE&amp;diff=127"/>
		<updated>2005-08-08T20:07:56Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Setting Platform SDK */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Microsoft Visual C++ Toolkit 2003 - Overview==&lt;br /&gt;
'''Microsoft Visual C++ Toolkit 2003''' (or VCToolkit, MVCT) is freely available and free for commercial use minimalistic compiler suite released by Microsoft. It consists of high quality C/C++ optimizing compiler (VC 7.1, which is much better than old VC++ 6.0) and linker, but obviously comes  without IDE, thus making management of medium and larger projects nearly impossible. Luckily, it's where Code::Blocks IDE with its multi-compiler integration feature comes in handy! This tutorial will cover process of integrating these two incredible pieces of software - VCToolkit and Code::Blocks IDE.&lt;br /&gt;
&lt;br /&gt;
==What does VC Toolkit include, and what does it not?==&lt;br /&gt;
&lt;br /&gt;
According to '''readme.txt''' shipped with package, Microsoft Visual C++ Toolkit 2003 '''does include''':&lt;br /&gt;
 &lt;br /&gt;
* Visual C/C++ compiler and linker, same as these shipped with Visual Studio .NET 2003 Professional! &lt;br /&gt;
 &lt;br /&gt;
* C Runtime Library and the C++ Standard Library, including the Standard Template Library.  These are the same static-link libraries included with Visual Studio.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft .NET Framework Common Language Runtime.  Visual C++ can optionally build applications that run on the Common Language Runtime (CLR).  &lt;br /&gt;
 &lt;br /&gt;
* Code samples. The toolkit includes four samples designed to showcase the powerful new features of the 2003 version, including new optimization capabilities, features to improve code-security and robustness, enhanced ISO C++ standards support, and the ability to use the .NET Framework library and target the CLR. &lt;br /&gt;
&lt;br /&gt;
According the same source, MSVT '''does NOT include''':&lt;br /&gt;
 &lt;br /&gt;
* Various development tools shipped only with commercial Visual Studio IDE - like debugger, profiler, etc.&lt;br /&gt;
 &lt;br /&gt;
* Microsoft Foundation Class (MFC) and Active Template Libraries (ATL). &lt;br /&gt;
&lt;br /&gt;
* Advanced developer tools, including compilers and tools for developing using other languages like Visual Basic and C#.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Packages needed==&lt;br /&gt;
In order to set up '''Code::Blocks IDE''' with '''Microsoft Visual C++ Toolkit 2003''' you need following packages:&lt;br /&gt;
&lt;br /&gt;
* '''Code::Blocks IDE''' itself.&lt;br /&gt;
: You can grab the latest version of '''Code::Blocks IDE''' in download section of [http://codeblocks.org/downloads.shtml Code::Blocks homepage] or at [http://sourceforge.net/project/showfiles.php?group_id=126998 project's site] at [http://sourceforge.net Source Forge]. (~3 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Microsoft Visual C++ Toolkit 2003''' compiler suite&lt;br /&gt;
: This package contains fully functional Visual C++ 7.1 compiler suite, which is '''free for commercial use'''. It contains minimalistic set of tools and C/C++ header and library files required for basic application development. You can download latest release of MVCT from [http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91B&amp;amp;displaylang=en Microsoft's website]. (~31.4 MB)&lt;br /&gt;
&lt;br /&gt;
* '''Platform SDK'''&lt;br /&gt;
: This package provides a whole bunch of useful stuff not only for Visual C++ compiler users, but generally, any Windows developer - it includes extensive headers and libraries, as well as tools (like resource compiler, '''not included''' in basic VCToolkit package), documentation and samples.&lt;br /&gt;
&lt;br /&gt;
: There are three ways to obtain '''Platform SDK''':&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&amp;amp;DisplayLang=en Platform SDK Web Install]&lt;br /&gt;
: '''Platform SDK''' in its most compact shape - download tiny (~1.2 MB), compact installer, which will guide you through rest of the installation process (online). You will also decide yourself which components you want to install.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=eba0128f-a770-45f1-86f3-7ab010b398a3&amp;amp;DisplayLang=en Platform SDK Full Download] (beware, it's HUGE!)&lt;br /&gt;
: Complete '''Platform SDK''', with all things you will ever need or not. Huge, self-extracting *.cab installer.&lt;br /&gt;
&lt;br /&gt;
* [http://www.microsoft.com/downloads/details.aspx?familyid=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92&amp;amp;displaylang=en Platform SDK ISO Install] (beware, it's HUGE!)&lt;br /&gt;
: Same as above, but you get it as *.img (CD image) file.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
: Choose the most convinient way for yourself.&lt;br /&gt;
&lt;br /&gt;
==Okay, so let's proceed with installation:==&lt;br /&gt;
&lt;br /&gt;
Basically, it doesn't really matter what you install first. The most convinient way, however, is to have compiler suite installed before running '''Code::Blocks IDE''' for the first time. In such case, C::B will likely autodetect available compilers during its startup, and set up everything correctly. If you have some of the components already installed, just skip that part.&lt;br /&gt;
&lt;br /&gt;
===Installing Microsoft Visual C++ Toolkit 2003===&lt;br /&gt;
Simply run '''VCToolkitSetup.exe''' and installation process will start. Select a path you want to install MVCT to. This tutorial assumes you installed it to:&lt;br /&gt;
 C:\VCToolkit2003\&lt;br /&gt;
When installation is done, navigate to the MSVT directory (&amp;quot;C:\VCToolkit2003\&amp;quot;) and run vcvars32.bat. It will set up enviromental variables.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' &amp;lt;small&amp;gt;Installing VCToolkit requires .NET Framework. Most likely you already have it. If not, setup will trigger .NET Framework installation and proceed it smoothly on older Windows NT systems (NT &amp;amp; 2000), newer ones (XP and above) already have it. This one will, however, fail if you have Windows 9x/Me. In order to install VCToolkit on these machines you need to install .NET Framework manually, preventing setup from triggering malfunctioning procedure. [TODO: it would be great if someone who actually tried it describe it somewhere here]&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Installing Platform SDK===&lt;br /&gt;
In this tutorial we will follow '''Platform SDK Web Install'''. Download (links above) and run '''PSDK-x86.exe''', '''PSDK-amd64.exe''' or '''PSDK-ia64.exe''' (according your PCs architecture). Select a path you want to install Platform SDK to. We will use &lt;br /&gt;
 C:\PlatformSDK\&lt;br /&gt;
If you select '''custom installation''', you will have to select which components you want to install. I didn't dare to run '''typical installation''', because it presumably downloads &amp;amp; installs everything (= hundreds of megabytes). Selecting components may be a little tricky, most of them are  related to various Microsoft technologies, and if you are using any of them in your applications, you  should install these features here, otherwise your programs will likely fail to compile and/or link correctly. You can update your Platform SDK installation at any time.&lt;br /&gt;
&lt;br /&gt;
When installation is finished, navigate to the Platform SDK directory (&amp;quot;C:\PlatformSDK\&amp;quot;) and run '''SetEnv.Cmd'''.&lt;br /&gt;
&lt;br /&gt;
===Installing Code::Blocks IDE===&lt;br /&gt;
Simply run setup file, and select a path where you want it to be installed. &lt;br /&gt;
&lt;br /&gt;
'''Note:''' some of the plugins are '''MinGW''' specific (GDB plugin, DevPak plugin). If you are not sure whether you might need them some day (you may switch to '''MinGW''' or simply decide to use more than one compiler), better install them (they are just few kilobytes anyway) and eventually keep them disabled.&lt;br /&gt;
&lt;br /&gt;
Now you can run the '''Code::Blocks IDE''' for the first time, and set up the compiler.&lt;br /&gt;
&lt;br /&gt;
==Setting up the compiler==&lt;br /&gt;
===First run compiler auto-detection===&lt;br /&gt;
If you have already installed MVCT on your machine, Code::Blocks will autodetect it now ([http://img289.imageshack.us/img289/4028/compilerautodetecton8rb.png screen]), as well as all other supported compilers that are present. If more than one compiler is detected, you can set one of them as default one.&lt;br /&gt;
&lt;br /&gt;
After this step, you should have Visual C++ compiler almost fully integrated with Code::Blocks.&lt;br /&gt;
You only need to inform compiler about your Platform SDK installation and goodies (like resource compiler) it should find there. Now, either go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; (in your C::B IDE) and then jump quickly to [[#Setting Platform SDK]], or read further to know more details and verify your auto-detection results.&lt;br /&gt;
&lt;br /&gt;
===Setting compiler from scratch (missed or failed first run auto-detection)===&lt;br /&gt;
In case you missed first run auto-detection (MVCT was not present at the time) or somehow it failed, you have to set up your compiler manually. Whole procedure is actually common for any supported compiler, and applies to Microsoft Visual C++ Toolkit 2003 perfectly:&lt;br /&gt;
&lt;br /&gt;
'''''Golden Tip :''' &amp;quot;In order to integrate any supported compiler with Code::Blocks, all you need to do is to correctly specify location of compiler's executables, as well as compiler's (include) and linker's (lib) directories&amp;quot;.''&lt;br /&gt;
====Specifying location of compiler's executables====&lt;br /&gt;
Go to &amp;quot;Settings-&amp;gt;Compiler&amp;quot; and make sure that &amp;quot;Microsoft Visual C++ Toolkit 2003&amp;quot; is selected.&lt;br /&gt;
&lt;br /&gt;
Open &amp;quot;Programs&amp;quot; tab - verify whether '''''Compiler's installation directory''''' (the same you installed VCToolkit to, ie: &amp;quot;C:\VCToolkit2003\&amp;quot; ) is set properly  - if not - press &amp;quot;Autodetect&amp;quot;. If correct path doesn't appear, simply paste the correct one there or navigate to it using dialog available under &amp;quot;...&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
Note that all specified executables (compiler, linker, resource compiler) must exist either in the &amp;quot;bin&amp;quot; subdirectory of '''''Compiler's installation path''''' (ie: &amp;quot;C:\VCToolkit2003\bin\&amp;quot;) or in any other path specified here as &amp;quot;Extra path&amp;quot;. (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
====Specifying location of compiler's and linker's directories====&lt;br /&gt;
Open &amp;quot;Directories&amp;quot; tab and verify if following entries are present:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab - entries should point to &amp;quot;include&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab - entries should point to &amp;quot;lib&amp;quot; directories:&lt;br /&gt;
 C:\VCToolkit2003\lib&lt;br /&gt;
&lt;br /&gt;
If not, do not hestitate to add these ones.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If you ever be using any library that is not included in MVCT (like FMOD, Allegro, or any of thousands open source libraries out there), you need either to add appropriate &amp;quot;include&amp;quot; and &amp;quot;libs&amp;quot; paths here too, or copy headers and libs to already specified paths.&lt;br /&gt;
 &lt;br /&gt;
===Setting Platform SDK===&lt;br /&gt;
Setting up Platform SDK looks the same as previous step, you just have to add appropriate entries that point to Platform SDK's &amp;quot;include&amp;quot; and &amp;quot;lib&amp;quot; subdirectories respectively.&lt;br /&gt;
&lt;br /&gt;
Being in &amp;quot;Directories&amp;quot; tab just add following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Linker&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Lib&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Resource compiler&amp;quot; tab:&lt;br /&gt;
 C:\PlatformSDK\Include&lt;br /&gt;
&lt;br /&gt;
Do not forget to specify extra path for resource compiler executable (it's in Platform SDK's &amp;quot;bin&amp;quot; subdirectory, ie: &amp;quot;C:\PlatformSDK\Bin&amp;quot; ) - you can do this in &amp;quot;Programs&amp;quot; tab (see [http://img289.imageshack.us/img289/772/settingexepaths7yx.png screen])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That's all - you can compile your applications using free Microsoft Visual C++ Toolkit 2003 with Code::Blocks as your IDE.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
===Compiling Hints===&lt;br /&gt;
&lt;br /&gt;
If the project cannot find lib.exe then use the one in C:\Program Files\Microsoft Platform SDK\Bin\win64.  It correctly makes lib files for 32-bit windows.  So add to the END of &lt;br /&gt;
&lt;br /&gt;
If the project you are compiling complains that it cannot find &amp;quot;msvcrt.lib&amp;quot; then download the .NET 1.1 SDK and add to the END of the Directories-&amp;gt;Linker tab:&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib&lt;br /&gt;
&lt;br /&gt;
Both the VC++ Toolkit 2003 and the platform SDK omit this library.&lt;br /&gt;
&lt;br /&gt;
If the project you are compiling has a resource (.rc) file then you will need cvtres.exe when using the VC++ Toolkit 2003.  Goto support.microsoft.com, and search the KB for &amp;quot;cvtres1.exe&amp;quot;.  Should come up with &amp;quot;FIX: Visual Studio 97 SP3 Installs Incorrect Cvtres.exe&amp;quot; (187280).  Download cvtres1.exe, rename to cvtres.exe and place this in a directory in the path, e.g. C:\PlatformSDK\Bin.&lt;br /&gt;
&lt;br /&gt;
Both the VC++ Toolkit 2003 and the platform SDK omit this utility.&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=129</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=129"/>
		<updated>2005-08-08T04:52:31Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building wxWidgets 2.6.1 mingw32 &amp;amp; vc++ toolkit 2003 */&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 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;
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;
cd &amp;lt;WXWIN&amp;gt;\build\msw &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc 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;
cd ..\..\contrib\build\stc &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc 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;
cd &amp;lt;WXWIN&amp;gt;\lib; mkdir codeblocks_gcc; cd ..\gcc_dll; move * ..\codeblocks_gcc; move msw ..\codeblocks_gcc &amp;lt;br&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;
cd &amp;lt;WXWIN&amp;gt;\build\msw &amp;lt;br&amp;gt;&lt;br /&gt;
nmake -f makefile.vc 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;
cd ..\..\contrib\build\stc &amp;lt;br&amp;gt;&lt;br /&gt;
nmake -f makefile.vc 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;
cd &amp;lt;WXWIN&amp;gt;\lib; mkdir codeblocks_vc; cd ..\vc_dll; move * ..\codeblocks_vc; move msw ..\codeblocks_vc &amp;lt;br&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;
--------------- &amp;lt;br&amp;gt;&lt;br /&gt;
Btw, if you need cvtres.exe to compile .rc resource files, grab it here: &amp;lt;br&amp;gt;&lt;br /&gt;
http://support.microsoft.com/default.aspx?scid=kb;en-us;q187280 &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=125</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=125"/>
		<updated>2005-08-08T04:49:36Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Building wxWidgets 2.6.1 mingw32 &amp;amp; vc++ toolkit 2003 */&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 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;
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;
cd &amp;lt;WXWIN&amp;gt;\build\msw &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc 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;
cd ..\..\contrib\build\stc &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc 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;
cd &amp;lt;WXWIN&amp;gt;\lib; mkdir codeblocks_gcc; cd ..\gcc_dll; move * ..\codeblocks_gcc; move msw ..\codeblocks_gcc &amp;lt;br&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;
cd &amp;lt;WXWIN&amp;gt;\build\msw &amp;lt;br&amp;gt;&lt;br /&gt;
nmake -f makefile.vc 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;
cd ..\..\contrib\build\stc &amp;lt;br&amp;gt;&lt;br /&gt;
nmake -f makefile.vc 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;
cd &amp;lt;WXWIN&amp;gt;\lib; mkdir codeblocks_vc; cd ..\vc_dll; move * ..\codeblocks_vc; move msw ..\codeblocks_vc &amp;lt;br&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;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=FAQ&amp;diff=138</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=FAQ&amp;diff=138"/>
		<updated>2005-08-08T03:39:59Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* 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;/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 and DigitalMars Free Compiler.&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 definitions&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;
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;
== 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;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=124</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=124"/>
		<updated>2005-08-07T06:22:50Z</updated>

		<summary type="html">&lt;p&gt;Grv: /* Post compilation steps (before running C::B) */&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 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;
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;
cd &amp;lt;WXWIN&amp;gt;\build\msw &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc 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;
cd ..\..\contrib\build\stc &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc 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;
cd &amp;lt;WXWIN&amp;gt;\lib; mkdir codeblocks_gcc; cd ..\gcc_dll; move * ..\codeblocks_gcc; move msw ..\codeblocks_gcc &amp;lt;br&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;
cd &amp;lt;WXWIN&amp;gt;\build\msw &amp;lt;br&amp;gt;&lt;br /&gt;
nmake -f makefile.vc 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;
cd ..\..\contrib\build\stc &amp;lt;br&amp;gt;&lt;br /&gt;
nmake -f makefile.vc 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;
cd &amp;lt;WXWIN&amp;gt;\lib; mkdir codeblocks_vc; cd ..\vc_dll; move * ..\codeblocks_vc; move msw ..\codeblocks_vc &amp;lt;br&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;
		C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\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;/div&gt;</summary>
		<author><name>Grv</name></author>
	</entry>
</feed>