4d 20-> 4d80gt porting bug

Dan Christensen jdchrist at watcgl.waterloo.edu
Mon Aug 28 13:42:21 AEST 1989


In article <41032 at sgi.sgi.com> ciemo at bananapc.wpd.sgi.com (Dave Ciemiewicz) writes:
>In article <8710 at batcomputer.tn.cornell.edu>, piplani at batcomputer.tn.cornell.edu (Michael Piplani) writes:
>> Any ideas?  It just occured to me that we didn't use the shared 
>> graphics libraries (just linked with good ole' -Zg), could this be the
>> problem?
>> 
>
>It is definitely the problem.  You should be linking with the shared GL.
>-Zg is maintained for backward compatibility.  Instead, link your program
>with "-lgl_s".  Besides providing a binary compatibility, linking to the
>shared library will also reduce the size of your executable since it won't
>have its own copies of the GL routines.

I think you need to use "-lgl_s -lm" because the gl library uses some
math routines like sin and cos.

----
Dan Christensen, Computer Graphics Lab,	         jdchrist at watcgl.uwaterloo.ca
University of Waterloo, Waterloo, Ont.	         jdchrist at watcgl.waterloo.edu



More information about the Comp.sys.sgi mailing list