Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.
Moderator: OpenTTD Developers
soundman
Engineer
Posts: 23 Joined: 25 Apr 2004 17:46
Post
by soundman » 31 Jan 2005 20:13
Svn version 1754
Problem is in station.h line 223 after revision 1721
Compiler is MSVC6
Code: Select all
Linker-Vorgang läuft...
roadveh_cmd.obj : error LNK2001: Nichtaufgeloestes externes Symbol _GetRoadStopType
ReleasePNG/ttd.exe : fatal error LNK1120: 1 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.
soundman
Engineer
Posts: 23 Joined: 25 Apr 2004 17:46
Post
by soundman » 03 Feb 2005 18:04
small bump.
Problem still exists in today's svn
Celestar
Director
Posts: 574 Joined: 02 Jul 2004 10:56
Contact:
Post
by Celestar » 03 Feb 2005 23:17
Yeah I've heard about it. I have NO idea why that crappy linker doesn't get the process done and I have no way to test it, as I have neither any Windows Installation nor an MSVC compiler. But I'll see what can be done. I know it works in .NET, only that I'll never use that
Celestar
MikeG
Engineer
Posts: 8 Joined: 26 Jan 2005 12:49
Post
by MikeG » 07 Feb 2005 22:43
inline defined functions should only exists in headers, so please use this diff to compile your version.
Attachments
win32.diff
(1007 Bytes) Downloaded 310 times
soundman
Engineer
Posts: 23 Joined: 25 Apr 2004 17:46
Post
by soundman » 07 Feb 2005 23:43
Openttd compiles correct with this patch, but it crashes at first launch. (Before the menu screen)
But thanks for the patch. It's one step in the right direction.
Crash log is attached.
Attachments
crash.log.txt
Crash log (5.85 KiB) Downloaded 368 times
soundman
Engineer
Posts: 23 Joined: 25 Apr 2004 17:46
Post
by soundman » 10 Feb 2005 18:59
Some debug info:
Attachments
Debug level 9 (-d 9) debug-level-9.png (31.48 KiB) Viewed 1491 times
Debug level 8 (-d 8) debug-level-8.png (33.15 KiB) Viewed 1497 times
bociusz
Traffic Manager
Posts: 131 Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:
Post
by bociusz » 13 Feb 2005 20:25
compile in "Release with PNG" mode with the /Ob0 flag
bociusz
Traffic Manager
Posts: 131 Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:
Post
by bociusz » 13 Feb 2005 22:29
Celestar fixed it in r1872
soundman
Engineer
Posts: 23 Joined: 25 Apr 2004 17:46
Post
by soundman » 14 Feb 2005 00:06
r1872 compiles as fine as before with your patch.
But stil the same crash.
orudge
Administrator
Posts: 25226 Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:
Post
by orudge » 14 Feb 2005 10:27
I had this crash too, ever since big maps was committed to SVN. I could run the Debug build though, so I'm not too sure why it doesn't work... I haven't looked into it in that much detail yet.
soundman
Engineer
Posts: 23 Joined: 25 Apr 2004 17:46
Post
by soundman » 14 Feb 2005 16:40
orudge wrote: I had this crash too, ever since big maps was committed to SVN. I could run the Debug build though, so I'm not too sure why it doesn't work... I haven't looked into it in that much detail yet.
Yeah, a Debug build seems to work.
However it seems to be a bit slow.
bociusz
Traffic Manager
Posts: 131 Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:
Post
by bociusz » 14 Feb 2005 19:26
soundman wrote: orudge wrote: I had this crash too, ever since big maps was committed to SVN. I could run the Debug build though, so I'm not too sure why it doesn't work... I haven't looked into it in that much detail yet.
Yeah, a Debug build seems to work.
However it seems to be a bit slow.
You can compile in Release mode but you'll still need the /Ob0 flag
soundman
Engineer
Posts: 23 Joined: 25 Apr 2004 17:46
Post
by soundman » 14 Feb 2005 22:45
bociusz wrote:
You can compile in Release mode but you'll still need the /Ob0 flag
I've manualy added it to ttd.dsp line 127 and 129, but openttd still crashes. When I try to add it in msv6, it disappears when I leave the the field.
bociusz
Traffic Manager
Posts: 131 Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:
Post
by bociusz » 15 Feb 2005 17:37
soundman wrote: bociusz wrote:
You can compile in Release mode but you'll still need the /Ob0 flag
I've manualy added it to ttd.dsp line 127 and 129, but openttd still crashes. When I try to add it in msv6, it disappears when I leave the the field.
Only add to line 129 with notepad or anything else (I put it between /Oa and /Ow). It affects only the release by png builds.
soundman
Engineer
Posts: 23 Joined: 25 Apr 2004 17:46
Post
by soundman » 15 Feb 2005 18:10
bociusz wrote: Only add to line 129 with notepad or anything else (I put it between /Oa and /Ow). It affects only the release by png builds.
Yeah, this works. Patch attached.
Attachments
ttd.dsp.patch.txt
Compile fix (workaround?) for msvc6 (1 KiB) Downloaded 332 times
bociusz
Traffic Manager
Posts: 131 Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:
Post
by bociusz » 15 Feb 2005 18:12
soundman wrote: bociusz wrote: Only add to line 129 with notepad or anything else (I put it between /Oa and /Ow). It affects only the release by png builds.
Yeah, this works. Patch attached.
Sorry, but it will be never added to SVN. Ask Darkvater why.
Users browsing this forum: No registered users and 7 guests