# Using Code::Blocks on master on Windows

**URL:** <https://discourse.cataclysmdda.org/t/using-code-blocks-on-master-on-windows/2449>\
**Category:** The Toolbox\
**Created:** [July 28, 2013, 12:57pm UTC](https://discourse.cataclysmdda.org/t/using-code-blocks-on-master-on-windows/2449 "2013-07-28T12:57:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathiral](https://avatars.discourse-cdn.com/v4/letter/n/a698b9/32.png) [@nathiral](https://discourse.cataclysmdda.org/u/nathiral)\
**Post date:** [July 28, 2013, 12:57pm UTC](https://discourse.cataclysmdda.org/t/using-code-blocks-on-master-on-windows/2449/1 "2013-07-28T12:57:59Z")

</div>

Followed [http://www.wiki.cataclysmdda.com/index.php?title=How\_to\_compile](http://www.wiki.cataclysmdda.com/index.php?title=How_to_compile) for Code::Blocks on Windows, but I’m getting an error: “ld.exe: cannot find -liconv.” No idea what that means. Googling around has shown me I might need to install Cygwin (which defeats the point of using Code::Blocks).

Any help?

Likewise, it would be great if the dependencies (libintl) were included in the master branch.

(It worked back for 0.6, but after the localization work started getting merge, I can’t get it to compile anymore… well, technically can’t get it to link anymore.)

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![GalenEvil](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@GalenEvil](https://discourse.cataclysmdda.org/u/GalenEvil)\
**Post date:** [July 28, 2013, 5:03pm UTC](https://discourse.cataclysmdda.org/t/using-code-blocks-on-master-on-windows/2449/2 "2013-07-28T17:03:23Z")

</div>

I think the best we could do is provide links to the dependencies in a stickied file, or in the COMPILING file that comes with the source. You do not need cygwin to compile though. Here is what I have setup:

- In Settings\>Compiler\>Search Directories  
–Compiler:  
–++ C:\GnuWin32\include  
–++ C:\GnuWin32\share\gettext\intl

–Linker:  
–++ C:\GnuWin32\lib  
–++ C:\Users\Galen\Libraries\GetText\lib

- In Project\>Build options\>Linker Settings (Cataclysm)  
– Other Linker Settings:  
"-Wl,-stack,12000000,-subsystem,windows  
-static -lgdi32 -llibintl -llibiconv"

I also have “libiconv2.dll” and “libintl3.dll” in the project’s root directory.

May be a little overkill, but it works and I don’t care for now as long as it works 😃

url for “libiconv” installer : [http://superb-dca2.dl.sourceforge.net/project/gnuwin32/libiconv/1.9.2-1/libiconv-1.9.2-1.exe](http://superb-dca2.dl.sourceforge.net/project/gnuwin32/libiconv/1.9.2-1/libiconv-1.9.2-1.exe)  
url for “libintl” installer : [http://hivelocity.dl.sourceforge.net/project/gnuwin32/libintl/0.14.4/libintl-0.14.4.exe](http://hivelocity.dl.sourceforge.net/project/gnuwin32/libintl/0.14.4/libintl-0.14.4.exe)  
url for GetText runtime: [http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime\_0.18.1.1-1\_win32.zip](http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime_0.18.1.1-1_win32.zip)  
url for GetText runtime-dev: [http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime-dev\_0.18.1.1-1\_win32.zip](http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime-dev_0.18.1.1-1_win32.zip)

Hope these help 😃

---

<div class="post-metadata">

**Author:** ![Natures\_Witness](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/natures_witness/32/165_2.png) [@Natures\_Witness](https://discourse.cataclysmdda.org/u/Natures_Witness)\
**Post date:** [August 2, 2013, 9:11pm UTC](https://discourse.cataclysmdda.org/t/using-code-blocks-on-master-on-windows/2449/3 "2013-08-02T21:11:53Z")

</div>

“Alive. It’s Alive! IT’S ALIVE!”

On a more serious note thank you!!! I’ve fought with this for WEEKS! Finally I can code (badly) again!  
There’s a sticky here [http://smf.cataclysmdda.com/index.php?topic=1165.0](http://smf.cataclysmdda.com/index.php?topic=1165.0) maybe you could add the stuff to it?  
You could also do a pull request to add this to the compiling directions in [COMPILING.md](http://COMPILING.md).  
And the wiki has a page on compiling at [http://www.wiki.cataclysmdda.com/index.php?title=How\_to\_compile](http://www.wiki.cataclysmdda.com/index.php?title=How_to_compile)

Extra thanks for the hotlinks to the files needed, that was the part I just couldn’t seem to figure out. Nobody mentioned the libiconv and libintl part, just the gettext.  
I can’t thank you enough, I’ve been so bummed that I couldn’t get this working 🙂  
We need to dig up Paul Revere, re-animate him, and get him to ride (lurch?) from town to town shouting this for all the world to know!!

…Okay maybe that’s a little much but this at LEAST needs a sticky somewhere easy to find for all the newbie coders (like me).
