Hello,
I just bought a book on game programming with c++ and one of the first things you do is make the "Game Over" console program. I'm using Microsoft Visual c++ 2012 Express. I follow what the book says and type in the code for the program. The code:
Code:
//A first C++ program
#include <iostream>
int main()
{
std::cout << "Game Over" << std::endl;
return 0;
}
After I type that in, I click the "debug" tab and then click "build solution" and I end up getting this error:
1>------ Build started: Project: game_over, Configuration: Debug Win32 ------
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I tried making a whole new file and typing the code in again and it still does this. I'm using the Win32 Console Application template as that it was the book told me to use. Can anyone help me as to why it's failing?
Thanks,
~mdbay