Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!apple!sun-barr!decwrl!sgi!ciemo@bananapc.wpd.sgi.com From: ciemo@bananapc.wpd.sgi.com (Dave Ciemiewicz) Newsgroups: comp.sys.sgi Subject: Re: 4d 20-> 4d80gt porting bug Summary: -lgl[_s] no longer requires -lm Keywords: Intra 4D family port, 4d binary compatability Message-ID: <41056@sgi.sgi.com> Date: 28 Aug 89 17:26:41 GMT References: <8710@batcomputer.tn.cornell.edu> <41032@sgi.sgi.com> <11275@watcgl.waterloo.edu> Sender: ciemo@bananapc.wpd.sgi.com Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 27 In article <11275@watcgl.waterloo.edu>, jdchrist@watcgl.waterloo.edu (Dan Christensen) writes: > > I think you need to use "-lgl_s -lm" because the gl library uses some > math routines like sin and cos. > The GL now uses it's own internal sin and cosine routines thus eliminating the need to link with -lm unless your program GL program specifically calls sin(), cos(), or any of the routines provided by the math library. I'm not sure in which release this because true though I know it is true in at least 3.1G. A way to check is to just link your application without -lm. WARNING: The GL internal sin and cosine routines are not for public consumption so you should not use them in your own applications. Use of GL internal routines in your application will almost certainly guarantee binary IN-compatibility, shared-library or not. Only GL public routines are exported via the shared-library interface. -- ------------------------------------------------------------------------------- Cosmo Ciemo, Silicon Valley Dude I was traipsing through the fields of my mind when I stepped in something that smelled rather ripe. -------------------------------------------------------------------------------