Jump to content
  • Advertisement
Sign in to follow this  
chickencoop

Compile error with mingw?

This topic is 3004 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 still trying to compile the small program shared_vertices from the book BEGINNING OPENGL game programing 2nd edition using Mingw under windows (C++).

Now ive put the librarys libSDLmain.a & libSDL.a in the lib folder of mingw,
Ive added the .h files to mingw ie SDL/.. & GL/ files gl.h, glu.h and glut.h

and ive added the dependencies to the windows system32 folder

Then i try and compile using the following
g++ -o test.exe main.cpp -lmingw32 -lSDLmain -lSDL -lopengl32 -lglu32 -lglut32 -lwinmm -lgdi32 -lGLee



When i compile i get the following error

collect2: ld returned 1 exit status

and thats it


My question is what am i missing or is there a way of getting more info out of mingw to determing what librarys im not linking.?

I have managed to get the example from chapter 1 to compile.

Thankyou in advance.

Share this post


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