Jump to content
  • Advertisement
Sign in to follow this  
sinrtb

opengl in cmd line

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

Im trying to link the opengl libraries using mingw and g++ how do i do this when i compile?

Share this post


Link to post
Share on other sites
Advertisement
tried that but im getting a

test.cpp:12:69: gl\glaux.h: No such file or directory


tried
g++ test.cpp -lopengl32 -lglu32
test.cpp:12:69: gl\glaux.h: No such file or directory

g++ test.cpp -lopengl32 -lglu32 -lglaux32
test.cpp:12:69: gl\glaux.h: No such file or directory

g++ test.cpp -lopengl32 -lglu32 -lglaux
test.cpp:12:69: gl\glaux.h: No such file or directory

it compiles fine in Vis C++ but i much prefer cmd line

Share this post


Link to post
Share on other sites
are you sure you installed the glaux library? you need it to get that header and library file. it's by default not installed on a machine.

Share this post


Link to post
Share on other sites
hmmm I was thinking that might be the problem can you point me in the right direction?

Edit: this may sound stupid but if my VIS C++ can compile it wouldnt the mingw also be able by default? And is there a way to just link all the visC++ libraries to the Mingw so i can use both seamlessly together without this kind of issue?

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!