Teapot Wars on Windows 8?

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Teapot Wars on Windows 8?

      Has anyone successfully compiled and run the example source code on a Windows 8 machine?
      Mr.Mike
      Author, Programmer, Brewer, Patriot
    • RE: Teapot Wars on Windows 8?

      I have VS2012 on Windows 8

      first 100 of 404 errors

      Source Code

      1. Error 1 error C2039: 'shared_ptr' : is not a member of 'std::tr1' d:\projets\gcc-4th\source\gcc4\msvc\gamecodestd.h 79 1 GameCode4_2010
      2. Error 2 error C2873: 'shared_ptr' : symbol cannot be used in a using-declaration d:\projets\gcc-4th\source\gcc4\msvc\gamecodestd.h 79 1 GameCode4_2010
      3. Error 3 error C2039: 'weak_ptr' : is not a member of 'std::tr1' d:\projets\gcc-4th\source\gcc4\msvc\gamecodestd.h 80 1 GameCode4_2010
      4. Error 4 error C2873: 'weak_ptr' : symbol cannot be used in a using-declaration d:\projets\gcc-4th\source\gcc4\msvc\gamecodestd.h 80 1 GameCode4_2010
      5. Error 5 error C2039: 'static_pointer_cast' : is not a member of 'std::tr1' d:\projets\gcc-4th\source\gcc4\msvc\gamecodestd.h 81 1 GameCode4_2010
      6. Error 6 error C2873: 'static_pointer_cast' : symbol cannot be used in a using-declaration d:\projets\gcc-4th\source\gcc4\msvc\gamecodestd.h 81 1 GameCode4_2010
      7. Error 7 error C2039: 'dynamic_pointer_cast' : is not a member of 'std::tr1' d:\projets\gcc-4th\source\gcc4\msvc\gamecodestd.h 82 1 GameCode4_2010
      8. Error 8 error C2873: 'dynamic_pointer_cast' : symbol cannot be used in a using-declaration d:\projets\gcc-4th\source\gcc4\msvc\gamecodestd.h 82 1 GameCode4_2010
      9. Error 37 error C2143: syntax error : missing ';' before '<' d:\projets\gcc-4th\source\gcc4\utilities\templates.h 85 1 GameCode4_2010
      10. Error 38 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projets\gcc-4th\source\gcc4\utilities\templates.h 85 1 GameCode4_2010
      11. Error 39 error C2988: unrecognizable template declaration/definition d:\projets\gcc-4th\source\gcc4\utilities\templates.h 85 1 GameCode4_2010
      12. Error 40 error C2059: syntax error : '<' d:\projets\gcc-4th\source\gcc4\utilities\templates.h 85 1 GameCode4_2010
      13. Error 41 error C2061: syntax error : identifier 'optional_empty' d:\projets\gcc-4th\source\gcc4\utilities\templates.h 150 1 GameCode4_2010
      14. Error 42 error C2535: 'optional<T>::optional(void)' : member function already defined or declared d:\projets\gcc-4th\source\gcc4\utilities\templates.h 150 1 GameCode4_2010
      15. Error 43 error C2143: syntax error : missing ';' before '<' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 50 1 GameCode4_2010
      16. Error 44 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 50 1 GameCode4_2010
      17. Error 45 error C2378: 'shared_ptr' : redefinition; symbol cannot be overloaded with a typedef d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 50 1 GameCode4_2010
      18. Error 46 error C2143: syntax error : missing ';' before '<' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 51 1 GameCode4_2010
      19. Error 47 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 51 1 GameCode4_2010
      20. Error 48 error C2143: syntax error : missing ';' before '<' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 52 1 GameCode4_2010
      21. Error 49 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 52 1 GameCode4_2010
      22. Error 50 error C2378: 'shared_ptr' : redefinition; symbol cannot be overloaded with a typedef d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 52 1 GameCode4_2010
      23. Error 52 error C2143: syntax error : missing ';' before '<' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 53 1 GameCode4_2010
      24. Error 53 error C2059: syntax error : '<' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 53 1 GameCode4_2010
      25. Error 54 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 58 1 GameCode4_2010
      26. Error 55 error C2143: syntax error : missing ',' before '<' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 58 1 GameCode4_2010
      27. Error 56 error C2146: syntax error : missing ';' before identifier 'VGetActor' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 90 1 GameCode4_2010
      28. Error 57 error C2433: 'IGameLogic::WeakActorPtr' : 'virtual' not permitted on data declarations d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 90 1 GameCode4_2010
      29. Error 58 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 90 1 GameCode4_2010
      30. Error 60 error C2146: syntax error : missing ';' before identifier 'VCreateActor' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 91 1 GameCode4_2010
      31. Error 61 error C2433: 'IGameLogic::StrongActorPtr' : 'virtual' not permitted on data declarations d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 91 1 GameCode4_2010
      32. Error 62 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 91 1 GameCode4_2010
      33. Error 64 error C2143: syntax error : missing ';' before '<' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 98 1 GameCode4_2010
      34. Error 65 error C2433: 'IGameLogic::shared_ptr' : 'virtual' not permitted on data declarations d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 98 1 GameCode4_2010
      35. Error 66 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 98 1 GameCode4_2010
      36. Error 67 error C2238: unexpected token(s) preceding ';' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 98 1 GameCode4_2010
      37. Error 68 error C2253: 'IGameLogic::VGetActor' : pure specifier or abstract override specifier only allowed on virtual function d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 90 1 GameCode4_2010
      38. Error 69 error C2253: 'IGameLogic::VCreateActor' : pure specifier or abstract override specifier only allowed on virtual function d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 91 1 GameCode4_2010
      39. Error 70 error C2275: 'IScreenElement' : illegal use of this type as an expression d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 131 1 GameCode4_2010
      40. Error 71 error C2974: 'std::list' : invalid template argument for '_Ty', type expected d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 131 1 GameCode4_2010
      41. Error 73 error C2143: syntax error : missing ';' before '>' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 131 1 GameCode4_2010
      42. Error 74 error C2059: syntax error : '>' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 131 1 GameCode4_2010
      43. Error 75 error C2275: 'IGameView' : illegal use of this type as an expression d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 132 1 GameCode4_2010
      44. Error 76 error C2974: 'std::list' : invalid template argument for '_Ty', type expected d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 132 1 GameCode4_2010
      45. Error 78 error C2143: syntax error : missing ';' before '>' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 132 1 GameCode4_2010
      46. Error 79 error C2059: syntax error : '>' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 132 1 GameCode4_2010
      47. Error 80 error C2061: syntax error : identifier 'shared_ptr' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 204 1 GameCode4_2010
      48. Error 81 error C2275: 'LightNode' : illegal use of this type as an expression d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 247 1 GameCode4_2010
      49. Error 82 error C2974: 'std::list' : invalid template argument for '_Ty', type expected d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 247 1 GameCode4_2010
      50. Error 84 error C2143: syntax error : missing ';' before '>' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 247 1 GameCode4_2010
      51. Error 85 error C2059: syntax error : '>' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 247 1 GameCode4_2010
      52. Error 86 error C2061: syntax error : identifier 'Lights' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 270 1 GameCode4_2010
      53. Error 87 error C2143: syntax error : missing ';' before '<' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 274 1 GameCode4_2010
      54. Error 88 error C2433: 'IRenderer::shared_ptr' : 'virtual' not permitted on data declarations d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 274 1 GameCode4_2010
      55. Error 89 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 274 1 GameCode4_2010
      56. Error 90 error C2238: unexpected token(s) preceding ';' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 274 1 GameCode4_2010
      57. Error 91 error C2143: syntax error : missing ';' before '<' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 275 1 GameCode4_2010
      58. Error 92 error C2433: 'IRenderer::shared_ptr' : 'virtual' not permitted on data declarations d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 275 1 GameCode4_2010
      59. Error 93 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 275 1 GameCode4_2010
      60. Error 94 error C2238: unexpected token(s) preceding ';' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 275 1 GameCode4_2010
      61. Error 95 error C2061: syntax error : identifier 'shared_ptr' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 301 1 GameCode4_2010
      62. Error 96 error C2061: syntax error : identifier 'WeakActorPtr' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 328 1 GameCode4_2010
      63. Error 97 error C2061: syntax error : identifier 'WeakActorPtr' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 329 1 GameCode4_2010
      64. Error 98 error C2061: syntax error : identifier 'WeakActorPtr' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 330 1 GameCode4_2010
      65. Error 99 error C2061: syntax error : identifier 'WeakActorPtr' d:\projets\gcc-4th\source\gcc4\gamecode4\interfaces.h 337 1 GameCode4_2010
      66. Error 100 error C2143: syntax error : missing ';' before '<' d:\projets\gcc-4th\source\gcc4\mainloop\process.h 41 1 GameCode4_2010
      Display All
      MCSE/MCDBA/Programmer C,C++,PERL,PHP

      The post was edited 2 times, last by Slayerizer ().

    • Those are actually just compiler specific errors. VS 2012 updated to the C++11 standard, and so the shared_ptr, weak_ptr, etc where moved from std::tr1 to the std:: namespace.
      I got the same errors when attempting to use vs2012 in windows 7.

      MS also moved the DirectX SDK into the Windows 8 SDK. Although the new DirectX SDK is significantly different from the June 2010 SDK, so you'll want to get the June 2010 pack separately.

      I would assume that you may need to get the Windows 7 SDK for it to work as well.
    • Originally posted by Kl1X
      Those are actually just compiler specific errors. VS 2012 updated to the C++11 standard, and so the shared_ptr, weak_ptr, etc where moved from std::tr1 to the std:: namespace.
      I got the same errors when attempting to use vs2012 in windows 7.

      MS also moved the DirectX SDK into the Windows 8 SDK. Although the new DirectX SDK is significantly different from the June 2010 SDK, so you'll want to get the June 2010 pack separately.

      I would assume that you may need to get the Windows 7 SDK for it to work as well.


      I already had the june sdk and it works fine.. I followed your guideline from the other thread..

      It seems it would compile if I manage to re-compile the 3rd party extensions, I only have linker errors for now.
      MCSE/MCDBA/Programmer C,C++,PERL,PHP
    • I don't have Visual Studio 2012 and I don't think Mike does either. If someone can get a working copy of the 3rd Party Libs built for Visual Studio 2012, we could probably just upload the new zip along side the current one. The copy libs script should allow people to use those if they're running 2012.

      -Rez
    • Originally posted by rezination
      I don't have Visual Studio 2012 and I don't think Mike does either. If someone can get a working copy of the 3rd Party Libs built for Visual Studio 2012, we could probably just upload the new zip along side the current one. The copy libs script should allow people to use those if they're running 2012.

      -Rez

      yup, investigating that as we speak!
      MCSE/MCDBA/Programmer C,C++,PERL,PHP
    • got it finally working.. program run well under windows 8... I needed to update from Bullet 2.79 to 2.80 (2.81 doesn't work with GCC4, they changed something). VS2012 is also complaining about 2.79 on 16bit alignment. They released another bullet version to fix that (which is 2.80 and up). I tried the latest 2.79 from their web site and it was not working . So I downloaded and built the library then I copied the source to the 3rd party folder and updated the project file (Source\GCC4\3rdParty\bullet-2.80).

      bullet 2.80

      my debug vs2012 libs are here
      MCSE/MCDBA/Programmer C,C++,PERL,PHP

      The post was edited 3 times, last by Slayerizer ().

    • RE: working!

      Originally posted by Slayerizer
      got it finally working.. program run well under windows 8... I needed to update from Bullet 2.79 to 2.80 (2.81 doesn't work with GCC4, they changed something). VS2012 is also complaining about 2.79 on 16bit alignment. They released another bullet version to fix that (which is 2.80 and up). I tried the latest 2.79 from their web site and it was not working . So I downloaded and built the library then I copied the source to the 3rd party folder and updated the project file (Source\GCC4\3rdParty\bullet-2.80).

      bullet 2.80

      my debug vs2012 libs are here


      I'll post it up on google code when I get a free moment, thanks for investigating this!

      -Rez
    • I managed to get teapot wars to run and show the menu screen although VS threw a breakpoint when releasing the directx device in dxut.cpp.

      Thanks for posting the relevant Win32 libs, really helped me out, as well as the information about bullet.

      I will try to test it more later and see whether I get any runtime errors during gameplay.
    • RE: working!

      Originally posted by rezination
      Originally posted by Slayerizer
      got it finally working.. program run well under windows 8... I needed to update from Bullet 2.79 to 2.80 (2.81 doesn't work with GCC4, they changed something). VS2012 is also complaining about 2.79 on 16bit alignment. They released another bullet version to fix that (which is 2.80 and up). I tried the latest 2.79 from their web site and it was not working . So I downloaded and built the library then I copied the source to the 3rd party folder and updated the project file (Source\GCC4\3rdParty\bullet-2.80).

      bullet 2.80

      my debug vs2012 libs are here


      I'll post it up on google code when I get a free moment, thanks for investigating this!

      -Rez


      Dear Rez;

      I can't find what is needed for 2012. All I found was references visual studio 2010 with a March 2012 time.

      code.google.com/p/gamecode4/do…rdParty_v4.0.zip&can=2&q=

      Is there another location for visual 2012?

      Thanks for the info of game coding in Mike and you book. Very real and informative of environment and expectations of the industry.
      -hoffmant11
    • Right! I completely forgot to upload it. I have done so now, so you can find it here:
      code.google.com/p/gamecode4/downloads/list

      Keep in mind that this was done by Slayerizer, so hopefully he'll weigh in if you have any issues. Neither Mike or I use Visual Studio 2012 or Windows 8, so we aren't able to test it.

      -Rez
    • Get response! Thanks.

      I am getting the components together to build a computer. I have to consider the software.

      Would anybody suggest sticking with vs 2010/win 7 combo or step it up to 2012/win 8?

      I am considering getting win 2010/win 7 since:
      1.) Assume older op software is cheaper to buy. I can get 2010 as a student version.
      2.) Once teapot wars (as it seems to be a hurdle to get past in my development) works, then play with 2012/win 8. Perhaps in a couple of months the price of win 8 would drop.
      3.) win 8 sucks?? I barely touched it, and it looks awful if not in classic view.


      Any suggestions would be great.
      -hoffmant11
    • Well, Windows 8 is just generally terrible. As far as I know, most of the industry is trying to ignore it long enough for the next thing to come out.

      -Rez
    • I really enjoy using vs2012. It provides much better intellisense in C++ projects, among other things.
      I would suggest trying out the express editions of vs2010 and vs2012, and see which one you like better.

      While I would suggest staying away from Windows 8 (assuming you can still even buy Windows 7), your visual studio client shouldn't depend on what OS you are running. I currently run vs2012 on Windows 7 and have run vs2010 on the Windows 8 RC.
      From a normal users perspective Windows 8 isn't terrible, but for a developer it presents a lot of hurdles that are just plain annoying.
    • Awesome. I'll stick with win 7. Keep it simple. It's important to figure out what the industry is up to since I'm trying to join it. I have no idea how hard win 8 is for development (I'm still trying to roll on my stomach and crawl before I can run) so I'm not going to think about it.

      K|1X brought up a good point about playing with both 2010 and 2012 express versions. Again, keep it simple and play later.

      Thanks for all the info!
      -hoffmant11
    • What is wrong with Windows 8? I've been pretty happy with it for the past three months or so, though I put it on a brand new computer and I haven't done much other than program and game. Unless you guys mean from a development standpoint? Though even then you can just target 7 and it'll work on the desktop in 8 (least that's how it should be).

      I guess I'm also biased because I'm coming from Vista. :D