X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Daniel Verkamp 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: 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 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Precedence: bulk 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