<?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=CrayzeeIvan</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=CrayzeeIvan"/>
	<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php/Special:Contributions/CrayzeeIvan"/>
	<updated>2026-05-11T01:03:31Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Setting_the_WX_VER_variable&amp;diff=217</id>
		<title>Setting the WX VER variable</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Setting_the_WX_VER_variable&amp;diff=217"/>
		<updated>2005-07-03T18:04:44Z</updated>

		<summary type="html">&lt;p&gt;CrayzeeIvan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If, while comepiling Code::Blocks, you get the error: &amp;quot;Couldn't find library -lwxmsw$(WX_VER)&amp;quot; or some such, do this:&lt;br /&gt;
*Open the build options&lt;br /&gt;
*Open the &amp;quot;Custom variables&amp;quot; tab&lt;br /&gt;
*&amp;quot;Add&amp;quot; a new variable, with the name of (you guessed it) WX_VER&lt;br /&gt;
*Set its value to the appropriate thing, i.e. &amp;quot;242&amp;quot; (without the quotes)&lt;br /&gt;
&lt;br /&gt;
After this, the error should be gone for good :)&lt;/div&gt;</summary>
		<author><name>CrayzeeIvan</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Tips%27n%27Tricks&amp;diff=179</id>
		<title>Tips'n'Tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Tips%27n%27Tricks&amp;diff=179"/>
		<updated>2005-07-03T18:00:40Z</updated>

		<summary type="html">&lt;p&gt;CrayzeeIvan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====[[Personalities]]====&lt;br /&gt;
====[[Fixing Internal Errors]]====&lt;br /&gt;
====[[Setting the WX_VER variable]]====&lt;/div&gt;</summary>
		<author><name>CrayzeeIvan</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.4.2_to_develop_Code::Blocks_(MSW)&amp;diff=109</id>
		<title>Compiling wxWidgets 2.4.2 to develop Code::Blocks (MSW)</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.4.2_to_develop_Code::Blocks_(MSW)&amp;diff=109"/>
		<updated>2005-07-01T22:45:18Z</updated>

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