Hello everyone!
Hows it going?! I have been messing with C::B(v1, rc2) for the last couple of days, I always knew it was good, just didn't use it. Anyway, onto my question.
How do you set up C::B with OpenGL (version that comes with CB)? Let me explain. Like I said for the last couple of days, I have been trying to set it up to no success. Funny because the same problem I have, after searching the forums, is very common but there was never a solution. Google couldn't even help me out here.
Basically, on WinXP trying to get C::B to run a simple opengl and glut.
This is the error I'm getting, which I'm pretty sure has do to with the "linking process":
mingw32-g++.exe "-D_WCHAR_T_DEFINED " -I"C:\Program Files\CodeBlocks\include" -c Simple.cpp -o .objs\Simple.o
mingw32-g++.exe -L"C:\Program Files\CodeBlocks\lib" -o "C:\Documents and Settings\radioact1ve\Desktop\Programming\CB\OpenGL.exe" .objs\Simple.o -lglut32 -lglu32 -lopengl32 -lgdi32 -luser32 -lkernel32 -mwindows
.objs\Simple.o:Simple.cpp:(.text+0x1c): undefined reference to `__glutInitWithExit'
.objs\Simple.o:Simple.cpp:(.text+0x37): undefined reference to `__glutCreateWindowWithExit'
.objs\Simple.o:Simple.cpp:(.text+0x53): undefined reference to `__glutCreateMenuWithExit'
...... Insert a whole bunch of undefines here
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
As you can see from the message, that's the order that I'm linking the libs. Truth be told I have been using many different combinations b/c the forums and Google keep giving me different orders, and it worked for them.
I have tried to be as detailed as possible, if more info is needed please let me know. Hope anyone can help!! I know this has been asked before but I haven't found a workable solution. Thanks for your time!!
BTW, The basic template that comes with C::B when you create a new OpenGL project compiles but it doesn't run. The "time" cursor on the mouse appears for like a second and nothing happens. My guess is that something is failing so the app just exists. Thought I would share that.