# Can't Compile Cataclysm

**URL:** <https://discourse.cataclysmdda.org/t/cant-compile-cataclysm/1151>\
**Category:** The Garage\
**Created:** [May 7, 2013, 10:18pm UTC](https://discourse.cataclysmdda.org/t/cant-compile-cataclysm/1151 "2013-05-07T22:18:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zirikki](https://avatars.discourse-cdn.com/v4/letter/z/f04885/32.png) [@Zirikki](https://discourse.cataclysmdda.org/u/Zirikki)\
**Post date:** [May 7, 2013, 10:18pm UTC](https://discourse.cataclysmdda.org/t/cant-compile-cataclysm/1151/1 "2013-05-07T22:18:26Z")

</div>

Whenever I try to compile Cataclysm it always freezes in the same place. Can anyone help? Here’s a screenshot: [http://i.imgur.com/4lpn6CG.png](http://i.imgur.com/4lpn6CG.png). I’m using windows 7 and cygwin.

edit: Nevermind, it was just taking a long time to compile. ~30 min later it’s done compiling.

---

<div class="post-metadata">

**Author:** ![drake1storm](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@drake1storm](https://discourse.cataclysmdda.org/u/drake1storm)\
**Post date:** [May 8, 2013, 12:41am UTC](https://discourse.cataclysmdda.org/t/cant-compile-cataclysm/1151/2 "2013-05-08T00:41:13Z")

</div>

try downloading code blocks and compiling it.

---

<div class="post-metadata">

**Author:** ![Soron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soron/32/885_2.png) [@Soron](https://discourse.cataclysmdda.org/u/Soron)\
**Post date:** [May 8, 2013, 3:49am UTC](https://discourse.cataclysmdda.org/t/cant-compile-cataclysm/1151/3 "2013-05-08T03:49:56Z")

</div>

Yeah, itypedef.cpp can take a LOOONG time to compile. ~30 minutes is not unheard of, with no feedback, unfortunately \>\_\<.

On the plus side: we’re gradually moving stuff out of that file and into data files, which should alleviate the issue.

---

<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:** [May 8, 2013, 8:13am UTC](https://discourse.cataclysmdda.org/t/cant-compile-cataclysm/1151/4 "2013-05-08T08:13:02Z")

</div>

It largely depends on your computer speed and number of cores too. With 4 cores assigned to compiling I can do a clean build in 90 seconds. Or ~59 without size optimization on.

---

<div class="post-metadata">

**Author:** ![DrNoid](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@DrNoid](https://discourse.cataclysmdda.org/u/DrNoid)\
**Post date:** [May 8, 2013, 1:34pm UTC](https://discourse.cataclysmdda.org/t/cant-compile-cataclysm/1151/5 "2013-05-08T13:34:02Z")

</div>

I wonder what causes it to be that slow (on windows I assume?) gcc does that file in 8 seconds here, on a 3GHz Core i3.

---

<div class="post-metadata">

**Author:** ![i2amroy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/i2amroy/32/909_2.png) [@i2amroy](https://discourse.cataclysmdda.org/u/i2amroy)\
**Post date:** [May 9, 2013, 1:50am UTC](https://discourse.cataclysmdda.org/t/cant-compile-cataclysm/1151/6 "2013-05-09T01:50:53Z")

</div>

> [@The Darkling Wolf](#):
>
> It largely depends on your computer speed and number of cores too. With 4 cores assigned to compiling I can do a clean build in 90 seconds. Or ~59 without size optimization on.

This right here. I’m on a mac running windows 7 on bootcamp with a 2.2 Ghz quad core i7 and I can build with cygwin in about 45 seconds - 1 minute.

---

<div class="post-metadata">

**Author:** ![ejseto](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@ejseto](https://discourse.cataclysmdda.org/u/ejseto)\
**Post date:** [May 9, 2013, 7:30am UTC](https://discourse.cataclysmdda.org/t/cant-compile-cataclysm/1151/7 "2013-05-09T07:30:01Z")

</div>

Wish.cpp won’t compile on windows anymore.

wish.cpp: In member function ‘void game::wish()’:  
wish.cpp:192:43: error: ‘mvgetch’ was not declared in this scope  
wish.cpp:207:7: error: ‘echo’ was not declared in this scope  
wish.cpp:208:16: error: ‘getnstr’ was not declared in this scope  
make: \*\*\* [obj/wish.o] Error 1

The undeclared functions appear to be part of the curses library, but not part of catacurse.cpp.

---

<div class="post-metadata">

**Author:** ![Soron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soron/32/885_2.png) [@Soron](https://discourse.cataclysmdda.org/u/Soron)\
**Post date:** [May 9, 2013, 7:45am UTC](https://discourse.cataclysmdda.org/t/cant-compile-cataclysm/1151/8 "2013-05-09T07:45:44Z")

</div>

Thanks ejseto, fairly important bug that we might not have caught immediately.
