GLUT problem

I received below error messages when compiling my program.

ld32: ERROR 33 : Unresolved text symbol “glutSolidCube” – 1st
referenced by navigatebox.o.
Use linker option -v to see when and which objects, archives and
dsos are loaded.
ld32: INFO 152: Output file removed because of error.

then try adding libglut.a, and receive other messages as below.

ld32: FATAL 12 : Expecting 32-bit objects: /usr/local/lib/libglut.a
is 64-bit.

Please help. Many thanks

This seems like a Linux question to me. Please be more specific about what system/compiler etc you are using when asking these kind of questions.

I am working with Irix running on SGI .

Hi I use glut and IRIX on my O2 all the time.

What’s your link line? Mine is …

cc -o fred fred.c -I/usr/local/include/GLUT
-lglut -lGL -lGLU -lXmu
-lXext -lX11 -lm \

of course where you have glut.h and libglut.a will
depend on you … alter to taste.


Yes, I manage to link by typing these command line

gcc -o simple simple.o -L/usr/lib32 -lglut -lXext -lXmu -lX11 -lGL -lGLU -L/lib -lm

previously l used

gcc -o simple -o32 simple.o -L/usr/local/lib -L/usr/lib -lglut -lXext -lXmu -lX11 -lGL -lGLU -L/lib -lm and these won’t work.

Many thanks