bug-gmp
[Top][All Lists]
Advanced

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

Re: C++ wrapper, mpf << operator overloading


From: Kevin Ryde
Subject: Re: C++ wrapper, mpf << operator overloading
Date: Wed, 18 Sep 2002 11:26:27 +1000
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i386-debian-linux-gnu)

Garrett Kajmowicz <address@hidden> writes:
>
> FYI:  This is my first attempt at writting a C++ program, so the fault COULD 
> BE MINE.
>
> I am recieving compile error : 
> /usr/include/gmpxx.h:34: undefined reference to `operator<<(ostream &, 
> __mpf_struct const *)'
> /usr/include/gmpxx.h:34: undefined reference to `operator<<(ostream &, 
> __mpf_struct const *)'

If that's a linker error then you probably need libgmpxx in the link,
ie. "gcc ... -lgmpxx -lgmp".  (The manual will make this clearer in
the next release.)




reply via email to

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