Newsgroups: comp.windows.x
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!darwin.sura.net!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!aio!krakatoa!mccoy
From: mccoy@gothamcity.jsc.nasa.gov (Daniel McCoy)
Subject: Re: compiling on sun4_411
Message-ID: <1993Apr20.132914.907@aio.jsc.nasa.gov>
Sender: news@aio.jsc.nasa.gov (USENET News System)
Reply-To: mccoy@gothamcity.jsc.nasa.gov
Organization: I-NET Inc.
References: <Yfo=qfe00WB2QzZ7EZ@andrew.cmu.edu>
Date: Tue, 20 Apr 1993 13:29:14 GMT
Lines: 27

In article qfe00WB2QzZ7EZ@andrew.cmu.edu, Wilson Swee <ws8n+@andrew.cmu.edu> () writes:
|>    I have a piece of X code that compiles fine on pmax-ul4, pmax_mach, as
|>well as sun4_mach, but whenever it compiles on sun4_411, it gives me 
|>undefined ld errors:
|>_sin
|>_cos
|>_pow
|>_floor
|>_get_wmShellWidgetClass
|>_get_applicationShellWidgetClass
|>
|>The following libraries that I linked it to are:
|>-lXaw -lXmu -lXt -lXext -lX11
|>
|>The makefile is generated off an imake template.
|>Can anyone give me pointers as to what I'm missing out to compile on
|>a sun4_411?

Well, the first 2 are easy.  You need the math library.  Try adding -lm after
-lX11.  Don't know if that's the whole problem but it's a start.

---
Daniel J. McCoy           |=> SPACE  <=|                   I-NET, Inc.
NASA Mail Code PT4        |=> IS     <=|             TEL: 713-483-0950
NASA/Johnson Space Center |=> OUR    <=|             FAX: 713-244-5698
Houston, Texas 77058      |=> FUTURE <=| mccoy@gothamcity.jsc.nasa.gov

