From: Dazzling Dazz Newsgroups: comp.lang.c++,comp.os.msdos.djgpp Subject: Re: CIN COUT Date: 5 Mar 1997 13:08:43 GMT Organization: University of Newcastle upon Tyne Lines: 35 Message-ID: <5fjr8r$3ko@whitbeck.ncl.ac.uk> References: <331BC0D5 DOT 5CB AT aracnet DOT com> NNTP-Posting-Host: eighton.ncl.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Can Someone please tell me what is wrong with the following program. I try to compile it on djgpp but I get 'undeclared' or something error. Maybe I don't have the right iostream.h file? #include main() { cout << "Hello, World"; } Thanks in advance. - bardito AT aracnet DOT com +++++++++++++++++++++++++++ wouldn't you have to declare main as a void or int? Like this: void main() { ... return; } OR int main() { ... return 0; } I've never used that compiler so this is probably wrong, sorry.