Mail Archives: djgpp/1997/02/14/04:36:07
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 -