Running a usual
#include <iostream>
using namespace std;
void main
{
cout << "hello world";
}
Nothing in header files, resource files and nothing in Linker, output file.
Having a hard time getting OpenGL to run but it seems even basic C++ files aren't running. I'm using VS2008 professional on Windows 7.
There's no .exe in the Debug folder. Making projects with other languages works fine.
"Error 1 error C2470: 'main' : looks like a function definition, but there is no parameter list; skipping apparent body <path>"
Added brackets after main() and it now works, however I'm still having trouble getting OpenGL to work.
Last edited on
Try
int main()
Might help :D Main is a function, you need parentheses. And void is not standards compliant, so don't do that.