# How do I compile a working version? Explain like I've never done it before

**URL:** <https://discourse.cataclysmdda.org/t/how-do-i-compile-a-working-version-explain-like-ive-never-done-it-before/4675>\
**Category:** The Garage\
**Created:** [January 2, 2014, 9:25pm UTC](https://discourse.cataclysmdda.org/t/how-do-i-compile-a-working-version-explain-like-ive-never-done-it-before/4675 "2014-01-02T21:25:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheGrifter](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@TheGrifter](https://discourse.cataclysmdda.org/u/TheGrifter)\
**Post date:** [January 2, 2014, 9:25pm UTC](https://discourse.cataclysmdda.org/t/how-do-i-compile-a-working-version-explain-like-ive-never-done-it-before/4675/1 "2014-01-02T21:25:22Z")

</div>

So, I downloaded the source, opened up some CPPs, and edited them. Went to hit “rebuild”, and it waited for seven minutes before informing me of an error or two in the rebuild, and I couldn’t find any sort of folder, file, or .exe that was the fruit of my labor.

I tried with an un-altered cataclysm source, and still, no working compile. What button do I press? I feel like an idiot, but this sort of thing is hard. Harder than altering CPP code, it seems. I can atleast tell what I’m doing with that.

---

<div class="post-metadata">

**Author:** ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)\
**Post date:** [January 2, 2014, 11:54pm UTC](https://discourse.cataclysmdda.org/t/how-do-i-compile-a-working-version-explain-like-ive-never-done-it-before/4675/2 "2014-01-02T23:54:54Z")

</div>

Sounds like you’re using MinGW. I’m a Code::Blocks user so not the same UI.

For mine, I had to add some files to the “project” (the list over on the left side) to include them under the build button.

Then I hit the gear-looking button. It compiles. Takes about 15 minutes on my laptop.

If there’s a dealbreaker, it’ll stop there and tell you in Unhappy Red Text ☹ . Sometimes the message is helpful. Sometimes it isn’t. Asking on the IRC is a good place for dealing with compile-time problems.

(In general, if you edit a .cpp dile after compiling, it’ll only need to recompile that file. If you edit a .h file, that affects Everything so it needs to recompile everything. Updating the codebase (after a git pull upstream master, see [HowToContribute](https://github.com/CleverRaven/Cataclysm-DDA/blob/master/CONTRIBUTING.md)) needs a full recompile too.)

---

<div class="post-metadata">

**Author:** ![TheGrifter](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@TheGrifter](https://discourse.cataclysmdda.org/u/TheGrifter)\
**Post date:** [January 3, 2014, 6:30am UTC](https://discourse.cataclysmdda.org/t/how-do-i-compile-a-working-version-explain-like-ive-never-done-it-before/4675/3 "2014-01-03T06:30:02Z")

</div>

I don’t use linux. I can cargo-cult program CCP, but that’s about it. I want to learn more, but I’m confused, and you’ve got your stuff to do.

---

<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:** [January 3, 2014, 7:20am UTC](https://discourse.cataclysmdda.org/t/how-do-i-compile-a-working-version-explain-like-ive-never-done-it-before/4675/4 "2014-01-03T07:20:30Z")

</div>

> [@xibalba](#):
>
> How do you compile the console linux version on Debian? Does cataclysm no longer use make?

Cataclysm should still be using make.
