Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* CPML linkage problem
@ 1999-05-04 14:27 Stefan Schroepfer
  1999-05-04 17:59 ` Phillip Ezolt
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Schroepfer @ 1999-05-04 14:27 UTC (permalink / raw)
  To: axp-list

[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

Hi!

I have problems when linking against a static lib that
uses atan () from CPML (and CPML itself): the linker
stops with "undefined reference to `__atan2'".

Using all other functions (including atan2 ()) implemeted
in CPML I came across in that fashion works, as well as
using CPML's atan () in code linked in as object files
(not in a lib).

System is RH 5.1 with binutils from RH 5.2 (GNU ld 2.9.1,
binutils-2.9.1.0.15-1), egcs 1.1.2, CPML V0.1.

Anyone else who had this problem? Is it linker or
CPML related?

Thanks in advance,
Stefan Schroepfer
scr@iis.fhg.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: CPML linkage problem
  1999-05-04 14:27 CPML linkage problem Stefan Schroepfer
@ 1999-05-04 17:59 ` Phillip Ezolt
  1999-05-05  8:10   ` Stefan Schroepfer
  0 siblings, 1 reply; 3+ messages in thread
From: Phillip Ezolt @ 1999-05-04 17:59 UTC (permalink / raw)
  To: axp-list, scr; +Cc: jaffe

Stefan,
	As a temporary work-a-round, you can also compile in the GNU libm. It
will resolve the symbol.  If you put cpml first on the command all cpml
routines will beat out the GNU libm routines.  I know people are working on
fixing this internally for the next release. 

--Phil

Digital/Compaq:                     HPSD/Benchmark Performance Engineering
Phillip.Ezolt@compaq.com                            ezolt@perf.zko.dec.com


On Tue, 4 May 1999, Stefan Schroepfer wrote:

> Hi!
> 
> I have problems when linking against a static lib that
> uses atan () from CPML (and CPML itself): the linker
> stops with "undefined reference to `__atan2'".
> 
> Using all other functions (including atan2 ()) implemeted
> in CPML I came across in that fashion works, as well as
> using CPML's atan () in code linked in as object files
> (not in a lib).
> 
> System is RH 5.1 with binutils from RH 5.2 (GNU ld 2.9.1,
> binutils-2.9.1.0.15-1), egcs 1.1.2, CPML V0.1.
> 
> Anyone else who had this problem? Is it linker or
> CPML related?
> 
> Thanks in advance,
> Stefan Schroepfer
> scr@iis.fhg.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: CPML linkage problem
  1999-05-04 17:59 ` Phillip Ezolt
@ 1999-05-05  8:10   ` Stefan Schroepfer
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Schroepfer @ 1999-05-05  8:10 UTC (permalink / raw)
  To: axp-list; +Cc: Phillip Ezolt

[-- Attachment #1: Type: text/plain, Size: 415 bytes --]

Phillip Ezolt wrote:
> 
> Stefan,
>         As a temporary work-a-round, you can also compile in the GNU libm. It

That's the way I did it.

> will resolve the symbol.  If you put cpml first on the command all cpml
> routines will beat out the GNU libm routines.  I know people are working on

Thanks for making this clear.

> fixing this internally for the next release.


Regards,
Stefan Schroepfer
scr@iis.fhg.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-05-05  8:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-04 14:27 CPML linkage problem Stefan Schroepfer
1999-05-04 17:59 ` Phillip Ezolt
1999-05-05  8:10   ` Stefan Schroepfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox