Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
2.09/5 (3 votes)
See more:
I installed the glut as writen here: http://www.codeincodeblock.com/2011/02/setup-openglglut-in-codeblock.html
But here is the error: undifined reference to '__mingw_glob'
And I got a lots of "ignoring pragma warning"

I can't find the solution for this problem by google.


Can anybody help me?
Posted
Comments
cariolihome 4-Jan-14 16:39pm    
Did You install mingw compiler ?
Sami_hun 4-Jan-14 17:20pm    
Yes I did. I use gcc.
Sami_hun 4-Jan-14 17:37pm    
the build command:
mingw32-g++.exe -L"c:\Program Files\CodeBlocks\MinGW\lib" -o "bin\Debug\graphiv test.exe" obj\Debug\main.o -lglut32 -lopengl32 -lglu32 -lwinmm -lgdi32
cariolihome 5-Jan-14 10:56am    
Function __mingw_glob has implemented in libmingwex.a library.
May be You should append this library to the command line: -lmingwex ?
enhzflep 4-Jan-14 17:59pm    
It's been such a long time since I did it that I forget how or just why, though your question leaves me with a vague feeling that it was out of necessity (i.e otherwise no glut)
I downloaded and use freeglut with both Win7 and Linx64 boxes, it works just great.

Here: freeglut

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900