From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 8542 invoked from network); 16 Jul 1999 22:18:42 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Jul 1999 22:18:42 -0000 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id SAA28931 for ; Fri, 16 Jul 1999 18:18:38 -0400 Received: by paralleldata.com from localhost (router,SLMail V2.5); Fri, 16 Jul 1999 17:23:16 -0500 Received: by paralleldata.com from paralleldata.com (207.136.52.29::mail daemon; unverified,SLMail V2.5); Fri, 16 Jul 1999 17:23:14 -0500 Sender: "Wsb" Message-ID: <378FB040.2B8BE1BD@paralleldata.com> Date: Fri, 16 Jul 1999 17:20:48 -0500 From: "Wes Bauske" Organization: PDS Inc. X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: shared version of CPML (was Re: seti at home) References: <378F639B.EF2D0A44@paralleldata.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Alexander L. Belikoff" wrote: > > "Wes Bauske" writes: > > > "Christopher T. Lansdown" wrote: > > > > > > Well, > > > I once found some program that wouldn't compile with -lcpml, it > > > needed something in -lm, so I ended up doing -lcpml -lm and it worked. It > > > may be a gnu extension or something, but I wouldn't recommend replacing > > > your libm with the cpml. You probably won't run into much trouble, but > > > you never know. > > > > I've observed something similar but I'm wondering if it was > > just a linker behavior. I've noticed if one builds archives > > that are interdependent (a in -la calls b in -lb calls c in -la) > > one can get undefined references if you don't put libs on > > the link as "-la -lb -la". Anyone else noticed this or is > > there another way to fix it? (no time to unravel the interdependence) > > > > AFAIK, that is the standard behavior of ld in UNIX. Hence the: > > -lc -lpthread -lc > I don't have to do that on other platforms, either that, or I've been lucky on them?? (Solaris/AIX/IRIX) I can see how one could build tricky binaries with it. For example, you have the same module name with two slightly different versions, (for some reason), and want one part of your code to use one version and some other to use the other one. Wes