www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/12/14/03:37:47

Date: Thu, 14 Dec 1995 08:19:40 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Laszlo Vecsey <master AT micro DOT internexus DOT net>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: C++ beta3 Distribution: BAD!

On 12 Dec 1995, Laszlo Vecsey wrote:

> What should I use to compile my C++ programs? gcc works fine for C, should
> I use the same executable for my C++ code? I tried cpp, and gcc, they 
> both produce the same results; a problem with streambuf.h in lines 25 and 
> 153. I can't seem to get around this problem.

Yes, you should use gcc to compile C++ code as well, and you should name 
your file *.cc or *.cpp or *.cxx (check out the FAQ list in faq102.zip 
for the list of the extensions).  Gcc uses the filename extension to 
decide what program (cc1.exe or cc1plus.exe) to invoke to parse the 
source file.  You can also use the ``-x c++'' switch to gcc to tell it 
that's C++ source.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019