Won't compile in Visual C++ 2008. Only version available now.
by Wolf Dreamer · in RTS Starter Kit · 01/29/2008 (8:25 am) · 7 replies
Http://www.microsoft.com/express/download/default.aspx
I Googled around, checked out the Microsoft page for Visual C++ 2005, and found you can no longer download it. They only give you 2008.
I followed the instructions at http://tdn.garagegames.com/wiki/RTS/Update_docs/WinRTSUpdate152&needLogin=1 but alas could not recompile the engine with Microsoft Visual C++ 2008. Thousands of errors.
The search feature for this forum shows 468 results for "visual C++ 2005", none of them stood out as anything I needed. Can't just search through certain forums, you have to search all of them. Strange. Most places let you just pick which forum rooms to include in your search.
I Googled around, checked out the Microsoft page for Visual C++ 2005, and found you can no longer download it. They only give you 2008.
I followed the instructions at http://tdn.garagegames.com/wiki/RTS/Update_docs/WinRTSUpdate152&needLogin=1 but alas could not recompile the engine with Microsoft Visual C++ 2008. Thousands of errors.
The search feature for this forum shows 468 results for "visual C++ 2005", none of them stood out as anything I needed. Can't just search through certain forums, you have to search all of them. Strange. Most places let you just pick which forum rooms to include in your search.
About the author
Recent Threads
#2
Whoops
2>------ Build started: Project: zlib, Configuration: Debug_FastRelight Win32 ------
1>Compiling...
2>Compiling...
1>sgD3DCompatibility.cc
2>infback.c
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(86) : error C2061: syntax error : identifier 'gz_headerp'
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(102) : error C2143: syntax error : missing '{' before ''
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(102) : error C2059: syntax error : ''
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(103) : error C2143: syntax error : missing '{' before ''
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(103) : error C2059: syntax error : ''
1>c:\torque\tge_1_5_2\lib\msplatformsdk\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(111) : error C2143: syntax error : missing '{' before '*'
1>c:\torque\tge_1_5_2\lib\msplatformsdk\include\winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(114) : error C2061: syntax error : identifier 'codes'
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(114) : error C2059: syntax error : ';'
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(114) : error C2337: 'ENOUGH' : attribute not found
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(114) : error C2059: syntax error : ';'
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(115) : error C2059: syntax error : '}'
2>c:\torque\tge_1_5_2\lib\zlib\inffast.h(17) : error C2143: syntax error : missing ')' before '*'
2>c:\torque\tge_1_5_2\lib\zlib\inffast.h(17) : error C2081: 'inflate_blocks_statef' : name in formal parameter list illegal
1>c:\torque\tge_1_5_2\lib\msplatformsdk\include\winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer'
2>c:\torque\tge_1_5_2\lib\zlib\inffast.h(17) : error C2143: syntax error : missing '{' before '*'
2>c:\torque\tge_1_5_2\lib\zlib\inffast.h(17) : error C2059: syntax error : ','
1>c:\torque\tge_1_5_2\lib\msplatformsdk\include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\torque\tge_1_5_2\lib\msplatformsdk\include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\torque\tge_1_5_2\lib\zlib\inffast.h(17) : error C2059: syntax error : ')'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(50) : error C2027: use of undefined type 'inflate_state'
2> c:\torque\tge_1_5_2\lib\zlib\inflate.h(77) : see declaration of 'inflate_state'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(54) : error C2037: left of 'dmax' specifies undefined struct/union 'inflate_state'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(55) : error C2037: left of 'wbits' specifies undefined struct/union 'inflate_state'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(56) : error C2037: left of 'wsize' specifies undefined struct/union 'inflate_state'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(57) : error C2037: left of 'window' specifies undefined struct/union 'inflate_state'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(58) : error C2037: left of 'write' specifies undefined struct/union 'inflate_state'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(59) : error C2037: left of 'whave' specifies undefined struct/union 'inflate_state'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(110) : error C2037: left of 'lencode' specifies undefined struct/union 'inflate_state'
4>Torque Demo - 7744 error(s), 7 warning(s)
========== Build: 0 succeeded, 4 failed, 3 up-to-date, 0 skipped ==========
01/29/2008 (8:59 am)
I'm using the free Visual C++ 2008 express. And this is what I get:Whoops
Quote:1>------ Build started: Project: opengl2d3d, Configuration: Debug_FastRelight Win32 ------
Maximum length 8192 characters (current length 1022011)
2>------ Build started: Project: zlib, Configuration: Debug_FastRelight Win32 ------
1>Compiling...
2>Compiling...
1>sgD3DCompatibility.cc
2>infback.c
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(86) : error C2061: syntax error : identifier 'gz_headerp'
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(102) : error C2143: syntax error : missing '{' before '
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(102) : error C2059: syntax error : '
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(103) : error C2143: syntax error : missing '{' before '
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(103) : error C2059: syntax error : '
1>c:\torque\tge_1_5_2\lib\msplatformsdk\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(111) : error C2143: syntax error : missing '{' before '*'
1>c:\torque\tge_1_5_2\lib\msplatformsdk\include\winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(114) : error C2061: syntax error : identifier 'codes'
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(114) : error C2059: syntax error : ';'
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(114) : error C2337: 'ENOUGH' : attribute not found
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(114) : error C2059: syntax error : ';'
2>c:\torque\tge_1_5_2\lib\zlib\inflate.h(115) : error C2059: syntax error : '}'
2>c:\torque\tge_1_5_2\lib\zlib\inffast.h(17) : error C2143: syntax error : missing ')' before '*'
2>c:\torque\tge_1_5_2\lib\zlib\inffast.h(17) : error C2081: 'inflate_blocks_statef' : name in formal parameter list illegal
1>c:\torque\tge_1_5_2\lib\msplatformsdk\include\winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer'
2>c:\torque\tge_1_5_2\lib\zlib\inffast.h(17) : error C2143: syntax error : missing '{' before '*'
2>c:\torque\tge_1_5_2\lib\zlib\inffast.h(17) : error C2059: syntax error : ','
1>c:\torque\tge_1_5_2\lib\msplatformsdk\include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\torque\tge_1_5_2\lib\msplatformsdk\include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\torque\tge_1_5_2\lib\zlib\inffast.h(17) : error C2059: syntax error : ')'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(50) : error C2027: use of undefined type 'inflate_state'
2> c:\torque\tge_1_5_2\lib\zlib\inflate.h(77) : see declaration of 'inflate_state'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(54) : error C2037: left of 'dmax' specifies undefined struct/union 'inflate_state'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(55) : error C2037: left of 'wbits' specifies undefined struct/union 'inflate_state'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(56) : error C2037: left of 'wsize' specifies undefined struct/union 'inflate_state'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(57) : error C2037: left of 'window' specifies undefined struct/union 'inflate_state'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(58) : error C2037: left of 'write' specifies undefined struct/union 'inflate_state'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(59) : error C2037: left of 'whave' specifies undefined struct/union 'inflate_state'
2>c:\torque\tge_1_5_2\lib\zlib\infback.c(110) : error C2037: left of 'lencode' specifies undefined struct/union 'inflate_state'
4>Torque Demo - 7744 error(s), 7 warning(s)
========== Build: 0 succeeded, 4 failed, 3 up-to-date, 0 skipped ==========
#3
4>c:\torque\tge_1_5_2\engine\console\astalloc.cc(46) : error C2143: syntax error : missing ';' before '*'
4>c:\torque\tge_1_5_2\engine\console\astalloc.cc(46) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
4>c:\torque\tge_1_5_2\engine\console\astalloc.cc(46) : error C2825: 'IfStmtNode': must be a class or namespace when followed by '::'
4>c:\torque\tge_1_5_2\engine\console\astalloc.cc(46) : error C2143: syntax error : missing ';' before 'alloc'
4>c:\torque\tge_1_5_2\engine\console\astalloc.cc(46) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
4>c:\torque\tge_1_5_2\engine\console\astalloc.cc(46) : error C2040: 'IfStmtNode' : 'int *' differs in levels of indirection from 'int'
I don't really need to compile it though, since the patches give me the latest version, and I got the World Domination Mod working without any problems. I can do everything I need in Torque script.
01/29/2008 (9:02 am)
I see mostly syntax errors.4>c:\torque\tge_1_5_2\engine\console\astalloc.cc(46) : error C2143: syntax error : missing ';' before '*'
4>c:\torque\tge_1_5_2\engine\console\astalloc.cc(46) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
4>c:\torque\tge_1_5_2\engine\console\astalloc.cc(46) : error C2825: 'IfStmtNode': must be a class or namespace when followed by '::'
4>c:\torque\tge_1_5_2\engine\console\astalloc.cc(46) : error C2143: syntax error : missing ';' before 'alloc'
4>c:\torque\tge_1_5_2\engine\console\astalloc.cc(46) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
4>c:\torque\tge_1_5_2\engine\console\astalloc.cc(46) : error C2040: 'IfStmtNode' : 'int *' differs in levels of indirection from 'int'
I don't really need to compile it though, since the patches give me the latest version, and I got the World Domination Mod working without any problems. I can do everything I need in Torque script.
#4
01/29/2008 (2:43 pm)
Wolf, are you sure you did all the steps mentioned on the TDN article? Im using VC++ Express 2008, with some minor errors, but I can compile it.
#5
01/30/2008 (7:01 am)
You can download 2005 just fine. Go to the express site and click the "Previous version" link on the right side of the main menu. Then download the version you need. I just checked and it works.
#6
Now I see it. Cool.
I'm hoping I'll be able to do everything without ever having to use C++ though.
Novack, are you using Vista? Did you load the 2005 code into 2008, and have it convert over without syntax errors and whatnot?
01/30/2008 (9:39 am)
Http://www.microsoft.com/express/2005/Now I see it. Cool.
I'm hoping I'll be able to do everything without ever having to use C++ though.
Novack, are you using Vista? Did you load the 2005 code into 2008, and have it convert over without syntax errors and whatnot?
#7
01/30/2008 (10:09 am)
Im not using Vista, but yes, I loaded the 2005 .sln file into VC++ 2008, and had it converted over without errors.
Associate Chip Lambert
Crusader Games