delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/21/05:48:14

From: "Peter Lewerin" <peter DOT lewerin AT krax DOT pp DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Compiling as C & not C++?
Date: 20 May 1997 20:17:31 GMT
Organization: A customer of Tele2
Lines: 16
Message-ID: <01bc655a$e9bd71a0$4073f482@peterlew>
References: <01bc64bc$160e5ac0$69e22499 AT syntaxlogic DOT earthlink DOT net>
NNTP-Posting-Host: mn8.swip.net
Cache-Post-Path: mn8!unknown AT dialup115-4-4 DOT swipnet DOT se
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


Alex Kain <syntaxlogic AT earthlink DOT net> skrev i inlägg
<01bc64bc$160e5ac0$69e22499 AT syntaxlogic DOT earthlink DOT net>...
> How do you configure DJGPP to compile code as C code and not as C++ code 

If your source code files are called .cc (or .cpp), just rename them to *.c
and they will be compiled as C code.  You can also use the option -x c.

If you have installed the Info reader, you can read the documentation if
you give this command:

info gcc invo over

and scroll down a couple of screens.

- Raw text -


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