<?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=GeertVc</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=GeertVc"/>
	<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php/Special:Contributions/GeertVc"/>
	<updated>2026-05-24T04:31:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=FAQ&amp;diff=2348</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=FAQ&amp;diff=2348"/>
		<updated>2006-02-08T19:17:55Z</updated>

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

		<summary type="html">&lt;p&gt;GeertVc: /* Building wxWidgets 2.6.1 mingw32 &amp;amp; vc++ toolkit 2003 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are the instructions to compile wxWidgets do you can compile Code::Blocks on your own.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' These instructions are MS Windows (TM) specific, but because we are using MinGW it should be possible to use these instructions with some modifications on other platforms.&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
If you don't have the Code::Blocks + MinGW bundle, grab the latest MinGW stuff from the [http://www.mingw.org/download.shtml#hdr2 MinGW site] and install it under a directory you like.&lt;br /&gt;
'''NOTE:''' In these instroctions we're calling the MinGW directory &amp;lt;MINGW&amp;gt;, so you have to replace that with you're own directory.&lt;br /&gt;
&lt;br /&gt;
'''If you DO have the Code::Blocks + MinGW bundle, or have already installed MINGW on your own, you can skip this section.'''&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' The files are compressed in the tar.gz format. You need a third-party extraction utility to unzip them. (like 7-zip)&lt;br /&gt;
&lt;br /&gt;
You need at least the following files:&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-core-3.4.2-20040916-1.tar.gz?download gcc-core-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-g++-3.4.2-20040916-1.tar.gz?download gcc-g++-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-runtime-3.7.tar.gz?download mingw-runtime-3.7.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-utils-0.3.tar.gz?download mingw-utils-0.3.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/w32api-3.2.tar.gz?download w32api-3.2.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/binutils-2.15.91-20040904-1.tar.gz?download binutils-2.15.91-20040904-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe?download mingw32-make-3.80.0-3.exe]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gdb-5.2.1-1.exe?download gdb-5.2.1-1.exe]&lt;br /&gt;
GDB is not really needed, but could be usefull for debugging.&lt;br /&gt;
&lt;br /&gt;
After you install, make sure you have the following directories under your path:&lt;br /&gt;
* &amp;lt;MINGW&amp;gt;\bin;&lt;br /&gt;
* &amp;lt;MINGW&amp;gt;\mingw32\bin;&lt;br /&gt;
&lt;br /&gt;
== Download and Install the wxWidgets source code ==&lt;br /&gt;
The wxWidgets 2.6.1 distribution can be found at the [http://www.wxwidgets.org/dl_msw2.htm#stable wxWidgets website]. (Note that ther e is also a winhelp file available.) You can get choose between an installer and a zip file. You can just get the zip file because the installer is also a zipped version.&lt;br /&gt;
&lt;br /&gt;
If you use the plain zip version, make sure to unzip using the full path. Otherwise the directories won't be created correctly.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' In the rest of these instructions we are calling the wxWidgets directory &amp;lt;WXWIN&amp;gt; you have to change it to your own directory. (e.g. &amp;quot;c:\wxWidgets-2.6.1&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' you do not need MSYS. Furthermore, you cannot have MSYS in your path, or the wxWidgets compilation will fail. Thus if you have MSYS installed, ensure that &amp;lt;MSYS&amp;gt;\bin '''is not''' in your path before compiling wxWidgets. wxWidgets must be compiled from a &amp;quot;regular&amp;quot; command line (cmd.exe), not from a unix-like shell. BTW, The same problem would probably arise as well if cygwin is in the path.&lt;br /&gt;
&lt;br /&gt;
== Check make version ==&lt;br /&gt;
If you didn't install MingW yourself you have to make sure you have the right version of make. Open the command prompt and type:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -v&amp;lt;/tt&amp;gt;&lt;br /&gt;
If the version is 3.80 or greater it is allright to go on, else you have to install the new make.&lt;br /&gt;
&lt;br /&gt;
== Building wxWidgets ==&lt;br /&gt;
Now it is time to compile wxWidgets, open the command promt and change to the wxWidgets directory:&lt;br /&gt;
 &amp;lt;tt&amp;gt;cd &amp;lt;WXWIN&amp;gt;\build\msw&amp;lt;/tt&amp;gt;&lt;br /&gt;
Now we are on the right place we are first going to clean up the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean &amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' make sure you use the same options to clean that you use for the build step below.  the clean target uses these environment variables and only cleans that version of the generated object and library files (so it will actually not clean the intended files if these variables are not present) &amp;lt;br&amp;gt;&lt;br /&gt;
'''NOTE:''' if you still have problems with compiling after cleaning, you may want to remove the directory in the build\msw directory. (it contains object files...)&lt;br /&gt;
When everything is clean we can compile wxWidgets:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' these options are the official Code::Blocks options. When you want another version of wxWidgets (unicode or debug) you have to make sure you build a MONOLITHIC version. (One big dll)&lt;br /&gt;
Now you can get a cup of coffee, or do something else, because this could take a long time.&lt;br /&gt;
&lt;br /&gt;
== Build the STC library (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>GeertVc</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=211</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=211"/>
		<updated>2005-09-18T18:17:13Z</updated>

		<summary type="html">&lt;p&gt;GeertVc: /* Building wxWidgets 2.6.1 mingw32 &amp;amp; vc++ toolkit 2003 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are the instructions to compile wxWidgets do you can compile Code::Blocks on your own.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' These instructions are MS Windows (TM) specific, but because we are using MinGW it should be possible to use these instructions with some modifications on other platforms.&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
If you don't have the Code::Blocks + MinGW bundle, grab the latest MinGW stuff from the [http://www.mingw.org/download.shtml#hdr2 MinGW site] and install it under a directory you like.&lt;br /&gt;
'''NOTE:''' In these instroctions we're calling the MinGW directory &amp;lt;MINGW&amp;gt;, so you have to replace that with you're own directory.&lt;br /&gt;
&lt;br /&gt;
'''If you DO have the Code::Blocks + MinGW bundle, or have already installed MINGW on your own, you can skip this section.'''&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' The files are compressed in the tar.gz format. You need a third-party extraction utility to unzip them. (like 7-zip)&lt;br /&gt;
&lt;br /&gt;
You need at least the following files:&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-core-3.4.2-20040916-1.tar.gz?download gcc-core-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-g++-3.4.2-20040916-1.tar.gz?download gcc-g++-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-runtime-3.7.tar.gz?download mingw-runtime-3.7.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-utils-0.3.tar.gz?download mingw-utils-0.3.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/w32api-3.2.tar.gz?download w32api-3.2.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/binutils-2.15.91-20040904-1.tar.gz?download binutils-2.15.91-20040904-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe?download mingw32-make-3.80.0-3.exe]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gdb-5.2.1-1.exe?download gdb-5.2.1-1.exe]&lt;br /&gt;
GDB is not really needed, but could be usefull for debugging.&lt;br /&gt;
&lt;br /&gt;
After you install, make sure you have the following directories under your path:&lt;br /&gt;
* &amp;lt;MINGW&amp;gt;\bin;&lt;br /&gt;
* &amp;lt;MINGW&amp;gt;\mingw32\bin;&lt;br /&gt;
&lt;br /&gt;
== Download and Install the wxWidgets source code ==&lt;br /&gt;
The wxWidgets 2.6.1 distribution can be found at the [http://www.wxwidgets.org/dl_msw2.htm#stable wxWidgets website]. (Note that ther e is also a winhelp file available.) You can get choose between an installer and a zip file. You can just get the zip file because the installer is also a zipped version.&lt;br /&gt;
&lt;br /&gt;
If you use the plain zip version, make sure to unzip using the full path. Otherwise the directories won't be created correctly.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' In the rest of these instructions we are calling the wxWidgets directory &amp;lt;WXWIN&amp;gt; you have to change it to your own directory. (e.g. &amp;quot;c:\wxWidgets-2.6.1&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' you do not need MSYS. Furthermore, you cannot have MSYS in your path, or the wxWidgets compilation will fail. Thus if you have MSYS installed, ensure that &amp;lt;MSYS&amp;gt;\bin '''is not''' in your path before compiling wxWidgets. wxWidgets must be compiled from a &amp;quot;regular&amp;quot; command line (cmd.exe), not from a unix-like shell. BTW, The same problem would probably arise as well if cygwin is in the path.&lt;br /&gt;
&lt;br /&gt;
== Check make version ==&lt;br /&gt;
If you didn't install MingW yourself you have to make sure you have the right version of make. Open the command prompt and type:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -v&amp;lt;/tt&amp;gt;&lt;br /&gt;
If the version is 3.80 or greater it is allright to go on, else you have to install the new make.&lt;br /&gt;
&lt;br /&gt;
== Building wxWidgets ==&lt;br /&gt;
Now it is time to compile wxWidgets, open the command promt and change to the wxWidgets directory:&lt;br /&gt;
 &amp;lt;tt&amp;gt;cd &amp;lt;WXWIN&amp;gt;\build\msw&amp;lt;/tt&amp;gt;&lt;br /&gt;
Now we are on the right place we are first going to clean up the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean &amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' make sure you use the same options to clean that you use for the build step below.  the clean target uses these environment variables and only cleans that version of the generated object and library files (so it will actually not clean the intended files if these variables are not present) &amp;lt;br&amp;gt;&lt;br /&gt;
'''NOTE:''' if you still have problems with compiling after cleaning, you may want to remove the directory in the build\msw directory. (it contains object files...)&lt;br /&gt;
When everything is clean we can compile wxWidgets:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' these options are the official Code::Blocks options. When you want another version of wxWidgets (unicode or debug) you have to make sure you build a MONOLITHIC version. (One big dll)&lt;br /&gt;
Now you can get a cup of coffee, or do something else, because this could take a long time.&lt;br /&gt;
&lt;br /&gt;
== Build the STC library (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;
'''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;
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>GeertVc</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)&amp;diff=210</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=210"/>
		<updated>2005-09-18T18:00:44Z</updated>

		<summary type="html">&lt;p&gt;GeertVc: /* Building wxWidgets 2.6.1 mingw32 &amp;amp; vc++ toolkit 2003 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are the instructions to compile wxWidgets do you can compile Code::Blocks on your own.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' These instructions are MS Windows (TM) specific, but because we are using MinGW it should be possible to use these instructions with some modifications on other platforms.&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
If you don't have the Code::Blocks + MinGW bundle, grab the latest MinGW stuff from the [http://www.mingw.org/download.shtml#hdr2 MinGW site] and install it under a directory you like.&lt;br /&gt;
'''NOTE:''' In these instroctions we're calling the MinGW directory &amp;lt;MINGW&amp;gt;, so you have to replace that with you're own directory.&lt;br /&gt;
&lt;br /&gt;
'''If you DO have the Code::Blocks + MinGW bundle, or have already installed MINGW on your own, you can skip this section.'''&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' The files are compressed in the tar.gz format. You need a third-party extraction utility to unzip them. (like 7-zip)&lt;br /&gt;
&lt;br /&gt;
You need at least the following files:&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-core-3.4.2-20040916-1.tar.gz?download gcc-core-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gcc-g++-3.4.2-20040916-1.tar.gz?download gcc-g++-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-runtime-3.7.tar.gz?download mingw-runtime-3.7.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw-utils-0.3.tar.gz?download mingw-utils-0.3.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/w32api-3.2.tar.gz?download w32api-3.2.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/binutils-2.15.91-20040904-1.tar.gz?download binutils-2.15.91-20040904-1.tar.gz]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe?download mingw32-make-3.80.0-3.exe]&lt;br /&gt;
* [http://prdownloads.sf.net/mingw/gdb-5.2.1-1.exe?download gdb-5.2.1-1.exe]&lt;br /&gt;
GDB is not really needed, but could be usefull for debugging.&lt;br /&gt;
&lt;br /&gt;
After you install, make sure you have the following directories under your path:&lt;br /&gt;
* &amp;lt;MINGW&amp;gt;\bin;&lt;br /&gt;
* &amp;lt;MINGW&amp;gt;\mingw32\bin;&lt;br /&gt;
&lt;br /&gt;
== Download and Install the wxWidgets source code ==&lt;br /&gt;
The wxWidgets 2.6.1 distribution can be found at the [http://www.wxwidgets.org/dl_msw2.htm#stable wxWidgets website]. (Note that ther e is also a winhelp file available.) You can get choose between an installer and a zip file. You can just get the zip file because the installer is also a zipped version.&lt;br /&gt;
&lt;br /&gt;
If you use the plain zip version, make sure to unzip using the full path. Otherwise the directories won't be created correctly.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' In the rest of these instructions we are calling the wxWidgets directory &amp;lt;WXWIN&amp;gt; you have to change it to your own directory. (e.g. &amp;quot;c:\wxWidgets-2.6.1&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' you do not need MSYS. Furthermore, you cannot have MSYS in your path, or the wxWidgets compilation will fail. Thus if you have MSYS installed, ensure that &amp;lt;MSYS&amp;gt;\bin '''is not''' in your path before compiling wxWidgets. wxWidgets must be compiled from a &amp;quot;regular&amp;quot; command line (cmd.exe), not from a unix-like shell. BTW, The same problem would probably arise as well if cygwin is in the path.&lt;br /&gt;
&lt;br /&gt;
== Check make version ==&lt;br /&gt;
If you didn't install MingW yourself you have to make sure you have the right version of make. Open the command prompt and type:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -v&amp;lt;/tt&amp;gt;&lt;br /&gt;
If the version is 3.80 or greater it is allright to go on, else you have to install the new make.&lt;br /&gt;
&lt;br /&gt;
== Building wxWidgets ==&lt;br /&gt;
Now it is time to compile wxWidgets, open the command promt and change to the wxWidgets directory:&lt;br /&gt;
 &amp;lt;tt&amp;gt;cd &amp;lt;WXWIN&amp;gt;\build\msw&amp;lt;/tt&amp;gt;&lt;br /&gt;
Now we are on the right place we are first going to clean up the source:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean &amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' make sure you use the same options to clean that you use for the build step below.  the clean target uses these environment variables and only cleans that version of the generated object and library files (so it will actually not clean the intended files if these variables are not present) &amp;lt;br&amp;gt;&lt;br /&gt;
'''NOTE:''' if you still have problems with compiling after cleaning, you may want to remove the directory in the build\msw directory. (it contains object files...)&lt;br /&gt;
When everything is clean we can compile wxWidgets:&lt;br /&gt;
 &amp;lt;tt&amp;gt;mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb&amp;lt;/tt&amp;gt;&lt;br /&gt;
'''NOTE:''' these options are the official Code::Blocks options. When you want another version of wxWidgets (unicode or debug) you have to make sure you build a MONOLITHIC version. (One big dll)&lt;br /&gt;
Now you can get a cup of coffee, or do something else, because this could take a long time.&lt;br /&gt;
&lt;br /&gt;
== Build the STC library (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;
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>GeertVc</name></author>
	</entry>
</feed>