Revision 152 compiling error

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
User avatar
bociusz
Traffic Manager
Traffic Manager
Posts: 131
Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:

Revision 152 compiling error

Post by bociusz »

I can't compile the newest revision (152) with MS Visual C++. The problem is in win32.c:
S:\SYSTEM\OPENTTD\trunk\win32.c(110) : error C2065: 'VK_OEM_3' : undeclared identifier
S:\SYSTEM\OPENTTD\trunk\win32.c(110) : error C2099: initializer is not a constant

-- I have no problems with compiling r151 and older revisions --
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

It should be in your winuser.h -- USER procedure declarations, constant definitions and macros file. Really weird, since you ARE using Visual studio. Please look if you have that file or not.

VK_OEM_3 is 0xC0 btw.
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
User avatar
bociusz
Traffic Manager
Traffic Manager
Posts: 131
Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:

Post by bociusz »

Darkvater wrote:It should be in your winuser.h -- USER procedure declarations, constant definitions and macros file. Really weird, since you ARE using Visual studio. Please look if you have that file or not.
I haven't got the file
User avatar
bociusz
Traffic Manager
Traffic Manager
Posts: 131
Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:

Post by bociusz »

Thank you for fixing it in revision 154!
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

What OS are you running? I assume not Win2k/XP, cause it HAS TO BE THERE.
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
Torrasque
Engineer
Engineer
Posts: 94
Joined: 19 Aug 2004 13:33
Contact:

Post by Torrasque »

Hi since a few day they are no update on http://openttd.rulez.org/download/nightlybuilds/.
The laste nighty build is the revision 145 and the latest source is the revision 146.
I thinked this is a problem with svn because I cannot download anymore.
Is the a problème with me? Where can I find the revision 152? (I hope we speak about the same thing :))
Thank you

Sorry for my English
User avatar
bociusz
Traffic Manager
Traffic Manager
Posts: 131
Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:

Post by bociusz »

Darkvater: I've XP and MSVC 6.0
Anyway, it's working from r154

Torrasque: The SVN server had changed to svn://svn.openttd.com/trunk
See the topic: http://www.tt-forums.net/viewtopic.php?t=9736
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

Torrasque wrote:Hi since a few day they are no update on http://openttd.rulez.org/download/nightlybuilds/.
The laste nighty build is the revision 145 and the latest source is the revision 146.
WTF? You are right..Hmm, something's fishy. I'll look at the win-nightly-builder the next time I get to that PC, which will be on Tuesday.
bociusz wrote:Darkvater: I've XP and MSVC 6.0
Anyway, it's working from r154
Really strange. Winuser.h you should have!
Just look here: http://www.winnetmag.com/Article/Articl ... 22277.html
Winuser.h is part of the Microsoft Visual C++ (VC++) development environment. The tool defines several elements that developers use when they write programs to run on Windows platforms. The file is added, or included, in the project the developer is writing and therefore gives the developer access to the data in the file (similar to an include—.inc—file in an Active Server Pages—ASP—application). The VC++ development platform installs 0several such files. If you have access to a machine with the VC++ development program installed, you can open any of these files in Microsoft Notepad or in the development environment and view the contents.
You should go and find it on your system or install it, because this means your Windows SDK is incomplete!
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
User avatar
bociusz
Traffic Manager
Traffic Manager
Posts: 131
Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:

Post by bociusz »

I've find it in the MinGW and MSVC/inculde directory. Probably something is bad in my options.
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

bociusz wrote:I've find it in the MinGW and MSVC/inculde directory. Probably something is bad in my options.
Great, I've fixed something that was not even my mistake :roll:
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
Post Reply

Return to “OpenTTD Problems”

Who is online

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