Compile question

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
Muldy
Engineer
Engineer
Posts: 12
Joined: 16 Apr 2004 17:52
Location: Braga, Portugal

Compile question

Post by Muldy »

Hi!

i've downloaded source from the svn server, i am compiling it with VC6

and:
Linking...
saveload.obj : error LNK2001: unresolved external symbol @inflateInit_@12
saveload.obj : error LNK2001: unresolved external symbol @inflate@8
saveload.obj : error LNK2001: unresolved external symbol @inflateEnd@4
saveload.obj : error LNK2001: unresolved external symbol @deflateInit_@16
saveload.obj : error LNK2001: unresolved external symbol @deflate@8
saveload.obj : error LNK2001: unresolved external symbol @deflateEnd@4
ReleasePNG/ttd.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.
looks like there is some files missing ?! can't find inflate anywhere in source ...

Can someone help me?
Last edited by Muldy on 16 Apr 2004 17:58, edited 1 time in total.
User avatar
ludde
OpenTTD Developer
OpenTTD Developer
Posts: 35
Joined: 07 Mar 2004 09:28

Post by ludde »

you need zlib, you can find it in the openttd useful package.
http://sf.net/projects/openttd/
Post all your patches and feature requests here.
Muldy
Engineer
Engineer
Posts: 12
Joined: 16 Apr 2004 17:52
Location: Braga, Portugal

Post by Muldy »

thanks for the quick reply ;)

i saw last updates to code were minutes ago ;)

you're coding too :)
Muldy
Engineer
Engineer
Posts: 12
Joined: 16 Apr 2004 17:52
Location: Braga, Portugal

Post by Muldy »

hmm i think i need the dll too :|

zlibwapi.dll

not included in the useful zip.

tried the zlib http://www.winimage.com/zLibDll/

1.2.1 won't work (renamed zlib.dll to zlibwapi.dll)


Zlib is only needed for png support ... :)
soo i'll skip that :)
User avatar
orudge
Administrator
Administrator
Posts: 25137
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

It's also needed for the new zlib-compressed saved games in 0.3.0.
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Post by Korenn »

you can compile either with the static zlib or the dll.

both work fine.
Muldy
Engineer
Engineer
Posts: 12
Joined: 16 Apr 2004 17:52
Location: Braga, Portugal

Post by Muldy »

First time i looked at the code, i just had to raise the vehicles limit.

I doubled it, noticed that it was an array, so i assumed there would be no memory alloc problems...

But there are :)
Some sporadic crashes in train navigation code ...

.oO(there should be a develop topic)
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Post by Korenn »

those aren't memory alloc problems, some vehicle ids are reserved for special things and I think that's where it goes wrong =]
Muldy
Engineer
Engineer
Posts: 12
Joined: 16 Apr 2004 17:52
Location: Braga, Portugal

Post by Muldy »

You mean some indexes of the array are reserved for "special" vehicles?

Do we have these indexes? :)

Maybe makeing them depend on the array size ...
I'll check that in the morning :)

Time for my beauty sleep :)
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: Google [Bot] and 22 guests