delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/01/00:20:20

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gcc/gxx c++ -> .o (#defines)
Date: Thu, 28 Aug 1997 14:21:31 +0200
Organization: TU Chemnitz-Zwickau
Lines: 25
Message-ID: <34056D4B.2C4CF2DB@Mathematik.TU-Chemnitz.DE>
References: <340488B6 DOT 59E2 AT CS DOT ColoState DOT edu>
NNTP-Posting-Host: pandora.hrz.tu-chemnitz.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

SerDevian wrote:
> 
> Is there a way to get gxx to *not* link in extra libraries, or get gcc
> to explicitly compile c++ code?

If you have for instance two files 'c.c' and 'cc.cc' and then
you call

gcc -v -c c.c cc.cc

you will happyly see, that gcc will automatically call the
correct compiler for 'c.c' (name cc1.exe) and for 
'cc.cc' (name cc1plus.exe). Now, what you want to get more?

BTW: Of course you can compile them also each with a single
command.

Robert
-- 
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post:    Am Berg 3, D-09573 Dittmannsdorf                     *
* e-Mail:  Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE              *
* WWW:     http://www.tu-chemnitz.de/~rho                       *
*****************************************************************

- Raw text -


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