no errors but wont compile?

Started by
5 comments, last by NeoMatrix2 18 years, 10 months ago
removing for ease of reading :) [Edited by - NeoMatrix2 on June 8, 2005 5:50:19 PM]
Advertisement
Have you tried running the compiled exe outwith VS?
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?
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!
try renaming the file from "opengl triangle.cpp" to "opengl_triangle.cpp" and then re-compiling. The space might be causing the issue.
removing for ease of reading :)

[Edited by - NeoMatrix2 on June 8, 2005 5:29:04 PM]
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,
okay book forgot to mention i have to link the gl files in project settings not great but ah well, thnx for everything guys response is amazing here. well it said at beginning of book i forgot it :D

[Edited by - NeoMatrix2 on June 8, 2005 6:36:08 PM]

This topic is closed to new replies.

Advertisement