openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] undefined symbol link error


From: Darrin Cardani
Subject: Re: [Openexr-devel] undefined symbol link error
Date: Thu, 16 Oct 2003 09:50:36 -0500

At 8:23 PM -0700 10/15/03, Scott Frankel wrote:
Many of the new errors I'm getting are from undeclared symbols; i.e.:
::asinf.  They originate in ImathMath.h, included in ImathVec.h.  Is there
a lib file that's not getting read properly, where asinf, atanf, &c. are declared?

The problem is that under OS X, using the apple-supplied libraries, the trig functions for floats don't exist. Only the double versions do. You could define your own functions (or even macros) which just cast the arguments to doubles and call them.

I don't know what the reasoning was for getting rid of the float versions of these functions. It makes it a pain to write AltiVec code that produces identical results to scalar code, for one thing. I've read, though I can't prove it, that working with doubles is faster on PPC than working with single precision floats and that's why they did it. But I've also read about this happening to others as well.

I'm new to using gcc, so I'm sorry to say, I don't know what the answer is other than my suggestion above.

Darrin
--
Darrin Cardani - address@hidden
President, Buena Software, Inc.
<http://www.buena.com/>
Video, Image and Audio Processing Development




reply via email to

[Prev in Thread] Current Thread [Next in Thread]