Message-ID: <005d01bdf7f1$31e34980$c2ee8081@bhodge> From: "Blaine Hodge" To: Subject: Re: Why doesn't iostream work?? Date: Wed, 14 Oct 1998 22:06:31 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com Try gxx hello.cpp -o hello.exe -----Original Message----- From: Eric Weiss Newsgroups: comp.os.msdos.djgpp To: djgpp AT delorie DOT com Date: October 14, 1998 10:01 PM Subject: Re: Why doesn't iostream work?? >I just installed djgpp and am not having any luck running this program: > >#include >int main(void) >{ > cout << "Hello" << endl; >} > >D:\program files\djgpp>bin\gcc hello.cpp -o hello.exe -lgpp > >generates these error messages: > >d:/progra~1/djgpp/tmp\cccqf32k(.text+0xc):hello.cpp: undefined reference >to `endl(ostream &)' >d:/progra~1/djgpp/tmp\cccqf32k(.text+0x16):hello.cpp: undefined >reference to `cout' >d:/progra~1/djgpp/tmp\cccqf32k(.text+0x1b):hello.cpp: undefined >reference to `ostream::operator<<(char const *)' >d:/progra~1/djgpp/tmp\cccqf32k(.text+0x26):hello.cpp: undefined >reference to `ostream::operator<<(ostream &(*)(ostream &))' > >I've tried this on 95 and NT with the same results (although NT required >me to follow the instructions relative to long file names). > >Any ideas? > >Thanks. > >Eric > >