bug-gmp
[Top][All Lists]
Advanced

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

Re: gmp: compilation problem


From: Kevin Ryde
Subject: Re: gmp: compilation problem
Date: Thu, 13 Mar 2003 08:58:34 +1000
User-agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.2 (i386-pc-linux-gnu)

Francois Thomasset <address@hidden> writes:
>
> Dans le fichier inclus a partir de /usr/include/c++/3.2/iosfwd:45,
> a partir de /home/thomasse/Gmp/gmp.h:26,
> a partir de [...]
> /usr/include/c++/3.2/bits/stringfwd.h:49: patron avec liaison C
> [...]

Please provide a complete example program which provokes this.  We've
been using gmp with gcc 3.2 successfully, on gnu and freebsd systems.

As a wild guess, you might like to check that you haven't wrapped your
#include <gmp.h> in an ``extern "C" { } block''.  gmp.h already knows
to do that for its C declarations, and adding an extra one will upset
the C++ declarations.

> ./configure --enable-cxx

Yes, this creates the libgmpxx which contains C++ I/O and support
functions.

> CPPFLAGS=-D__USE_STD_IOSTREAM

This is only necessary for Compaq C++ on OSF 5.

-- 
All followups to address@hidden please.




reply via email to

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