Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!sgi!thant@horus.SGI.COM From: thant@horus.SGI.COM (Thant Tessman) Newsgroups: comp.sys.sgi Subject: Re: having trouble with shared libraries Summary: -lgl_s -lm Keywords: shared library Message-ID: <31456@sgi.SGI.COM> Date: 26 Apr 89 23:49:38 GMT References: <9395@watcgl.waterloo.edu> Sender: daemon@sgi.SGI.COM Distribution: comp Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 15 In article <9395@watcgl.waterloo.edu>, jdchrist@watcgl.waterloo.edu (Dan Christensen) writes: > I have a program that I want to run on both the Personal Iris and the > 4D/120GTX without recompiling. Currently, the program compiles > correctly on both machines with the -Zg option, but the binary is not > compatible between the machines. The way I interpret the cc man page > is that -Zg is equivalent to -lgl -lm, or if you want the shared > libraries, -gl_s -lm. When I try compiling on either machine, with -------------^^^^^^^^^ It's -lgl_s -lm Also, make sure you're including math.h thant@sgi.com