<?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=BLoke</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=BLoke"/>
	<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php/Special:Contributions/BLoke"/>
	<updated>2026-05-26T20:30:44Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=245</id>
		<title>Installing Code::Blocks from source on Gentoo</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=245"/>
		<updated>2005-10-09T13:58:28Z</updated>

		<summary type="html">&lt;p&gt;BLoke: /* Prepare Libraries */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''WORK IN PROGRESS'''&lt;br /&gt;
&lt;br /&gt;
( Note: This is non-official and unverified.  It worked for me, but... )&lt;br /&gt;
&lt;br /&gt;
===Prepare Libraries===&lt;br /&gt;
&lt;br /&gt;
Code::Blocks uses the [http://www.wxwindows.org/ wxWidgets] library for its GUI.  wxWidgets in turn uses [http://www.gtk.org/ GTK+]. GTK+ is the library which GNOME desktop uses, but GNOME is not required to use it. In fact, odds are very good that if you have a number of GUI programs installed, you already have it. wxWidgets is also very common, if slightly less so.  The trick with wxWidgets and Code::Blocks is that Code::Blocks can only use the gtk2, non-unicode version of wxWidgets&lt;br /&gt;
&lt;br /&gt;
This means that you need to compile the wxGTK package with the following use flags settings:&lt;br /&gt;
 +no_wxgtk1 +gtk2 -unicode&lt;br /&gt;
The best way of getting these set is by adding a line to /etc/portage/package.use and recompiling wxGTK :&lt;br /&gt;
 # echo x11-libs/wxGTK no_wxgtk1 gtk2 -unicode &amp;gt;&amp;gt; /etc/portage/package.use&lt;br /&gt;
 # emerge wxGTK&lt;br /&gt;
&lt;br /&gt;
===Get the source code===&lt;br /&gt;
&lt;br /&gt;
For this you have 2 options:&lt;br /&gt;
&lt;br /&gt;
====Option 1: Download a source tarball.====&lt;br /&gt;
&lt;br /&gt;
This is easy and means you have an easily-reproduced source set.&lt;br /&gt;
&lt;br /&gt;
1) '''Download a source tarball''' from [https://www.codeblocks.org/modules.php?op=modload&amp;amp;name=Downloads&amp;amp;file=index&amp;amp;req=viewsdownload&amp;amp;sid=3 The Download Section of CodeBlocks.org]&lt;br /&gt;
&lt;br /&gt;
2) '''Extract it'''. For this tutorial, I'm going to assume that you're installing as root, so /usr/local/src is a good pick. Any location is fine, however. This should create a CodeBlocks-1.0-beta5 ( or similar ) folder.&lt;br /&gt;
&lt;br /&gt;
====Option 2: Fetch from CVS====&lt;br /&gt;
&lt;br /&gt;
This is not signifigantly harder and means you have a more up-to-date version of the source code.  Usually this means more features and different bugs, which might be more or less annoying.&lt;br /&gt;
&lt;br /&gt;
1) '''Install the CVS client'''.  You might have it already.  If not, this just requires the usual :&lt;br /&gt;
 # emerge dev-util/cvs&lt;br /&gt;
&lt;br /&gt;
2) '''Set the CVS root'''. Run the following command, and enter the password ''anonymous'' when asked :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&lt;br /&gt;
Note that simply hitting enter--not entering a password--might also work.&lt;br /&gt;
&lt;br /&gt;
3) '''Checkout a copy'''. cd to the directory you want the code to be placed in.  Note that CVS will create a codeblocks directory for you. For this tutorial, I'm going to assume that you're installing as root, so /usr/local/src is a good pick. Any location is fine, however.&lt;br /&gt;
 # cd /usr/local/src&lt;br /&gt;
The following command fetches the source from the CVS server :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks checkout codeblocks&lt;br /&gt;
&lt;br /&gt;
===Compile the Code===&lt;br /&gt;
&lt;br /&gt;
1) '''cd to the directory with the Makefile'''.  Following our example, from CVS this would be /usr/local/src/codeblocks/src; from a tarball, something like /usr/local/src/CodeBlocks-1.0-beta5 :&lt;br /&gt;
 # cd /usr/local/src/codeblocks/src&lt;br /&gt;
 or&lt;br /&gt;
 # cd /usr/local/src/CodeBlocks-1.0-beta5&lt;br /&gt;
If neither of those works, you can always use find to look for it :&lt;br /&gt;
 # find &amp;lt;parent directory you extracted to&amp;gt; -name Makefile.unix&lt;br /&gt;
&lt;br /&gt;
2) '''Build the sources'''.  There's no configuration nessesary, just let make go to work :&lt;br /&gt;
 # make -f Makefile.unix&lt;br /&gt;
 # make -f Makefile.unix update&lt;br /&gt;
The first line does the actual compiling.  The second moves the nessesary things to the output directory, zips some resources, and performs other miscellaneous nessesary tasks.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' 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;
 # emerge -av dos2unix&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;
===More===&lt;br /&gt;
&lt;br /&gt;
to come&lt;br /&gt;
&lt;br /&gt;
For now ( assuming bash shell ):&lt;br /&gt;
 $ cd /usr/local/src/codeblocks/src/output&lt;br /&gt;
 $ LD_LIBRARY_PATH=&amp;quot;.&amp;quot; ./codeblocks.exe&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
[https://www.codeblocks.org/index.php?name=PNphpBB2&amp;amp;file=viewtopic&amp;amp;t=29 Linux releases or compiling on Linux] from the forum&lt;br /&gt;
&lt;br /&gt;
[http://sourceforge.net/cvs/?group_id=126998 Code::Blocks : CVS access instructions]&lt;br /&gt;
&lt;br /&gt;
[http://sourceforge.net/docman/display_doc.php?docid=14033&amp;amp;group_id=1 Basic Introduction to CVS and SourceForge.net (SF.net) Project CVS Services]&lt;br /&gt;
&lt;br /&gt;
===Credits===&lt;br /&gt;
&lt;br /&gt;
Original Author: me22 ( me22.ca@gmail.com )&lt;/div&gt;</summary>
		<author><name>BLoke</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=241</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=241"/>
		<updated>2005-10-09T13:55:29Z</updated>

		<summary type="html">&lt;p&gt;BLoke: /* 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 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:''' 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;
Now we are on the right place we are first going to clean up the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean &amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' make sure you use the same options to clean that you use for the build step below.  the clean target uses these environment variables and only cleans that version of the generated object and library files (so it will actually not clean the intended files if these variables are not present) &amp;lt;br&amp;gt;&lt;br /&gt;
'''NOTE:''' if you still have problems with compiling after cleaning, you may want to remove the directory in the build\msw directory. (it contains object files...)&lt;br /&gt;
When everything is clean we can compile wxWidgets:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' these options are the official Code::Blocks options. When you want another version of wxWidgets (unicode or debug) you have to make sure you build a MONOLITHIC version. (One big dll)&lt;br /&gt;
Now you can get a cup of coffee, or do something else, because this could take a long time.&lt;br /&gt;
&lt;br /&gt;
== Build the STC library (Not needed for CVS HEAD version) ==&lt;br /&gt;
If you closed the command 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.  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 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;/div&gt;</summary>
		<author><name>BLoke</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=233</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=233"/>
		<updated>2005-10-09T13:51:01Z</updated>

		<summary type="html">&lt;p&gt;BLoke: /* Setting up paths */&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 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:''' 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;
Now we are on the right place we are first going to clean up the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean &amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' make sure you use the same options to clean that you use for the build step below.  the clean target uses these environment variables and only cleans that version of the generated object and library files (so it will actually not clean the intended files if these variables are not present) &amp;lt;br&amp;gt;&lt;br /&gt;
'''NOTE:''' if you still have problems with compiling after cleaning, you may want to remove the directory in the build\msw directory. (it contains object files...)&lt;br /&gt;
When everything is clean we can compile wxWidgets:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' these options are the official Code::Blocks options. When you want another version of wxWidgets (unicode or debug) you have to make sure you build a MONOLITHIC version. (One big dll)&lt;br /&gt;
Now you can get a cup of coffee, or do something else, because this could take a long time.&lt;br /&gt;
&lt;br /&gt;
== Build the STC library (Not needed for CVS HEAD version) ==&lt;br /&gt;
If you closed the command 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.  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;'''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;/div&gt;</summary>
		<author><name>BLoke</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=232</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=232"/>
		<updated>2005-10-09T13:48:54Z</updated>

		<summary type="html">&lt;p&gt;BLoke: /* Build the STC library (Not needed for CVS HEAD version) */&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 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:''' 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;
Now we are on the right place we are first going to clean up the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean &amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' make sure you use the same options to clean that you use for the build step below.  the clean target uses these environment variables and only cleans that version of the generated object and library files (so it will actually not clean the intended files if these variables are not present) &amp;lt;br&amp;gt;&lt;br /&gt;
'''NOTE:''' if you still have problems with compiling after cleaning, you may want to remove the directory in the build\msw directory. (it contains object files...)&lt;br /&gt;
When everything is clean we can compile wxWidgets:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' these options are the official Code::Blocks options. When you want another version of wxWidgets (unicode or debug) you have to make sure you build a MONOLITHIC version. (One big dll)&lt;br /&gt;
Now you can get a cup of coffee, or do something else, because this could take a long time.&lt;br /&gt;
&lt;br /&gt;
== Build the STC library (Not needed for CVS HEAD version) ==&lt;br /&gt;
If you closed the command 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 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;'''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;/div&gt;</summary>
		<author><name>BLoke</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=231</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=231"/>
		<updated>2005-10-09T13:46:28Z</updated>

		<summary type="html">&lt;p&gt;BLoke: /* Download and Install the wxWidgets source code */&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 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:''' 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;
Now we are on the right place we are first going to clean up the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean &amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' make sure you use the same options to clean that you use for the build step below.  the clean target uses these environment variables and only cleans that version of the generated object and library files (so it will actually not clean the intended files if these variables are not present) &amp;lt;br&amp;gt;&lt;br /&gt;
'''NOTE:''' if you still have problems with compiling after cleaning, you may want to remove the directory in the build\msw directory. (it contains object files...)&lt;br /&gt;
When everything is clean we can compile wxWidgets:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' these options are the official Code::Blocks options. When you want another version of wxWidgets (unicode or debug) you have to make sure you build a MONOLITHIC version. (One big dll)&lt;br /&gt;
Now you can get a cup of coffee, or do something else, because this could take a long time.&lt;br /&gt;
&lt;br /&gt;
== Build the STC library (Not needed for CVS HEAD version) ==&lt;br /&gt;
If you closed the command promt, you have to open it again.&lt;br /&gt;
We are going to the STC directory&lt;br /&gt;
 &amp;lt;tt&amp;gt;cd ..\..\contrib\build\stc&amp;lt;/tt&amp;gt;&lt;br /&gt;
We clean the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean&amp;lt;/tt&amp;gt;&lt;br /&gt;
And we going to compile it. Make sure you have the same build options as before.&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
So now everything is compiled for using codeblocks.&lt;br /&gt;
&lt;br /&gt;
== Copy libraries ==&lt;br /&gt;
When compilation is finished it is usefull to copy the libs to another directory. By doing this you can make several builds (e.g. debug and release).&lt;br /&gt;
* So first we create a directory this could be done in &amp;lt;WXWIN&amp;gt;\lib.&lt;br /&gt;
* Then we go to the directory &amp;lt;WXWIN&amp;gt;\lib\gcc_dll (could called diffrent when you changed the build options)&lt;br /&gt;
* Now we move all the files (.a .dll) and the directory (msw) to the directory of your choice. (for me it is &amp;lt;WXWIN&amp;gt;\lib\codeblocks)&lt;br /&gt;
'''NOTE:''' Make sure you everything is removed from the directory &amp;lt;WXWIN&amp;gt;\lib\gcc_dll else you can get trouble when compiling another version.&lt;br /&gt;
&lt;br /&gt;
== Setting up paths ==&lt;br /&gt;
Everything is done now, and we can start compiling Code::Blocks, couldn't we? No! First we have to setup the paths.&lt;br /&gt;
Open the codeblocks project (CodeBlocks-wx2.6.0.cbp) and go to the Build options.&lt;br /&gt;
From there you have to go to the tab Directories and Compiler. Here you have to add the following paths (Remember to replace &amp;lt;WXWIN&amp;gt;)&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\lib\codeblocks\msw&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\contrib\include&lt;br /&gt;
The first path is used to find the right setup.h for the build you are using. The other two are for the normal include files.&lt;br /&gt;
&lt;br /&gt;
Now go to the Linker tab and add the following path:&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\lib\codeblocks&lt;br /&gt;
'''NOTE:''' You have to replace this with the directory of your own choice in the previous section!&lt;br /&gt;
&lt;br /&gt;
Finally, go to the resource tab and add the following path (Remember to replace &amp;lt;WXWIN&amp;gt;)&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
&lt;br /&gt;
Now you are finished with the configuration and you can hit the compile button (CTRL-F9). Be aware that Code::Blocks is not officially  support wxWidgets 2.6.1 so it is possible that new files are not yet in the project. You have to do this by your self.&lt;br /&gt;
&lt;br /&gt;
== Post compilation steps (before running C::B) ==&lt;br /&gt;
&lt;br /&gt;
When compilation process is finished, simply run the update.bat script. It will ensure that all resource files (that C::B uses) are in the right place and up to date.&lt;br /&gt;
&lt;br /&gt;
Note: This step requires appropriate zip command, which you likely have already set up and working. However, in case you have not, you should find something usable  [ftp://ftp.uu.net/pub/archiving/zip/WIN32/ here].&lt;br /&gt;
&lt;br /&gt;
----------&lt;br /&gt;
&lt;br /&gt;
Edit: I didn't see any update.bat script but no matter.  Two changes to this howto to get everything to work.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
1.  When creating a wx project in codeblocks, the link stage fails with cannot find -lwxmsw.  I needed to:&amp;lt;br&amp;gt;&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks\libwxmsw26.a to C:\wxWidgets-2.6.1\lib\codeblocks\libwxmsw.a &amp;lt;br&amp;gt;&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks\libwxmsw26_stc.a to C:\wxWidgets-2.6.1\lib\codeblocks\libwxmsw_stc.a &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or mess with the autogenerated makefile (they don't use WX_VER anymore it seems...) which is more of a hassle. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
2.  You will still get --enable-auto-import errors.  Looks like you just need to add a define: &amp;lt;br&amp;gt;&lt;br /&gt;
project-&amp;gt;build options-&amp;gt;compiler-&amp;gt;#defines &amp;lt;br&amp;gt;&lt;br /&gt;
WXUSINGDLL &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Lastly it will look for wxmsw26_gcc_cb.dll and not find it.  Either put  &amp;lt;br&amp;gt;&lt;br /&gt;
C:\wxWidgets-2.6.1\lib\codeblocks in your PATH, put wxmsw26_gcc_cb.dll and wxmsw26_stc_gcc_cb.dll in C:\windows\system32, or add C:\wxWidgets-2.6.1\lib\codeblocks to compile-&amp;gt;compiler options-&amp;gt;programs-&amp;gt;additional paths &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Rebuild and everything should run ok.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
====Building wxWidgets 2.6.1 mingw32 &amp;amp; vc++ toolkit 2003 ====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
I'll just throw in my notes on the process for both compiler versions as getting vc++ toolkit to work is quite a pain.  Code blocks needs a couple changes to support wxWidgets on the vc++ toolkit seamlessly.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
--------------------&lt;br /&gt;
for mingw32 compiler&lt;br /&gt;
--------------------&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&lt;br /&gt;
cd &amp;lt;WXWIN&amp;gt;\build\msw &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb clean &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;&lt;br /&gt;
stc is no longer needed for latest codeblocks (cvs version) which uses wxscintilla: &amp;lt;br&amp;gt;&lt;br /&gt;
cd ..\..\contrib\build\stc &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb clean &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/i&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&lt;br /&gt;
cd &amp;lt;WXWIN&amp;gt;\lib; move gcc_dll codeblocks_gcc&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
codeblocks &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
project-&amp;gt;build options&lt;br /&gt;
	directories-&amp;gt;compiler&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\lib\codeblocks_gcc\msw&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\contrib\include&lt;br /&gt;
	directories-&amp;gt;linker&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\lib\codeblocks_gcc&lt;br /&gt;
	directories-&amp;gt;resource compiler&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
	compiler-&amp;gt;#defines&lt;br /&gt;
		WXUSINGDLL&lt;br /&gt;
&lt;br /&gt;
compile-&amp;gt;compiler options&lt;br /&gt;
	programs-&amp;gt;additional paths&lt;br /&gt;
		C:\wxWidgets-2.6.1\lib\codeblocks_gcc&lt;br /&gt;
-OR- copy C:\wxWidgets-2.6.1\lib\codeblocks_gcc\wxmsw26_gcc_cb.dll&lt;br /&gt;
     to application exe directory or c:\windows\system32&lt;br /&gt;
-OR- change project-&amp;gt;properties-&amp;gt;targets-&amp;gt;execution working dir&lt;br /&gt;
     to C:\wxWidgets-2.6.1\lib\codeblocks_gcc (not recommended)&lt;br /&gt;
&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks_gcc\libwxmsw26.a&lt;br /&gt;
to C:\wxWidgets-2.6.1\lib\codeblocks_gcc\libwxmsw.a&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks_gcc\libwxmsw26_stc.a&lt;br /&gt;
to C:\wxWidgets-2.6.1\lib\codeblocks_gcc\libwxmsw_stc.a&lt;br /&gt;
&lt;br /&gt;
compile-&amp;gt;rebuild&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
------------------------------&lt;br /&gt;
for vc++ toolkit 2003 compiler&lt;br /&gt;
------------------------------&lt;br /&gt;
install VCToolkitSetup.exe &amp;lt;br&amp;gt;&lt;br /&gt;
install PlatformSDK &amp;lt;br&amp;gt;&lt;br /&gt;
install .NET Framework SDK Version 1.1 &amp;lt;br&amp;gt;&lt;br /&gt;
run PlatformSDK-&amp;gt;'''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;/div&gt;</summary>
		<author><name>BLoke</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=230</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=230"/>
		<updated>2005-10-09T13:41:34Z</updated>

		<summary type="html">&lt;p&gt;BLoke: /* Install MinGW */&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 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 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;&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;
Now we are on the right place we are first going to clean up the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean &amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' make sure you use the same options to clean that you use for the build step below.  the clean target uses these environment variables and only cleans that version of the generated object and library files (so it will actually not clean the intended files if these variables are not present) &amp;lt;br&amp;gt;&lt;br /&gt;
'''NOTE:''' if you still have problems with compiling after cleaning, you may want to remove the directory in the build\msw directory. (it contains object files...)&lt;br /&gt;
When everything is clean we can compile wxWidgets:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' these options are the official Code::Blocks options. When you want another version of wxWidgets (unicode or debug) you have to make sure you build a MONOLITHIC version. (One big dll)&lt;br /&gt;
Now you can get a cup of coffee, or do something else, because this could take a long time.&lt;br /&gt;
&lt;br /&gt;
== Build the STC library (Not needed for CVS HEAD version) ==&lt;br /&gt;
If you closed the command promt, you have to open it again.&lt;br /&gt;
We are going to the STC directory&lt;br /&gt;
 &amp;lt;tt&amp;gt;cd ..\..\contrib\build\stc&amp;lt;/tt&amp;gt;&lt;br /&gt;
We clean the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean&amp;lt;/tt&amp;gt;&lt;br /&gt;
And we going to compile it. Make sure you have the same build options as before.&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
So now everything is compiled for using codeblocks.&lt;br /&gt;
&lt;br /&gt;
== Copy libraries ==&lt;br /&gt;
When compilation is finished it is usefull to copy the libs to another directory. By doing this you can make several builds (e.g. debug and release).&lt;br /&gt;
* So first we create a directory this could be done in &amp;lt;WXWIN&amp;gt;\lib.&lt;br /&gt;
* Then we go to the directory &amp;lt;WXWIN&amp;gt;\lib\gcc_dll (could called diffrent when you changed the build options)&lt;br /&gt;
* Now we move all the files (.a .dll) and the directory (msw) to the directory of your choice. (for me it is &amp;lt;WXWIN&amp;gt;\lib\codeblocks)&lt;br /&gt;
'''NOTE:''' Make sure you everything is removed from the directory &amp;lt;WXWIN&amp;gt;\lib\gcc_dll else you can get trouble when compiling another version.&lt;br /&gt;
&lt;br /&gt;
== Setting up paths ==&lt;br /&gt;
Everything is done now, and we can start compiling Code::Blocks, couldn't we? No! First we have to setup the paths.&lt;br /&gt;
Open the codeblocks project (CodeBlocks-wx2.6.0.cbp) and go to the Build options.&lt;br /&gt;
From there you have to go to the tab Directories and Compiler. Here you have to add the following paths (Remember to replace &amp;lt;WXWIN&amp;gt;)&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\lib\codeblocks\msw&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\contrib\include&lt;br /&gt;
The first path is used to find the right setup.h for the build you are using. The other two are for the normal include files.&lt;br /&gt;
&lt;br /&gt;
Now go to the Linker tab and add the following path:&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\lib\codeblocks&lt;br /&gt;
'''NOTE:''' You have to replace this with the directory of your own choice in the previous section!&lt;br /&gt;
&lt;br /&gt;
Finally, go to the resource tab and add the following path (Remember to replace &amp;lt;WXWIN&amp;gt;)&lt;br /&gt;
* &amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
&lt;br /&gt;
Now you are finished with the configuration and you can hit the compile button (CTRL-F9). Be aware that Code::Blocks is not officially  support wxWidgets 2.6.1 so it is possible that new files are not yet in the project. You have to do this by your self.&lt;br /&gt;
&lt;br /&gt;
== Post compilation steps (before running C::B) ==&lt;br /&gt;
&lt;br /&gt;
When compilation process is finished, simply run the update.bat script. It will ensure that all resource files (that C::B uses) are in the right place and up to date.&lt;br /&gt;
&lt;br /&gt;
Note: This step requires appropriate zip command, which you likely have already set up and working. However, in case you have not, you should find something usable  [ftp://ftp.uu.net/pub/archiving/zip/WIN32/ here].&lt;br /&gt;
&lt;br /&gt;
----------&lt;br /&gt;
&lt;br /&gt;
Edit: I didn't see any update.bat script but no matter.  Two changes to this howto to get everything to work.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
1.  When creating a wx project in codeblocks, the link stage fails with cannot find -lwxmsw.  I needed to:&amp;lt;br&amp;gt;&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks\libwxmsw26.a to C:\wxWidgets-2.6.1\lib\codeblocks\libwxmsw.a &amp;lt;br&amp;gt;&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks\libwxmsw26_stc.a to C:\wxWidgets-2.6.1\lib\codeblocks\libwxmsw_stc.a &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or mess with the autogenerated makefile (they don't use WX_VER anymore it seems...) which is more of a hassle. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
2.  You will still get --enable-auto-import errors.  Looks like you just need to add a define: &amp;lt;br&amp;gt;&lt;br /&gt;
project-&amp;gt;build options-&amp;gt;compiler-&amp;gt;#defines &amp;lt;br&amp;gt;&lt;br /&gt;
WXUSINGDLL &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Lastly it will look for wxmsw26_gcc_cb.dll and not find it.  Either put  &amp;lt;br&amp;gt;&lt;br /&gt;
C:\wxWidgets-2.6.1\lib\codeblocks in your PATH, put wxmsw26_gcc_cb.dll and wxmsw26_stc_gcc_cb.dll in C:\windows\system32, or add C:\wxWidgets-2.6.1\lib\codeblocks to compile-&amp;gt;compiler options-&amp;gt;programs-&amp;gt;additional paths &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Rebuild and everything should run ok.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
====Building wxWidgets 2.6.1 mingw32 &amp;amp; vc++ toolkit 2003 ====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
I'll just throw in my notes on the process for both compiler versions as getting vc++ toolkit to work is quite a pain.  Code blocks needs a couple changes to support wxWidgets on the vc++ toolkit seamlessly.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
--------------------&lt;br /&gt;
for mingw32 compiler&lt;br /&gt;
--------------------&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&lt;br /&gt;
cd &amp;lt;WXWIN&amp;gt;\build\msw &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb clean &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;&lt;br /&gt;
stc is no longer needed for latest codeblocks (cvs version) which uses wxscintilla: &amp;lt;br&amp;gt;&lt;br /&gt;
cd ..\..\contrib\build\stc &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb clean &amp;lt;br&amp;gt;&lt;br /&gt;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/i&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&lt;br /&gt;
cd &amp;lt;WXWIN&amp;gt;\lib; move gcc_dll codeblocks_gcc&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
codeblocks &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
project-&amp;gt;build options&lt;br /&gt;
	directories-&amp;gt;compiler&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\lib\codeblocks_gcc\msw&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\contrib\include&lt;br /&gt;
	directories-&amp;gt;linker&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\lib\codeblocks_gcc&lt;br /&gt;
	directories-&amp;gt;resource compiler&lt;br /&gt;
		&amp;lt;WXWIN&amp;gt;\include&lt;br /&gt;
	compiler-&amp;gt;#defines&lt;br /&gt;
		WXUSINGDLL&lt;br /&gt;
&lt;br /&gt;
compile-&amp;gt;compiler options&lt;br /&gt;
	programs-&amp;gt;additional paths&lt;br /&gt;
		C:\wxWidgets-2.6.1\lib\codeblocks_gcc&lt;br /&gt;
-OR- copy C:\wxWidgets-2.6.1\lib\codeblocks_gcc\wxmsw26_gcc_cb.dll&lt;br /&gt;
     to application exe directory or c:\windows\system32&lt;br /&gt;
-OR- change project-&amp;gt;properties-&amp;gt;targets-&amp;gt;execution working dir&lt;br /&gt;
     to C:\wxWidgets-2.6.1\lib\codeblocks_gcc (not recommended)&lt;br /&gt;
&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks_gcc\libwxmsw26.a&lt;br /&gt;
to C:\wxWidgets-2.6.1\lib\codeblocks_gcc\libwxmsw.a&lt;br /&gt;
copy C:\wxWidgets-2.6.1\lib\codeblocks_gcc\libwxmsw26_stc.a&lt;br /&gt;
to C:\wxWidgets-2.6.1\lib\codeblocks_gcc\libwxmsw_stc.a&lt;br /&gt;
&lt;br /&gt;
compile-&amp;gt;rebuild&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
------------------------------&lt;br /&gt;
for vc++ toolkit 2003 compiler&lt;br /&gt;
------------------------------&lt;br /&gt;
install VCToolkitSetup.exe &amp;lt;br&amp;gt;&lt;br /&gt;
install PlatformSDK &amp;lt;br&amp;gt;&lt;br /&gt;
install .NET Framework SDK Version 1.1 &amp;lt;br&amp;gt;&lt;br /&gt;
run PlatformSDK-&amp;gt;'''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;/div&gt;</summary>
		<author><name>BLoke</name></author>
	</entry>
</feed>