Hi all,
I am trying to recompile some old project using Qt+openGL+glut, but it just wont work.
My system is Windows vista and I have installed the newest version of MinGW to compile the project.
When I compile, the following command is used to link everything together:
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o release\WorldBuilder.exe object_script.WorldBuilder.Release -L"c:\Qt\4.6.0\lib" -lopengl32 -lglu32 -lgdi32 -luser32 -lmingw32 -lqtmain -lwinmm -lglut32win -lQtOpenGL4 -lQtGui4 -lQtCore4
What makes me crazy are undefined references to opengl-methods although I have linked -lopengl32. This are the errors I get (Mainly the first 4 error are concerned but If you have any idea for the other errors I would also be very grateful):
./release\Speedometer.o:Speedometer.cpp:(.text+0x23b): undefined reference to `_imp__glVertex2i'
./release\Speedometer.o:Speedometer.cpp:(.text+0x24e): undefined reference to `_imp__glVertex2i'
./release\Speedometer.o:Speedometer.cpp:(.text+0x2e6): undefined reference to `_imp__glDrawPixels'
./release\Texture.o:Texture.cpp:(.text+0xb0): undefined reference to `_imp__glDrawPixels'
c:\Qt\4.6.0\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text+0x1c2): undefined reference to `_Unwind_Resume'
c:\Qt\4.6.0\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text$_ZN7QVectorIPcE7reallocEii[QVector<char*>::realloc(int, int)]+0x187): undefined reference to `_Unwind_Resume'
c:\Qt\4.6.0\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
Just give me some ideas, I am getting crazy…
Milad