Skip to Content.
Sympa Menu

baslinux - Re: [BL] compiling C++ with gcc

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: Ian <mriscott AT yahoo.co.uk>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] compiling C++ with gcc
  • Date: Tue, 30 Dec 2003 07:43:58 +0000

The compiler cannot find any of the *.h files in the
g++-2 subdirectory unless you compile with g++ instead
of gcc.
g++ is just gcc with the correct options (-x c++, IIRC, an perhaps different include directories) to compile c++ rather than c. I think that if you call your source file x.cpp rather than x.c, gcc will default to treat it as c++ whether invoked as gcc or g++. I have not tested this on BL, howeverc
Ian





Archive powered by MHonArc 2.6.24.

Top of Page