cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/14/04:36:07

From: frenchc AT cadvision DOT com (Calvin French)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: hello world
Date: Thu, 13 Feb 1997 19:23:31 GMT
Organization: CADVision Development Corp.
Lines: 25
Message-ID: <5e11a0$479u@elmo.cadvision.com>
References: <5draph$fhk$2 AT thor DOT atcon DOT com> <33020EB6 DOT 660F AT rt DOT e-technik DOT th-darmstadt DOT de> <3302C702 DOT 15FB AT LSTM DOT Ruhr-UNI-Bochum DOT De>
NNTP-Posting-Host: ts13ip217.cadvision.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De> wrote:

>Right, but is this not a bug? I thought that the extension .cc
>makes gcc think it is a C++ program. And under C++ prototypes
>are required, otherwise an error should be generated (Which 
>is, IMHO, the right punishment for not using prototypes, even
>in plain C ;-) So, where am I wrong?

I think what Georg was saying (am I following this thread right) is
something along the lines of:

"Hey! Wise up, punk! You need #include <stdio.h> if you expect to use
printf()"

=)

gcc is complaining about the prototype for printf() being missing,
isn't it?

On the other hand, if this were really the case I don't see how this
program could produce any kind of executable, unless I missed
something back there. Hm.

- Calvin -

- Raw text -


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