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

Re: libmoto PowerPC-optimized math library?



"MD" == Michel Daenzer <daenzerm@student.ethz.ch>

   MD> I've just replaced -lm in the Makefiles by -lmoto, and I've
   MD> noticed that the binary is still dynamically linked against
   MD> libm - is there anything else I have to do for libmoto to
   MD> be used?

The README file that accompanies libmoto says that you should use
it by adding ``-lmoto'' *before* the ``-lm''.  The order is
important: the linker loads functions from libraries in the order
that it finds them, and ignores duplicate functions.  

You still need ``-lm'', too: libmoto only specifies a subset of
the functions provided by the math library, and if the linker
doesn't find the functions it needs, it will blow up.

Depending on where you've placed the library, you may also need to
add something like ``-L/usr/local/lib/libmoto'' before the
``-lmoto'' flag.

   CMC


+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 



Reply to: