Sign in to follow this  
NeoMatrix2

no errors but wont compile?

Recommended Posts

JohnBolton    1372
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.cpp
opengl triangle.cpp
Linking...

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?

Share this post


Link to post
Share on other sites
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,

Share this post


Link to post
Share on other sites
NeoMatrix2    122
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]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this