On Wed, 2013-04-03 at 15:52 -0500, Bruce Dubbs wrote: > Bruce Dubbs wrote: > > Pierre Labastie wrote: > >> When switching to gcc 4.8.0, the test of g++ was added to > >> version-check.sh, but not to the list of requirements. Only GCC appears, > >> which could be anything from the gcc executable to the whole compiler > >> collection. Maybe this should be made clearer that g++ is needed. > >> I'll commit a change to jhalfs for testing that. > >> > >> Actually, I have a minimal debian system for tests, and never installed > >> g++, until I discovered that the first pass of gcc would fail whithout > >> it. That is the reason why I looked at the hostreqs... > > > > I suppose we could have: > > > > > > echo 'main(){}' > dummy.c && gcc -o dummy dummy.c > > if [ -x dummy ] > > then echo "gcc compilation OK"; > > else echo "gcc compilation failed" > > fi > > rm -f dummy > > > > g++ -o dummy dummy.c > > if [ -x dummy ] > > then echo "g++ compilation OK"; > > else echo "g++ compilation failed" > > fi > > rm -f dummy.c dummy > > > > It can be the same dummy.c file as for gcc. > > Another thought. Is it possible to have g++ without gcc?
I'm not certain, but prior to GCC-4.8.0 I'd think it unlikely that you could do that, simply because everything was written in C thereby necessitating any C support that g++ would require. Whether or not one can, following the 'rewrite in a subset of C++' in 4.8.0, now do --enable-languages=c++ on GCC's configure line and get a working C++ compiler sans C support 'baggage' is an interesting question. I might give it a try some time. Regards, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page