delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/12/14/15:32:10

Date: Thu, 14 Dec 1995 12:28:16 -0500 (EST)
From: Laszlo Vecsey <master AT internexus DOT net>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> 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.

Problem was I didn't use the -lgpp command line option, all is fine now. Is 
djgpp AT sun DOT soe DOT clarkson DOT edu a mailing list? Please subscribe me.

- Raw text -


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