Game Development Community

Visual Studio 2009 Compile Error

by Alexandre Ribeiro de Sa · in Torque Game Builder · 04/09/2009 (12:37 pm) · 3 replies

Hi, I'm with some problems here in TGB with VC++2009:
------ Build started: Project: TGBGame, Configuration: Release Win32 ------
Compiling...
popupMenuWin32.cc
....sourceplatformWin32menuspopupMenuWin32.cc(216) : error C2065: 'MIIM_STRING' : undeclared identifier
....sourceplatformWin32menuspopupMenuWin32.cc(293) : error C2065: 'MIIM_STRING' : undeclared identifier
winOGLVideo.cc
....sourceplatformWin32winOGLVideo.cc(858) : error C2065: 'AW_BLEND' : undeclared identifier
....sourceplatformWin32winOGLVideo.cc(858) : error C3861: 'AnimateWindow': identifier not found
cardProfile.cpp
....sourceplatformWin32cardProfile.cpp(14) : error C3861: 'EnumDisplayDevices': identifier not found
....sourceplatformWin32cardProfile.cpp(14) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Generating Code...
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 9.00.30729
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '....LinkRelease.Win32TGBGamecardProfile.sbr': No such file or directory
Build log was saved at "file://c:Program FilesGarageGamesTorqueGameBuilder-1.7.4engineLinkRelease.Win32TGBGameBuildLog.htm"
TGBGame - 7 error(s), 0 warning(s)
------ Build started: Project: TorqueGameBuilder, Configuration: Release Win32 ------
Compiling...
popupMenuWin32.cc
....sourceplatformWin32menuspopupMenuWin32.cc(216) : error C2065: 'MIIM_STRING' : undeclared identifier
....sourceplatformWin32menuspopupMenuWin32.cc(293) : error C2065: 'MIIM_STRING' : undeclared identifier
winOGLVideo.cc
....sourceplatformWin32winOGLVideo.cc(858) : error C2065: 'AW_BLEND' : undeclared identifier
....sourceplatformWin32winOGLVideo.cc(858) : error C3861: 'AnimateWindow': identifier not found
cardProfile.cpp
....sourceplatformWin32cardProfile.cpp(14) : error C3861: 'EnumDisplayDevices': identifier not found
....sourceplatformWin32cardProfile.cpp(14) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Generating Code...
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 9.00.30729
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '....LinkRelease.Win32TorqueGameBuildercardProfile.sbr': No such file or directory
Build log was saved at "file://c:Program FilesGarageGamesTorqueGameBuilder-1.7.4engineLinkRelease.Win32TorqueGameBuilderBuildLog.htm"
TorqueGameBuilder - 7 error(s), 0 warning(s)
========== Build: 0 succeeded, 2 failed, 6 up-to-date, 0 skipped ==========

What can I do to solve this? I'm was looking for a solution for two weeks!

Thanks!

#1
04/09/2009 (5:26 pm)
Solved, download the microsoft platform sdk...
#2
11/22/2009 (4:52 am)
I'm having the exact same problem. Let me givi the microsoft platform SDK a shot. I'll post the results shortly
#3
11/22/2009 (8:17 am)
If after installing Platform SDK you still have this issue, go into "Source Files\platformWin32\platformWin32.h" and change the definition of _WIN32_WINNT from 0x0400 to 0x0501 (to target WinXP and above).

There seems to be some code that specifically deals with Windows menus in Win2K and above, and that code conflicts with the default target of WinNT. I'm not sure why TGB's source ships with WinNT as the default target, as that seems very outdated in the WinXP/Win7 era.

As a side note, I've been able to successfully compile targeting Win2K (0x0500), but I haven't tested the results on a Win2K machine. I don't really have a need or desire to target a release for Win2K though.