# Newbie windows compilation issues

**URL:** <https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40>\
**Category:** The Garage\
**Created:** [January 2, 2013, 10:45pm UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40 "2013-01-02T22:45:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rozy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rozy/32/826_2.png) [@Rozy](https://discourse.cataclysmdda.org/u/Rozy)\
**Post date:** [January 2, 2013, 10:45pm UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/1 "2013-01-02T22:45:01Z")

</div>

So I’ve been wanting to get back into this without having to virtualbox linux, so I wanted to teach myself to compile.

So I followed the post on this same board about how to compile it with with minGW, but I think something is up with the shell config or I have no idea how to set PATH variables. As I constantly get an error getting stdlib.h whenever I try to use the makefile.

Can anyone help here? I’m pretty new to this and I wanna be able to keep up with the latest version as it gets pushed out.

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [January 2, 2013, 10:49pm UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/2 "2013-01-02T22:49:22Z")

</div>

I’ll admit, I just copied the tutorials from the other forums, so I can’t actually verify if any of them but the Cygwin one work.

That being said, I can suggest using Cygwin, it’s relatively simple to install all of the dependancies needed, and it’s what I use to develop and play.

---

<div class="post-metadata">

**Author:** ![Rozy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rozy/32/826_2.png) [@Rozy](https://discourse.cataclysmdda.org/u/Rozy)\
**Post date:** [January 2, 2013, 10:52pm UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/3 "2013-01-02T22:52:13Z")

</div>

Well alright. I was kinda hoping for something with a bit more permanence though as it looks… Well it makes it look like I’d still be running through something rather than just directly. Which is what kept me from really getting to the game in the first place before.

But yeah I think Ill give that a try now and see if it works for me. And Ill be back if I run into any roadblocks.

---

<div class="post-metadata">

**Author:** ![GlyphGryph](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/glyphgryph/32/847_2.png) [@GlyphGryph](https://discourse.cataclysmdda.org/u/GlyphGryph)\
**Post date:** [January 2, 2013, 10:54pm UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/4 "2013-01-02T22:54:14Z")

</div>

Well, /running/ the game is fairly simple - we DO have a windows executable after all.

Actively developing on pure windows is something you’ll have to wait for one of the windows guys to come around and explain.

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [January 2, 2013, 10:55pm UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/5 "2013-01-02T22:55:23Z")

</div>

I’ll take a look at getting the MinGW+Msys one working as well, but for now Cygwin is pretty great, and a lot less futzy than the old virtualbox method.S

---

<div class="post-metadata">

**Author:** ![Rozy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rozy/32/826_2.png) [@Rozy](https://discourse.cataclysmdda.org/u/Rozy)\
**Post date:** [January 2, 2013, 11:45pm UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/6 "2013-01-02T23:45:47Z")

</div>

Okay I’ve managed to set up cygwin and get it going but… I think I might of got the wrong version of G++, as I got all these errors about declaring WINDOW and so on. I can go try and make and screenshot it if I need to unless this is something very obvious I did wrong.

Edit: Added error screenie.

 ![](http://i.imgur.com/FhCEf.png)

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [January 2, 2013, 11:48pm UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/7 "2013-01-02T23:48:03Z")

</div>

Did you download libncurses-dev and libncursesw-dev? (I myself just downloaded the entire curses package to be safe)

---

<div class="post-metadata">

**Author:** ![Rozy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rozy/32/826_2.png) [@Rozy](https://discourse.cataclysmdda.org/u/Rozy)\
**Post date:** [January 2, 2013, 11:48pm UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/8 "2013-01-02T23:48:53Z")

</div>

I BELIEVE I did but it’s hard sorting through these packages. Sometimes it seemed there were multiples with no indication if one or the other was the one I needed.

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [January 2, 2013, 11:51pm UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/9 "2013-01-02T23:51:02Z")

</div>

To be safe, I’d just grab all of these:  
 ![](http://i.snag.gy/bpxY9.jpg)  
(Click image for full size)

I’ll try and write a better tutorial once I can get yours sorted out and working.

---

<div class="post-metadata">

**Author:** ![Rozy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rozy/32/826_2.png) [@Rozy](https://discourse.cataclysmdda.org/u/Rozy)\
**Post date:** [January 2, 2013, 11:59pm UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/10 "2013-01-02T23:59:20Z")

</div>

Seemed to be working. Then I started getting some odds about “Converting int to double” and then it broke with this error.

![](http://i.imgur.com/xEAEX.png)

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [January 3, 2013, 12:07am UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/11 "2013-01-03T00:07:39Z")

</div>

Well, it’s progress at least.  
I’ll look for a fix for that, I think someone else might have been having the same problem so I’ll check.

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [January 3, 2013, 12:30am UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/12 "2013-01-03T00:30:01Z")

</div>

Hrm… actually, did you do ‘make clean’ before typing ‘make’ ?

---

<div class="post-metadata">

**Author:** ![Rozy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rozy/32/826_2.png) [@Rozy](https://discourse.cataclysmdda.org/u/Rozy)\
**Post date:** [January 3, 2013, 1:23am UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/13 "2013-01-03T01:23:11Z")

</div>

Make clean followed by make gives me the exact same errors.

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [January 3, 2013, 1:42am UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/14 "2013-01-03T01:42:43Z")

</div>

Crap 😕

Hrm… Do you have all of the G++ stuff installed?  
There are 6 packages in total I think.

---

<div class="post-metadata">

**Author:** ![Rozy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rozy/32/826_2.png) [@Rozy](https://discourse.cataclysmdda.org/u/Rozy)\
**Post date:** [January 3, 2013, 1:43am UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/15 "2013-01-03T01:43:55Z")

</div>

I can’t really say for sure since I have no idea which ones I really need. I just think I got it. Any chance you could show me the proper G++ packages like you did with the curses ones?

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [January 3, 2013, 1:46am UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/16 "2013-01-03T01:46:43Z")

</div>

![](http://i.snag.gy/1dLwa.jpg)

That’s the six I have installed, looking through to see if there’s anything else that could be causing the problem too.

---

<div class="post-metadata">

**Author:** ![Rozy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rozy/32/826_2.png) [@Rozy](https://discourse.cataclysmdda.org/u/Rozy)\
**Post date:** [January 3, 2013, 2:18am UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/17 "2013-01-03T02:18:31Z")

</div>

It was very promising at first. Then it seemed to fail riiight at the end here. This is with the missing G++ packages added.

 ![](http://i.imgur.com/D2b5Y.png)

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [January 3, 2013, 2:24am UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/18 "2013-01-03T02:24:04Z")

</div>

Did you do a make clean again before compiling?

---

<div class="post-metadata">

**Author:** ![Rozy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rozy/32/826_2.png) [@Rozy](https://discourse.cataclysmdda.org/u/Rozy)\
**Post date:** [January 3, 2013, 2:36am UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/19 "2013-01-03T02:36:51Z")

</div>

Doh. I feel like a dumbass now. That fixed it.

Thanks TDA, sorry for using up your time here.

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [January 3, 2013, 2:38am UTC](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40/20 "2013-01-03T02:38:46Z")

</div>

No worries, I’m just glad you got it sorted out.

[Next page](https://discourse.cataclysmdda.org/t/newbie-windows-compilation-issues/40.md?page=2)
