# Compiling Error

**URL:** https://discourse.cataclysmdda.org/t/compiling-error/22951
**Category:** The Garage
**Created:** [March 6, 2020, 8:34pm UTC](https://discourse.cataclysmdda.org/t/compiling-error/22951 "2020-03-06T20:34:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chrimchim](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@chrimchim](https://discourse.cataclysmdda.org/u/chrimchim)
#### Post date: [March 6, 2020, 8:34pm UTC](https://discourse.cataclysmdda.org/t/compiling-error/22951/1 "2020-03-06T20:34:39Z")

</div>

I’m on Ubuntu version 16.04, and I’ve been running into an issue repeatedly whilst trying to compile the game. I’ve attempted compiling with Clang, g++ 5.4.0, and g++ 9.2.1.  
I’ve previously successfully compiled the game multiple times using clang, this error began stopping me from compiling this Monday.

During every one of these compiles, I run into a similar error.  
g++:  
`obj/npctalk.o: In function 'dynamic_line_t': /githolder/cdda/src/npctalk.cpp:2893: undefined reference to 'conditional_t<dialogue>::conditional_t()' collect2: error: ld returned 1 exit status Makefile:828: recipe for target 'cataclysm' failed make: *** [cataclysm] Error 1`  
clang:  
`obj/npctalk.o: In function 'dynamic_line_t': /githolder/cdda/src/npctalk.cpp:2893: undefined reference to 'onditional_t<dialogue>::conditional_t()' clang: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:828: recipe for target 'cataclysm' failed make: *** [cataclysm] Error 1`

Any help or input would be appreciated.

---

<div class="post-metadata">

### Author: ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)
#### Post date: [March 6, 2020, 11:15pm UTC](https://discourse.cataclysmdda.org/t/compiling-error/22951/2 "2020-03-06T23:15:06Z")

</div>

Is your copy of the repo up to date? You may want to update it.

---

<div class="post-metadata">

### Author: ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)
#### Post date: [March 7, 2020, 9:47am UTC](https://discourse.cataclysmdda.org/t/compiling-error/22951/3 "2020-03-07T09:47:10Z")

</div>

I did not have a chance to test under specific compiler versions yet, but it seems not to affect anything, but OSXCROSS builds in CI.

You can revert this - [https://github.com/CleverRaven/Cataclysm-DDA/pull/38361](https://github.com/CleverRaven/Cataclysm-DDA/pull/38361) or guard offending code - [https://github.com/CleverRaven/Cataclysm-DDA/issues/38433](https://github.com/CleverRaven/Cataclysm-DDA/issues/38433)

Also try running `make clean` before build.

---

<div class="post-metadata">

### Author: ![chrimchim](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@chrimchim](https://discourse.cataclysmdda.org/u/chrimchim)
#### Post date: [March 9, 2020, 7:18pm UTC](https://discourse.cataclysmdda.org/t/compiling-error/22951/4 "2020-03-09T19:18:14Z")

</div>

`make clean` was unsuccessful in fixing the issue, and my repo is up to date.

I was able to compile after reverting the changes made by [https://github.com/CleverRaven/Cataclysm-DDA/pull/38361](https://github.com/CleverRaven/Cataclysm-DDA/pull/38361). I’m completely out of my depth as to the content of the change, and I’m very unsure how to ask to revert a change in the official repo-- should I post this to the issues section in github?
