Bootstrapping

Benjamin Kosnik bkoz@cygnus.com
Mon Aug 9 23:17:00 GMT 1999


> 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


More information about the Libstdc++ mailing list