Trying to compile the SVN version I get the following error

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

Post Reply
Vidar
Engineer
Engineer
Posts: 40
Joined: 11 Apr 2005 15:17
Location: The Netherlands

Trying to compile the SVN version I get the following error

Post by Vidar »

Trying to compile the SVN version I get the following error:
roadveh_cmd.c(1622) : error C2065: 'UINT_MAX' : undeclared identifier
It probably has something to do with linking tot the limits.h file, but I have no idea what to do exactly.
It is the only error I get, could someone help me?
User avatar
webfreakz.nl
Director
Director
Posts: 627
Joined: 11 Aug 2005 08:22
Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
Contact:

Post by webfreakz.nl »

Haha, i had that error message too 8)

Open roadveh_cmd.c using an texteditor, switch line 4 with line 3. This is the result in the file:

Code: Select all

/* $Id: roadveh_cmd.c 4326 2006-04-08 14:18:39Z tron $ */

#include "stdafx.h"
#include <limits.h>
#include "openttd.h"
#include "debug.h"
It has already been reported to Celestar on IRC, and I hope he changes it soon on SVN :)
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
Vidar
Engineer
Engineer
Posts: 40
Joined: 11 Apr 2005 15:17
Location: The Netherlands

Post by Vidar »

thank you, thank you, thank you :lol:
User avatar
webfreakz.nl
Director
Director
Posts: 627
Joined: 11 Aug 2005 08:22
Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
Contact:

Post by webfreakz.nl »

Vidar wrote:thank you, thank you, thank you :lol:
Graag gedaan ;) [/dutch]

But you should thank KUDr for finding this solution, he helped me using VNC to find the problem and I was wondered why nobody had found this bug already ( it has been in SVN last week ) so I thought 'lets check the forum' and I saw your post :)
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 19 guests