bug-gmp
[Top][All Lists]
Advanced

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

installing gmp for c++


From: Paliath Narendran
Subject: installing gmp for c++
Date: Mon, 12 Jan 2004 10:28:04 -0500 (EST)

Hi,

I am unable to install gmp properly. This is part of what I got when I
ran "make check".

After "make install" when I run

    g++ mpz_trial.cc -lgmpxx -lgmp

I get the error 

"while loading shared libraries: libgmpxx.so.3: cannot open shared 
 object file: No such file or directory"

Any help is appreciated.

-Dran

____________________________________________________________________________
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../tests    -g -O2 
-fomit-frame-pointer -mcpu=pentiumpro -march=pentiumpro -c -o t-ostream.o 
`test -f t-ostream.cc || echo './'`t-ostream.cc
In file included from /usr/include/g++/backward/strstream:51,
                 from t-ostream.cc:23:
/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This 
file includes at least one deprecated or antiquated header. Please 
consider using one of the 32 headers found in section 17.4.1.2 of the C++ 
standard. Examples include substituting the <X> header for the <X.h> 
header for C++ includes, or <sstream> instead of the deprecated header 
<strstream.h>. To disable this warning use -Wno-deprecated.
/bin/sh ../../libtool --mode=link g++  -g -O2 -fomit-frame-pointer 
-mcpu=pentiumpro -march=pentiumpro   -o t-ostream  t-ostream.o 
../../tests/libtests.la ../../libgmpxx.la ../../libgmp.la 
g++ -g -O2 -fomit-frame-pointer -mcpu=pentiumpro -march=pentiumpro -o 
.libs/t-ostream t-ostream.o  ../../tests/.libs/libtests.a 
../../.libs/libgmpxx.so /home/dran/gmp-4.1.2/.libs/libgmp.so 
-L/usr/lib/gcc-lib/i586-suse-linux/3.3.1 
-L/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/lib 
-L/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../.. /usr/lib/libstdc++.so 
-lm -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s 
../../.libs/libgmp.so -Wl,--rpath -Wl,/usr/local/lib
creating t-ostream
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../tests    -g -O2 
-fomit-frame-pointer -mcpu=pentiumpro -march=pentiumpro -c -o t-locale.o 
`test -f t-locale.cc || echo './'`t-locale.cc
t-locale.cc:24:23: strstream.h: No such file or directory
t-locale.cc: In function `void check_input()':
t-locale.cc:94: error: parse error before `(' token
t-locale.cc:95: error: invalid operands of types `size_t' and 
`__mpf_struct[1]' 
   to binary `operator>>'
t-locale.cc: In function `int main()':
t-locale.cc:131: error: `ostrstream' undeclared (first use this function)
t-locale.cc:131: error: (Each undeclared identifier is reported only once 
for 
   each function it appears in.)
t-locale.cc:131: error: parse error before `;' token
t-locale.cc:132: error: `got' undeclared (first use this function)
make[3]: *** [t-locale.o] Error 1
make[3]: Leaving directory `/home/dran/gmp-4.1.2/tests/cxx'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/dran/gmp-4.1.2/tests/cxx'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/dran/gmp-4.1.2/tests'
make: *** [check-recursive] Error 1
______________________________________________________________________________





reply via email to

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