| delorie.com/archives/browse.cgi | search |
| From: | "Georg v. Wichert" <georg AT rt DOT e-technik DOT th-darmstadt DOT de> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: hello world |
| Date: | Wed, 12 Feb 1997 19:40:54 +0100 |
| Organization: | Technisch Hochscule Darmstadt (Germany) |
| Lines: | 27 |
| Message-ID: | <33020EB6.660F@rt.e-technik.th-darmstadt.de> |
| References: | <5draph$fhk$2 AT thor DOT atcon DOT com> |
| NNTP-Posting-Host: | neuron.rt.e-technik.th-darmstadt.de |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Golem wrote:
>
> ugh! i can't beleive i got an error for djgpp when i first ran it!!
> here is my source code, saved as 'hello1.cc':
> main() {
> printf("Hello world!");
> }
> and when i used the msdos command line:
> gcc -c -Wall hello1.cc
> i get a 'warning: implicit declaration of function 'int printf(...)'
> what the..??
THis is not an error, but the compilers very kind way of telling
you to learn to read your C textbooks carefully!
if you do not include the header file which has the printf prototype,
the compiler assumes
int printf(int);
and informs you about the fact that this may result in servere
errors.
for the rest of your questions I recommend you to read the FAQ available
at the same place where you got the compiler package.
Bye Georg
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |