So, I did some tests using an example AppGameKit project in
VC++ 2010 Express. The example project was the SpaceShooter game. Everything went smoothly and it ran well, and now I'm ready to start up my project.
I started a new project and selected the AGK_Wizard template for the project.
I didn't change anything and attempted to compile it straight away. I was met with quite a long list of errors:
1>------ Build started: Project: HandsOnDJ, Configuration: Debug Win32 ------
1> Main.cpp
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2065: 'DEBUG_NEW' : undeclared identifier
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2144: syntax error : 'float' should be preceded by ';'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): warning C4091: '' : ignored on left of 'float' when no variable is declared
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2143: syntax error : missing ';' before '['
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2337: 'numVertices' : attribute not found
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2143: syntax error : missing ']' before '*'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2143: syntax error : missing ';' before '*'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2100: illegal indirection
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2143: syntax error : missing ';' before ']'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2143: syntax error : missing ';' before ']'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2065: 'DEBUG_NEW' : undeclared identifier
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2144: syntax error : 'unsigned char' should be preceded by ';'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): warning C4091: '' : ignored on left of 'unsigned char' when no variable is declared
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2143: syntax error : missing ';' before '['
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2337: 'numVertices' : attribute not found
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2143: syntax error : missing ']' before '*'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2143: syntax error : missing ';' before '*'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2100: illegal indirection
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2143: syntax error : missing ';' before ']'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2143: syntax error : missing ';' before ']'
1> Generating Code...
1> Compiling...
1> Core.cpp
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2065: 'DEBUG_NEW' : undeclared identifier
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2144: syntax error : 'float' should be preceded by ';'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): warning C4091: '' : ignored on left of 'float' when no variable is declared
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2143: syntax error : missing ';' before '['
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2337: 'numVertices' : attribute not found
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2143: syntax error : missing ']' before '*'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2143: syntax error : missing ';' before '*'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2100: illegal indirection
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2143: syntax error : missing ';' before ']'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(69): error C2143: syntax error : missing ';' before ']'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2065: 'DEBUG_NEW' : undeclared identifier
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2144: syntax error : 'unsigned char' should be preceded by ';'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): warning C4091: '' : ignored on left of 'unsigned char' when no variable is declared
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2143: syntax error : missing ';' before '['
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2337: 'numVertices' : attribute not found
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2143: syntax error : missing ']' before '*'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2143: syntax error : missing ';' before '*'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2100: illegal indirection
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2143: syntax error : missing ';' before ']'
1>c:\program files (x86)\the game creators\agk\ide\common\include\cobject3d.h(74): error C2143: syntax error : missing ';' before ']'
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I notice that this is all in the cobject3d.h header file, but I'm not wanting to utilize any of AGK's 3D elements. Can I exclude this from my project just to get it up and running? Or, better yet, for future development sake, what's wrong with this header file and how can I fix it to compile properly?
The first error about DEBUG_NEW is pointing at this line:
m_pData = new float[ numVertices*m_iComponents ];
m_pData is defined as a void*
Are there some include/libraries that I need to ensure are included in the project properties? If I can't get this to work out, I may have to strip down one of the example projects and start from there.
Any help is greatly appreciated.
~Plystire
A rose is only a rose until it is held and cherished -- then it becomes a treasure.