# Compiling: undefined reference to 'strip\_positional\_formatting' \[Solved?\]

**URL:** https://discourse.cataclysmdda.org/t/compiling-undefined-reference-to-strip-positional-formatting-solved/6260
**Category:** The Garage
**Created:** [May 26, 2014, 12:38pm UTC](https://discourse.cataclysmdda.org/t/compiling-undefined-reference-to-strip-positional-formatting-solved/6260 "2014-05-26T12:38:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ThinkInvisible](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thinkinvisible/32/313_2.png) [@ThinkInvisible](https://discourse.cataclysmdda.org/u/ThinkInvisible)
#### Post date: [May 26, 2014, 12:38pm UTC](https://discourse.cataclysmdda.org/t/compiling-undefined-reference-to-strip-positional-formatting-solved/6260/1 "2014-05-26T12:38:14Z")

</div>

So I’ve been playing C:DDA for a couple months, and I thought it was a good idea to mess around with the source code. I spent most of yesterday encountering error after error while trying to get the game to compile (with Code::Blocks, currently); the current one I’m dealing with is:

“obj\Release\src\action.o:action.cpp … undefined reference to ‘strip\_positional\_formatting(char const\*)’”

This looks like it’s defined in translations.h, but if I add an #include to it, the error remains. I’m relatively new to C++, so I don’t know why this wouldn’t work. Does anyone have any idea what I’m doing wrong?

---

<div class="post-metadata">

### Author: ![ThinkInvisible](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thinkinvisible/32/313_2.png) [@ThinkInvisible](https://discourse.cataclysmdda.org/u/ThinkInvisible)
#### Post date: [May 26, 2014, 3:04pm UTC](https://discourse.cataclysmdda.org/t/compiling-undefined-reference-to-strip-positional-formatting-solved/6260/2 "2014-05-26T15:04:52Z")

</div>

Update: I just noticed the build options.  
Release -SDL causes the error mentioned above.  
Building Debug works perfectly fine, actually, but I’m trying to make a Tiles build so it doesn’t help me much.  
Building Release causes the error ‘undefined reference to libintl\_gettext’.  
Building with any -Localized option causes the error ‘ld.exe … cannot find -liconv’.  
Release or Debug -Tile Support builds the .o files correctly, but finishes with ‘error: 3rdparty\lib[several files]: no such file or directory’

Update again!: Got it working by going into ‘Build options…’, then Debug - Tile Support, then Linker settings. I updated the files there to link to these files in the ‘prepackaged version’ of the libraries on the wiki’s “How to compile” page:  
3rdparty\lib\libSDL.dll.a changed to 3rdparty\lib\SDL2.lib  
3rdparty\lib\libSDLmain.a changed to 3rdparty\lib\SDL2main.lib  
3rdparty\lib\x86\SDL\_image.lib changed to 3rdparty\lib\libSDL2\_image.dll.a  
3rdparty\lib\x86\SDL\_ttf.lib changed to 3rdparty\lib\libSDL2\_ttf.dll.a

Either the wiki (and/or codeblocks file) needs to be updated to reflect this, or I’m missing a file.
