bug-gmp
[Top][All Lists]
Advanced

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

Re: HELP!!


From: Kevin Ryde
Subject: Re: HELP!!
Date: Fri, 26 Mar 2004 06:35:52 +1000
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

address@hidden writes:
>
> [root (none)@~]$ g++ a.cpp -lgmpxx -lgmp
> [root (none)@~]$ ./a.out
> ./a.out: relocation error: ./a.out: undefined symbol:
> __ls__FR7ostreamPC12__mpz_struct
>
> I can compile the code ,but i can't run it.

This usually means you've installed to a location known to the
compiler but not the loader (ld.so), or that the ldconfig program
hasn't been run.  (ldconfig should be run automatically by the
install, if you did it as root.)

If it's /usr/local you installed under, I can never remember if that's
in the default paths.  Running "ldd ./a.out" might say.  Otherwise at
worst you can set LD_LIBRARY_PATH (see the ld.so man page).

-- 
All followups to address@hidden please.




reply via email to

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