no errors but wont compile?
Quote:Original post by NeoMatrix2
--------------------Configuration: opengl triangle - Win32 Debug--------------------
opengl triangle.exe - 0 error(s), 0 warning(s)
This means it compiled and linked ok, and nothing is wrong with your code (as far as compiling and linking). Is this the complete output? Normally, the output would something like this:
--------------------Configuration: opengl triangle - Win32 Debug--------------------Compiling...StdAfx.cppopengl triangle.cppLinking...opengl triangle.exe - 0 error(s), 0 warning(s)
If it doesn't list the .cpp files, then you probably forgot to add them to the project.Quote:Original post by NeoMatrix2
... "cannot execute program" ...
What does the complete message say?
try renaming the file from "opengl triangle.cpp" to "opengl_triangle.cpp" and then re-compiling. The space might be causing the issue.
try adding #include <windows.h> at the beginning of your file. The compiler is not happy because it lacks the definition of HDC.
Yup. Not sure.
What are lines 18 and 46? Without this information, it is pretty hard to understand the exact problem...
HTH,
Yup. Not sure.
What are lines 18 and 46? Without this information, it is pretty hard to understand the exact problem...
HTH,
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement