Message-ID: <3741C57E.AEE89A4E@pallen.dabsol.co.uk> Date: Tue, 18 May 1999 20:54:39 +0100 From: Peter Allen

X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: problem with c++ libraries References: <177DCE1F46 AT gyarab DOT cz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Use gxx.exe to compile c++ programs. (Or g++ if in '9x) Peter Allen ZAMP wrote: > > 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 >