Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GLUT command line switches for UNIX

1 view
Skip to first unread message

Spidy

unread,
Sep 26, 2004, 11:53:56 PM9/26/04
to
Hello.

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?

Antonio Bleile

unread,
Sep 27, 2004, 4:17:34 AM9/27/04
to

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

Antonio Bleile

unread,
Sep 27, 2004, 4:18:57 AM9/27/04
to
I wrote:

> CC prac9.c -lglut -lGLU -lGL -o prac9.exe

I meant cc (that's the c-compiler, CC is the c++ compiler).

Spidy

unread,
Sep 28, 2004, 3:27:02 AM9/28/04
to
Yes, I used both :

#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?

0 new messages