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 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 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 -