Cannot compile
by Phillip O'Shea · in Torque Game Builder · 01/14/2008 (2:40 am) · 15 replies
I recently updated to Visual C++ 2008 and now when I try to compile TGB I get the following:
Do I need to download an updated version of the Windows SDK? Thats the only thing I can think of.
7>popupMenuWin32.cc 7>c:\program files\garagegames\torquegamebuilder-1.5.1\engine\source\platformwin32\menus\popupmenuwin32.cc(216) : error C2065: 'MIIM_STRING' : undeclared identifier 7>c:\program files\garagegames\torquegamebuilder-1.5.1\engine\source\platformwin32\menus\popupmenuwin32.cc(293) : error C2065: 'MIIM_STRING' : undeclared identifier 7>winOGLVideo.cc 7>c:\program files\garagegames\torquegamebuilder-1.5.1\engine\source\platformwin32\winoglvideo.cc(858) : error C2065: 'AW_BLEND' : undeclared identifier 7>c:\program files\garagegames\torquegamebuilder-1.5.1\engine\source\platformwin32\winoglvideo.cc(858) : error C3861: 'AnimateWindow': identifier not found
Do I need to download an updated version of the Windows SDK? Thats the only thing I can think of.
About the author
Head of Violent Tulip, a small independent software development company working in Wollongong, Australia. Go to http://www.violent-tulip.com/ to see our latest offerings.
#2
02/14/2008 (4:40 pm)
You know, somebody posted elsewhere that it works with VC++ 2005. I'm just going to revert back to 2005 for now.
#3
02/14/2008 (9:39 pm)
I'm still getting those same errors even with the VC 2005. Hmm...
#4
02/14/2008 (10:00 pm)
I'm still getting those same errors even with the VC 2005. Hmm...
#5
02/15/2008 (6:38 am)
Tried adding Winuser.h to the top of popupmenuwin32.cc and winoglvideocc ?
#6
tdn.garagegames.com/wiki/T2D/TGBTutorials/WindowsSystemSetup
02/15/2008 (7:47 pm)
Follow the setup instructions from this page:tdn.garagegames.com/wiki/T2D/TGBTutorials/WindowsSystemSetup
#7
Thanks, I'm gonna try that.
@Phillip:
I appreciate that link. I've certainly gone through that. I just find it confusing that TGB won't compile because I can compile TGE+AFX.
Odd, eh?
02/15/2008 (8:21 pm)
@Joe:Thanks, I'm gonna try that.
@Phillip:
I appreciate that link. I've certainly gone through that. I just find it confusing that TGB won't compile because I can compile TGE+AFX.
Odd, eh?
#8
02/19/2008 (7:49 am)
Are you doing a clean compile? Sometimes things get munged and you need to clean up and dangling references.
#9
Thanks.
02/25/2008 (6:20 pm)
Has anyone found a solution to this problem? I am experiencing the same issue. TGB 1.7 compiles with errors with Visual Studio 2008 Team edition. TGB 1.6 builds with no problems.Thanks.
#10
02/28/2008 (9:20 am)
Right-click and build Glu2d3d and opengl2d3d manually and then build and you'll have the link files there. Not sure why they aren't automatically added to the link dependencies, though.
#11
VS 2008 has its own thinned down version of the PSDK, but TGB doesn't like it. I downloaded the normal SDK from the MS website and then followed the instructions on the link above and it works well.
02/28/2008 (12:43 pm)
Thats not the problem David. I think it is the PSDK.VS 2008 has its own thinned down version of the PSDK, but TGB doesn't like it. I downloaded the normal SDK from the MS website and then followed the instructions on the link above and it works well.
#12
02/28/2008 (2:05 pm)
David, I tried your suggestion but that didn't solve the problem. I am going to try Philip's and see what happens. thanks guys.
#13
I should read before posting.
02/28/2008 (6:57 pm)
Ah. I was using 2005 Professional with the full platform SDK.I should read before posting.
#14
02/28/2008 (7:43 pm)
No worries David. Philip, could you please post a link to the SDK you downloaded?
#15
03/26/2008 (7:33 pm)
Installing the Microsoft Windows XP platform SDK fixed the problem. Thanks for your help.
Torque Owner C. N.