This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: libstdc++-v3 on RedHat 7 - how ?
- To: Phil Edwards <pedwards at disaster dot jaj dot com>
- Subject: Re: libstdc++-v3 on RedHat 7 - how ?
- From: "Dr. David Gilbert" <dg at px dot uk dot com>
- Date: Tue, 31 Oct 2000 12:04:23 +0000 (GMT)
- cc: Levente Farkas <lfarkas at mindmaker dot hu>, libstdc++ at sources dot redhat dot com
On Mon, 30 Oct 2000, Phil Edwards wrote:
> Hmmmmmmm. Some of the recent important bugfixes to the library also
> involved changing the gcc sources. So when we want to work on the library,
> we're generally using current CVS all the way around.
>
> The last full bootstrap I did was with the 20001024 sources. If you're
> going to do a full build, you might start somewhere in there. The main
> flag you need to use during configuration is --enable-libstdcxx-v3 to turn
> on the new library and namespace std, but not the new C++ ABI.
Thanks Phil; I've started with teh gcc-20001030 snapshot. It is kind of
getting there but not all the way - here is what I have done:
1) Opened out the tar
2) Configured at the top level with --enable-libstdcxx-v3
3) make bootstrap
It built gcc, but hasn't build libstdcxx-v3
3a) make install'd gcc
4) cd'd into libstdcxx-v3, configured
This tried to look for a configure.host in the wrong place (or at
least somewhere it didn't exist!). I changed glibcpp_basedir to be
"${srcdir}/." - which was one of the entries in its if's
5) made - all OK
6) Make install - it hits problems trying to copy stuff out of
include/bits, include/ext etc - it appears to be wanting to see them as
src/bits/..... - so I put a symlink in.
7) It couldn't find the std_c* files during the install; so I've copied
the ones from include/c/bits
Things seem to be getting there. The problem I'm hitting is that cout and
its friends are now properly in the std namespace; so I've got a 'using
namespace std' in my code (we had that on our MS Windows code); but am now
hit by an error indicating that:
call of overloaded `isprint (char&)' is ambiguous
/usr/include/ctype.h:97: candidates are: int isprint(int)
/usr/local/gcc-20001030/include/g++-v3/bits/std_cctype.h:95:
int std::isprint(int)
Now to me it looks like std_cctype.h is including the system ctype.h
header,; but to me there seems to be quite a lot of magic in there
(presumably to work round this?).
Dave
--
/------------------------------------------------------------------\
| Dr. David Alan Gilbert | Work:dg@px.uk.com +44-161-286-2000 Ex258|
| -------- G7FHJ --------|---------------------------------------- |
| Home: dave@treblig.org http://www.treblig.org |
\------------------------------------------------------------------/