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: Sindi Keesan <keesan AT iamjlamb.com>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] compiling C++ with gcc
  • Date: Tue, 30 Dec 2003 11:31:33 -0500 (EST)

In SW71 g++ is a symlink to something with a longer but similar name that
is a 65K binary file, and does not look like gcc with options. ?

On Tue, 30 Dec 2003, Ian wrote:

> > 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
>
> _______________________________________________
> BasLinux mailing list
> BasLinux AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/baslinux
>





Archive powered by MHonArc 2.6.24.

Top of Page