• Advertisement
Sign in to follow this  

Compile error with mingw?

This topic is 2817 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
Sign in to follow this  

  • Advertisement