OpenTTD Compiling Error LNK20**

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
Noltibus
Engineer
Engineer
Posts: 9
Joined: 11 Nov 2015 10:02

OpenTTD Compiling Error LNK20**

Post 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
Compile error
errorCompile.png (15.39 KiB) Viewed 375 times
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: OpenTTD Compiling Error LNK20**

Post 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
User avatar
Lukenwolf
Engineer
Engineer
Posts: 81
Joined: 14 Jun 2012 12:09
Location: Nordschleifistan, Germanyland

Re: OpenTTD Compiling Error LNK20**

Post 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 ?
Beer is not the answer. It's the question, and the answer is YES.
Noltibus
Engineer
Engineer
Posts: 9
Joined: 11 Nov 2015 10:02

Re: OpenTTD Compiling Error LNK20**

Post 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
User avatar
Sylf
President
President
Posts: 957
Joined: 23 Nov 2010 21:25
Location: ::1

Re: OpenTTD Compiling Error LNK20**

Post 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.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: OpenTTD Compiling Error LNK20**

Post 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
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 10 guests