This is my first post to this newsgroup. Having a little trouble trying
to figure out the correct switches for UNIX implementation of GLUT,
specifically, on SGI's IRIX platform.
I've been given a task and an example command line for Win32 but I can't
seem to find the coorect switches.
The man pages refer to -lglut yet ti doesn't exist. libglut.a seems to
be the lib file.
Anyway, the example given is as follows:
gcc prac9.c -lglut32 -lglu32 -lopengl32 -o prac9.exe
Can anyone tell me the equivalent UNIX command?
Perhaps glut is not installed on your IRIX box.
It't not in the default installation as far as I know.
>
> Can anyone tell me the equivalent UNIX command?
>
Should be something like this (for IRIX):
CC prac9.c -lglut -lGLU -lGL -o prac9.exe
remove the 32 stuff and replace opengl with GL
and glu with GLU.
Regards,
Toni
--
for mail, mirror: ed.lausivksa@elielb
> CC prac9.c -lglut -lGLU -lGL -o prac9.exe
I meant cc (that's the c-compiler, CC is the c++ compiler).
#cc prac9 prac9.c histogram.c -lglut -lGLU -lGL -lXmu -lXext -lX11 -lm
-L/usr/freeware/lib32
and
cc -o prac9 prac9.c -L/usr/freeware/lib32 -lglut -lGL -lGLU -lX11 -lXmu
as I was later told that order is important. I must stress though, that
both command lines above worked.
I understand that along with the GLUT lib (lglut) the glu lib (GLU) and
the opengl lib (GL) that I need to link to the X11 windowing system, but
what am I linking to with -lXmu, -lXext and -lm above?