Path: utzoo!utgpu!watmath!watcgl!jdchrist From: jdchrist@watcgl.waterloo.edu (Dan Christensen) Newsgroups: comp.sys.sgi Subject: Re: 4d 20-> 4d80gt porting bug Keywords: Intra 4D family port, 4d binary compatability Message-ID: <11275@watcgl.waterloo.edu> Date: 28 Aug 89 03:42:21 GMT References: <8710@batcomputer.tn.cornell.edu> <41032@sgi.sgi.com> Reply-To: jdchrist@watcgl.waterloo.edu (Dan Christensen) Organization: Computer Graphics Lab, University of Waterloo Lines: 19 In article <41032@sgi.sgi.com> ciemo@bananapc.wpd.sgi.com (Dave Ciemiewicz) writes: >In article <8710@batcomputer.tn.cornell.edu>, piplani@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@watcgl.uwaterloo.ca University of Waterloo, Waterloo, Ont. jdchrist@watcgl.waterloo.edu