Page 1 of 1
Revision 152 compiling error
Posted: 03 Sep 2004 19:55
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 --
Posted: 03 Sep 2004 20:04
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.
Posted: 03 Sep 2004 20:12
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
Posted: 03 Sep 2004 20:24
by bociusz
Thank you for fixing it in revision 154!
Posted: 03 Sep 2004 21:09
by Darkvater
What OS are you running? I assume not Win2k/XP, cause it HAS TO BE THERE.
Posted: 04 Sep 2004 01:04
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
Posted: 04 Sep 2004 09:22
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
Posted: 04 Sep 2004 11:29
by Darkvater
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!
Posted: 04 Sep 2004 11:40
by bociusz
I've find it in the MinGW and MSVC/inculde directory. Probably something is bad in my options.
Posted: 04 Sep 2004 11:45
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
