[mercury-users] linker error

Fergus Henderson fjh at cs.mu.OZ.AU
Wed May 14 02:55:52 AEST 2003


On 13-May-2003, mauro_c2r at libero.it <mauro_c2r at libero.it> wrote:
> I use the source distribution, installed simply:
> ./configure
> make
> make install
> make clean
> 
> The environment variable MERCURY_MATH_LIB was not set!

In general it shouldn't need to be.  The only environment variable you need
to set is PATH.  In Mercury 0.11, setting the MERCURY_MATH_LIB environemnt
variable allows you to override the way in which the Mercury linker will
link in the math library.  The default is determined when `configure'
is run.

> So I set it to:
> export MERCURY_MATH_LIB="/usr/lib/libm.so"
> But now I get another error: 
> /usr/bin/ld: cannot find -lc

What happens when you do what I originally suggested?

> > Try setting the MERCURY_MATH_LIB environment variable to the empty string,
> > e.g. in bash
> > 
> > 	export MERCURY_MATH_LIB=''
> > 
> > That should stop it trying to link against `-lm'.
> > If this results in errors about some math functions being undefined,
> > then you'll need to figure out which Mandrake package contains
> > libm and install it.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list