This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Bootstrapping
- To: Pavel Roskin <pavel_roskin@geocities.com>
- Subject: Re: Bootstrapping
- From: Benjamin Kosnik <bkoz@cygnus.com>
- Date: Mon, 9 Aug 1999 23:17:04 -0700 (PDT)
- cc: libstdc++@sourceware.cygnus.com
> Unfortunately, the c++ compiler cannot link executables until a c++
> library is installed. This is a chicken and egg problem.
I hadn't really thought about this problem, but I suppose you've got a
point.
g++ tries to link libstdc++. I suppose you might be able to try something
like
gcc -x c++ self-contained-test-with-no-library-calls-but-c++-features.cc
but I don't know if it would work.
The problem is that g++ needs to be tested to see if it works, and
libgcc.a has all the proper exception symbols, but without dependancies
on libstdc++. Hmm. I like what you've got, but maybe with more in main,
like some try/catch blocks.
-Benjamin