Sign in to follow this  

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

This topic is 4663 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
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

This topic is 4663 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.

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