delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | Daniel Verkamp <dverkamp AT purdue DOT edu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: I cannot compile the simplest program |
Date: | Thu, 23 Mar 2006 13:50:52 -0500 |
Organization: | Purdue University |
Lines: | 22 |
Message-ID: | <dvuqlp$gtf$1@mailhub227.itcs.purdue.edu> |
References: | <3WBUf.4318$tN3 DOT 1538 AT newssvr27 DOT news DOT prodigy DOT net> |
NNTP-Posting-Host: | tark-a-059.resnet.purdue.edu |
Mime-Version: | 1.0 |
X-Trace: | mailhub227.itcs.purdue.edu 1143139833 17327 128.211.220.59 (23 Mar 2006 18:50:33 GMT) |
X-Complaints-To: | news AT purdue DOT edu |
NNTP-Posting-Date: | Thu, 23 Mar 2006 18:50:33 +0000 (UTC) |
User-Agent: | Thunderbird 1.5 (Windows/20051201) |
In-Reply-To: | <3WBUf.4318$tN3.1538@newssvr27.news.prodigy.net> |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
Harry J.Smith wrote: > > I installed djgpp but I cannot compile the simplest program: > > #include <stdio.h> > int main(void) > { > cout << "Hello World\n"; > return 0; > } You need to include the correct header: #include <iostream> using namespace std; int main(void) { cout << "Hello World\n"; return 0; } -- Daniel Verkamp <dverkamp AT purdue DOT edu>
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |