🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #230

Re: Which version do I want?

#230
From: tiemann
Date: Mon, 10 Aug 1992 16:02
12 lines
965 bytes
gcc 2.2.2 guesses which sub-program to execute based on the filename
extension.  If you hand it a .s file, it will guess you want the
assembler.  If you hand it a .c file, it will guess you want the C
compiler.  If you hand it a .cc file, it will guess you want the C++
compiler.  If you have other filename extension conventions, you can
read the docs about how to use the -x option.

If you really want to invoke the C++ compiler as 'g++', there's now a
shell script which calls gcc with the -x options needed to compile a
even a .c file as C++.

Michael
Technical Details
Message-ID: <9208110602.AA22190@rtl.cygnus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!tiemann
References: <1992Aug11.053351.11877@galileo.cc.rochester.edu>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!tiemann
From: tiemann@cygnus.com
Subject: Re: Which version do I want?
Message-ID: <9208110602.AA22190@rtl.cygnus.com>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
References: <1992Aug11.053351.11877@galileo.cc.rochester.edu>
Distribution: gnu
Date: Mon, 10 Aug 1992 16:02:39 GMT
Lines: 12