Jump to content
  • Advertisement
Sign in to follow this  
NeoMatrix2

no errors but wont compile?

This topic is 4880 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
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 renaming the file from "opengl triangle.cpp" to "opengl_triangle.cpp" and then re-compiling. The space might be causing the issue.

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
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!