From: Stahl-Michael AT t-online DOT de (ms) Newsgroups: comp.os.msdos.djgpp Subject: Re: problem with c++ libraries Date: Wed, 19 May 1999 00:57:48 +0200 Lines: 43 Message-ID: <7hs6i8$gl8$1@news02.btx.dtag.de> References: <177DCE1F46 AT gyarab DOT cz> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news02.btx.dtag.de 927047048 17064 320030275422-0001 990518 17:04:08 X-Complaints-To: abuse AT t-online DOT de X-Sender: 320030275422-0001 AT t-online DOT de X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com -- Stahl-Michael AT t-online DOT de ZAMP wrote in message <177DCE1F46 AT gyarab DOT cz>... >Dear friends ! > >I am applying too you for help with following probem. >During compilation a simple program with coompiler "gcc.exe" (ver. >2.1) > >#include > >void main() >{ > cout << "Hello world !\n"; >} > > I get an error message: > > c:/djgpp/tmp\cccyq51k(.text+0x19):hello.cpp: undefined reference to >'cout' >c:/djgpp/tmp\cccyq51k(.text+0x19):hello.cpp: undefined reference to >'ostream::op >erator<<(char const *)' > >I would appreciate your advice how to solve this problem. Please >contact >me as soon as possible at polacek DOT 98 AT gyarab DOT cz >With best regards > > Ondrej Polacek > i think you must link into your program the library containing which you required names. They are included in library "iostream.h" try this: #include main() .... grit, ms