Re: Open GL and XForms on SGI, IRIX 6.2

Cheng Tan (cptan@leland.Stanford.EDU)
Wed, 16 Apr 1997 14:28:16 -0700 (PDT)

To subscribers of the xforms list from Cheng Tan <cptan@leland.Stanford.EDU> :


I have just started to learn xforms a few days ago. I am having problem
compiling a sample code (filename = glwin.c) that was bundled with the
xforms source package (under directory DEMOS). I have a copy of OpenGL from
Sun Microsystem installed under Solaris 2.5.1 (openwindow) (Sun Ultra1 Creator
3D). Here's the error message :

/opt/SUNWspro/bin/cc -Xa -DSVR4 -O -KPIC -I../FORMS -I/usr/openwin/include -Ifd -c glwin.c
/opt/SUNWspro/bin/cc -Xa -DSVR4 -O -s -R/usr/openwin/lib:/usr/lib:/usr/local/openwin/lib -o glwin glwin.o -L../FORMS -lforms -lGL -lXext -L/usr/openwin/lib -lX11 -lnsl -lm
Undefined first referenced
symbol in file
fl_glwincreate glwin.o
ld: fatal: Symbol referencing errors. No output written to glwin
*** Error code 1 (ignored)

I try an additional library flag "-lGlu" and that makes it compile successfully.
HOWEVER, the execution of the output causes segmentation faults.
I suspect that I may be "missing/not understanding" some key concepts for
interfacing xforms with openGL.

Does anybody uses both the OpenGL from SUN and xforms and manage to get the two to work in sync?

Please HELP.....any suggestion is appreciated.

Cheng Tan
Stanford University

To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: