Page 1 of 1
OpenTTD Compiling Error LNK20**
Posted: 23 Nov 2015 14:40
by Noltibus
Hello,
when I try to compile the latest OpenTTD version from the source code provided in the SVN I get the errors shown in the picture below. I use Visual Studio 15 Community edition and already did everything written here:
https://wiki.openttd.org/Compiling_on_W ... 2B%2B_2012.
If anyone has any Ideas please let me know!
Thanks in advance!!!

- Compile error
- errorCompile.png (15.39 KiB) Viewed 379 times
Re: OpenTTD Compiling Error LNK20**
Posted: 23 Nov 2015 15:19
by planetmaker
Have you installed the appropriate openttd-useful? I don't use windows, but iirc there's a newer version than linked by default from our website; might be that it's required for the 2015 version of MSVC.
new experimental:
https://www.openttd.org/en/download-openttd-useful/6.0
default:
https://www.openttd.org/en/download-openttd-useful https://www.openttd.org/en/download-openttd-useful/5.1
Re: OpenTTD Compiling Error LNK20**
Posted: 23 Nov 2015 15:50
by Lukenwolf
sprintf is a function from the Standard C Library. That looks rather odd, because if that one'd be missing you'd get tons of unresolved symbols. Is that overloaded somewhere or implicitely defined due to a missing #include ?
Re: OpenTTD Compiling Error LNK20**
Posted: 23 Nov 2015 16:32
by Noltibus
Thanks! The new packages helped!
Now when I try to executed the resulting openttd.exe it says: "No available language packs (invalid version?)"
Any ideas?
I compiled it in debug mode
EDIT: Got it, thanks guys
Re: OpenTTD Compiling Error LNK20**
Posted: 23 Nov 2015 17:23
by Sylf
I have a request:
while the memory is still fresh after successfully working through the problem, can you create the MSVC 2015 version of the wiki page?
https://wiki.openttd.org/?title=Compili ... ction=edit
Even if that means copying and pasting most of the contents from 2012 version and only updating the link to the updated version of openttd-useful, someone may still find the page helpful.
Re: OpenTTD Compiling Error LNK20**
Posted: 23 Nov 2015 20:59
by planetmaker
Sylf wrote:I have a request:
while the memory is still fresh after successfully working through the problem, can you create the MSVC 2015 version of the wiki page?
https://wiki.openttd.org/?title=Compili ... ction=edit
Even if that means copying and pasting most of the contents from 2012 version and only updating the link to the updated version of openttd-useful, someone may still find the page helpful.
I very much support that request