# Is there a definitive fix for gettext errors?

**URL:** <https://discourse.cataclysmdda.org/t/is-there-a-definitive-fix-for-gettext-errors/2953>\
**Category:** The Garage\
**Created:** [September 7, 2013, 5:44am UTC](https://discourse.cataclysmdda.org/t/is-there-a-definitive-fix-for-gettext-errors/2953 "2013-09-07T05:44:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gatleos](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gatleos/32/1008_2.png) [@Gatleos](https://discourse.cataclysmdda.org/u/Gatleos)\
**Post date:** [September 7, 2013, 5:44am UTC](https://discourse.cataclysmdda.org/t/is-there-a-definitive-fix-for-gettext-errors/2953/1 "2013-09-07T05:44:22Z")

</div>

I’ve followed the guide on the wiki, and found a few previous threads around here asking about it, but no matter what I do I can’t get the latest (git) version to compile. I get a string of linker errors which, as far as I can tell, are gettext related.

`error LNK2001: unresolved external symbol "struct WINDOW * __cdecl newwin(int,int,int,int)" (?newwin@@YAPAUWINDOW@@HHHH@Z)	C:\DDA-gat\msvc100\veh_interact.obj	Cataclysm
error LNK2001: unresolved external symbol "int __cdecl wborder(struct WINDOW *,int,int,int,int,int,int,int,int)" (?wborder@@YAHPAUWINDOW@@HHHHHHHH@Z)	C:\DDA-gat\msvc100\npctalk.obj	Cataclysm
`

That’s just two of them, there are about 255. I’d really like to get a grasp of what’s causing this so I can write a more in-depth guide on how to fix it, but everything I’ve tried changes nothing. I’ve tried linking libintl.lib and intl.lib, nothing changed.

---

<div class="post-metadata">

**Author:** ![1942rob](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/1942rob/32/979_2.png) [@1942rob](https://discourse.cataclysmdda.org/u/1942rob)\
**Post date:** [September 7, 2013, 3:01pm UTC](https://discourse.cataclysmdda.org/t/is-there-a-definitive-fix-for-gettext-errors/2953/2 "2013-09-07T15:01:51Z")

</div>

What compiler / IDE are you using?

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [September 7, 2013, 3:39pm UTC](https://discourse.cataclysmdda.org/t/is-there-a-definitive-fix-for-gettext-errors/2953/3 "2013-09-07T15:39:30Z")

</div>

Looks like MSVC, I’m not sure that project file has been kept up to date with the i18n stuff.

---

<div class="post-metadata">

**Author:** ![1942rob](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/1942rob/32/979_2.png) [@1942rob](https://discourse.cataclysmdda.org/u/1942rob)\
**Post date:** [September 7, 2013, 4:16pm UTC](https://discourse.cataclysmdda.org/t/is-there-a-definitive-fix-for-gettext-errors/2953/4 "2013-09-07T16:16:31Z")

</div>

Yeah it haven’t been updated for months…

---

<div class="post-metadata">

**Author:** ![Gatleos](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gatleos/32/1008_2.png) [@Gatleos](https://discourse.cataclysmdda.org/u/Gatleos)\
**Post date:** [September 7, 2013, 10:23pm UTC](https://discourse.cataclysmdda.org/t/is-there-a-definitive-fix-for-gettext-errors/2953/5 "2013-09-07T22:23:44Z")

</div>

> [@Kevin Granade](#):
>
> Looks like MSVC, I’m not sure that project file has been kept up to date with the i18n stuff.

The only thing out of date about the msvc project is that it includes a file that’s since been deleted. I’ve tried cygwin (some of the gettext dependencies aren’t in the package list, so it doesn’t compile correctly) and mingw (even when I pass LOCALIZE=0 to the compiler, it still tries to find libintl files and generates a bunch of linker errors).

I would prefer to get it working in msvc though, since that’s the IDE I usually use.

---

<div class="post-metadata">

**Author:** ![Gatleos](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gatleos/32/1008_2.png) [@Gatleos](https://discourse.cataclysmdda.org/u/Gatleos)\
**Post date:** [September 8, 2013, 9:59pm UTC](https://discourse.cataclysmdda.org/t/is-there-a-definitive-fix-for-gettext-errors/2953/6 "2013-09-08T21:59:49Z")

</div>

Well, I’ve done everything. Put libintl dlls in the project directory, installed several different distributions of libintl/gettext, tried to compile using cygwin, mingw and visual studio (with library directories properly set for vs2012), used the makefile with the current build as well as [this one](http://smf.cataclysmdda.com/index.php?topic=2646.msg34922), and changed every compiler flag I could find in every makefile for every compiler. Nothing works.

Am I alone in this? Can anyone else compile the newest build on windows? I’ve been programming for years and never once seen such a stubborn linker error. It does not want to work.

---

<div class="post-metadata">

**Author:** ![1942rob](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/1942rob/32/979_2.png) [@1942rob](https://discourse.cataclysmdda.org/u/1942rob)\
**Post date:** [September 8, 2013, 10:29pm UTC](https://discourse.cataclysmdda.org/t/is-there-a-definitive-fix-for-gettext-errors/2953/7 "2013-09-08T22:29:04Z")

</div>

Ill download VS to see if I can figure something out.
