Jump to content
  • Advertisement
Sign in to follow this  
Kojo

Dev C++ with OpenGL ... Strange errors...

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

I have a WinGDI based OpenGL program that will not compile with Dev C++. There are no errors in the code, but Linker Error messages pop up whenever I try to compile it. All of these errors are related to OpenGL commads (i.e. wglCreateContext, glColor, glVertex3f, etc.) example:
[Linker Error] Undefined Reference to wglCreateContext@4
or... something like that

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
.....

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by Kojo
I have a WinGDI based OpenGL program that will not compile with Dev C++. There are no errors in the code, but Linker Error messages pop up whenever I try to compile it. All of these errors are related to OpenGL commads (i.e. wglCreateContext, glColor, glVertex3f, etc.)

example:

[Linker Error] Undefined Reference to wglCreateContext@4


or... something like that
ghghjg jkgkh hkh
hjrc tyr56bgysvnhas

Share this post


Link to post
Share on other sites
Try going to project > project options > parameters, click "add library or object". There find the libraries that contain the functions you called (in the project I'm looking at, a first GL program [rolleyes], they're libglu32.a and libopengl32.a, but you might need more), select them and click open. When you're done with all this, compile and it should link the GL stuff.

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!