Help!! Can't linking on SGI IRIX

Hi Dear all

I try to set up the openGL, GLUT on SGI IRIX 6.5. The sample file can be compiled, but if need to link, there is the error message. How can I solve this problem?

ld32: ERROR 33 : Unresolved text symbol “glutInitDisplayMode” – 1st referenc.
Use linker option -v to see when and which objects, archives and dsos a
ld32: ERROR 33 : Unresolved text symbol “glutInitWindowSize” – 1st reference.
Use linker option -v to see when and which objects, archives and dsos a
ld32: ERROR 33 : Unresolved text symbol “glutCreateWindow” – 1st referenced .
Use linker option -v to see when and which objects, archives and dsos a
ld32: ERROR 33 : Unresolved text symbol “glutReshapeFunc” – 1st referenced b.
Use linker option -v to see when and which objects, archives and dsos a
ld32: ERROR 33 : Unresolved text symbol “glutKeyboardFunc” – 1st referenced .
Use linker option -v to see when and which objects, archives and dsos a
ld32: ERROR 33 : Unresolved text symbol “glutDisplayFunc” – 1st referenced b.
Use linker option -v to see when and which objects, archives and dsos a
ld32: ERROR 33 : Unresolved text symbol “glutMainLoop” – 1st referenced by a.
Use linker option -v to see when and which objects, archives and dsos a
ld32: INFO 152: Output file removed because of error.

Thank you all!!

You need to link to the appropriate libraries. How you do that depends on the compiler. For instance with the gnu compiler you add -lGL -lGLU -lglut to the command line.

I use SGI original cc compiler.
I use a make file like the following


INC=/usr/freeware/include/GL
LIB=/usr/freeware/lib32

accum:accum.c

cc -I${INC} -L${LIB} -o accum accum.c -lglut -lGLU -lGL -lXmu -lX11 -lm


I have no idea what’s wrong in the syntax.

thx

Interesting. Your makefile appears to be attempting to link the proper libraries. Usually if a library file isn’t found, it states that, but your error doesn’t.

The only thing I can think of is that for some reason your glut library doesn’t have those methods, which it should. Even if you have an old version, I would think those functions would have been present.

I’m stumped. Perhaps someone that has experience compiling on SGI machines has a solution.