[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: friends.cpp won't compile on FreeBSD
From: |
Ari Johnson |
Subject: |
Re: friends.cpp won't compile on FreeBSD |
Date: |
Wed, 13 Nov 2002 22:22:10 -0600 (CST) |
Alright, I removed my local copy of the cvs and checked it out anew, and
now everything worked fine (except piostreams, but that's probably because
I'm missing some library or something, and I don't use them anyhow, so I'm
not overly concerned). Now, on to using gcc 3.x. The compilation fails
when it gets to slog.cpp, which gets a ton of errors from
/usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.3/include/g++-v3/cmath,
which is included eventually by fstream, which slog.h includes. The
errors are all like this:
/usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.3/include/g++-v3/cmath:
In function `float std::tanh(float)':
/usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.3/include/g++-v3/cmath:489:
error: `::
tanhf' undeclared (first use here)
This doesn't happen when I compile anything else that includes fstream, so
I'm thinking it's a problem with the order in which slog.cpp includes
files. I'm running FreeBSD-STABLE, which is basically 4.7, and the
gcc-3.3 port, version string is 'gcc version 3.3 20021014 (experimental)
[FreeBSD]', with no further modifications. I've also tried the gcc ports
for versions 3.0, 3.1, and 3.2, and all result in the same problem. I
just can't comprehend the sheer weirdness of this error.
Ari Johnson
On Thu, 14 Nov 2002, Federico Montesino Pouzols wrote:
>
> Have you tried the CVS version? I basically added the changes
> you described in a previous post and was able to build cc++ 2 on a
> FreeBSD 4.7 with gcc 2.95.4.
>
> On Wed, Nov 13, 2002 at 05:20:01PM -0600, Ari Johnson wrote:
> >
> > Has anyone else had any problems with this? It'd really be great to not
> > have to hack things to get it to compile even with my default compiler
> > (gcc 2.95.x); once I get that working, maybe I'll worry about getting
> > CommonC++ to compile with gcc 3.x. :)
> >
> > Ari Johnson
> >
> >
> >
> >
> > _______________________________________________
> > Bug-commoncpp mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>