Hi;
I have compiled most of the red book examples and the glut examples
that are supported
ie minus overlays or spaceball interface (the red book uses glut btw so
you need it to compile most of them)
there are several packages for MinGW32 I use their naming you just need
the glut32.dll. once you have your glut32.dll in the libs(might help to
make sure put in windows system files or wherever your version keeps
it's system*.dll's system32 etc )(libglut32.a is already there ? I don't
why) and glut.h in the include directory then you can compile using msys
you need to specify the order of libs included this one has never failed
me:at the command prompt, gcc ?.c -o ?.exe -lopengl32 -lglu32 -lgdi32
-luser32 -lglut32 -mwindows
you can use -g or -O3 if you want ,but it "still won't compile" without
an error you need to do one last thing there is a macro defined in
glut.h you need to disable it by typing #define GLUT_DISABLE_ATEXIT_HACK
at the very top before any other includes(in the .c source files) and
that should just about do it. Try these things with the red book
examples . Hope this helps .AD
|