www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/21/06:32:33

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Compiling as C & not C++?
Date: Tue, 20 May 1997 18:54:17 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 15
Message-ID: <3381F359.2F1C@cs.com>
References: <01bc64bc$160e5ac0$69e22499 AT syntaxlogic DOT earthlink DOT net>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp106.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Alex Kain wrote:
> 
> How do you configure DJGPP to compile code as C code and not as C++ code if
> the C++ files are already unzipped into the djgpp directory?  I'm trying to
> see if I can make a crpg executable smaller.

Make sure you're invoking gcc with lowercase filenames.  To gcc,
"HELLO.C" is a C++ program, while "hello.c" is a C program.  Be careful!

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I |     mailto:fighteer AT cs DOT com      |
| Proud owner of what might one   |   http://www.cs.com/fighteer    |
| day be a spectacular MUD...     | Plan: To make Bill Gates suffer |
---------------------------------------------------------------------

- Raw text -


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