X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Harry J. Smith" Newsgroups: comp.os.msdos.djgpp References: <3WBUf.4318$tN3 DOT 1538 AT newssvr27 DOT news DOT prodigy DOT net> Subject: Re: I cannot compile the simplest program Lines: 32 Organization: Self-employed MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Message-ID: NNTP-Posting-Host: 69.224.17.181 X-Complaints-To: abuse AT prodigy DOT net X-Trace: newssvr14.news.prodigy.com 1143211950 ST000 69.224.17.181 (Fri, 24 Mar 2006 09:52:30 EST) NNTP-Posting-Date: Fri, 24 Mar 2006 09:52:30 EST X-UserInfo1: [[PAPDCAO AT TGR_\XGBNTORTDFZ\@@FXLM AT TDOCQDJ@_ AT FNHB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U AT FRFUEXR@KFXYDBPWBCDQJA AT X_DCBHXR[C@\EOKCJLED_SZ AT RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN Date: Fri, 24 Mar 2006 14:52:30 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Daniel Verkamp" wrote in message news:dvuqlp$gtf$1 AT mailhub227 DOT itcs DOT purdue DOT edu... > Harry J.Smith wrote: >> >> I installed djgpp but I cannot compile the simplest program: >> >> #include >> int main(void) >> { >> cout << "Hello World\n"; >> return 0; >> } > > You need to include the correct header: > > #include > using namespace std; > int main(void) > { > cout << "Hello World\n"; > return 0; > } > > -- Daniel Verkamp Thanks to all that helped. The program works now. I got an MS in mathematics from Purdue University in 1956. -Harry http://www.geocities.com/hjsmithh/