Unable to start program because of missing .exe
Posted 28 November 2012 - 02:56 PM
Can someone please tell me why this is. This is part 8 in the tutorial I'm doing, and it is the first time I have this problem.
Posted 29 November 2012 - 02:33 PM
Most commonly, this is because a given solution has multiple projects in it, and is defaulting to the wrong project as the startup project.
Posted 29 November 2012 - 04:08 PM
No, I don't have multiple projects. And when I try to build it it tells me the code is wrong. But I'm just doing what a tutorial tells me to do, so it should work.
It already happends after trying the first step in: http://devmaster.net...-part-9-colors.
The error are: arror C2065: 'm_Surface' : undeclared identifier
and: error C2227: left of '->Clear' must point to class/struct/union/generic type.
all in line 19 in file game.cpp
Posted 29 November 2012 - 05:20 PM
int i = 0; // OK abc = 1; // <-- abc = undeclared
Check to make sure m_Surface is defined somewhere, typically in the header file. Make sure your project environment can also find the header file. In Visual Studio, right click on "#include "myfile.h" (or whatever headers you have) and click on "Open Document". If VS throws an error, then your include paths isn't setup correctly. You need to right click on your project -> go to configuration properties -> C/C++ and make sure "Additional Include Directories" contains all your paths.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users