This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bootstrapping



> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]