Problems running GMP
tg at gmplib.org
Mon Aug 25 17:23:01 UTC 2014
"remmellabs at juno.com" <remmellabs at juno.com> writes:
I installed GMP with the following instructions:
cp gmp-6.0.0a.tar.bz2 /ron
tar -xvf gmp-6.0.0a.tar
You need to re-read the GMP install instructions.
I copied the following files to the place where C++ looks for include files:
cp gmp.h /usr/include/c++/4.8.3
cp gmpxx.h /usr/include/c++/4.8.3
(Why didn't the make command put these files in 4.8.3 automatically?)
Eh, that would be really weird.
Then I compiled: g++ -o yy yy.c++
There were four error messages, including:
...undefined reference to '__gmpz_set_str'
...undefined reference to '__gmp_printf'
You are making C/Unix beginners mistakes. Fortunately, we might get a
step further by reading a few pages in our manual.
Please encrypt, key id 0xC8601622
More information about the gmp-discuss