Xref: news-dnh.mv.net comp.os.msdos.djgpp:4346 From: Borysiak Gregory - GusS - Newsgroups: comp.os.msdos.djgpp Subject: Re: Help: undef ref to 'cout',undef ref to 'ostream'::operator<<(char(const*)' Date: Sat, 13 Jan 1996 06:40:17 +0000 Organization: Institut Universitaire de Technologie - Metz - France Lines: 28 Message-ID: <30F753D1.41C67EA6@iut.univ-metz.fr> References: <4d68qq$6bb AT brahms DOT udel DOT edu> NNTP-Posting-Host: cetautomatix.iut.univ-metz.fr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Yue-hong Zheng wrote: > > I want to compile the following c++ prog.: > > #include > main () > > { > cout <<"hello"; > return 0; > } > > After I do"gcc -v -x c++ prog1.cpp", i got the above error message. > I also find that iostream.h resides in \djgpp\cplusinc When you link your program add : -lgpp so could use the c++ lib. Greg -- /------------------------------------------\ Member of ED209 team work and SWORD Group. | Borysiak Gregory | ed209 available on any simtel20 site : | Studies : Computer science -IUT Metz | -> /msdos/editor/ed209v13.zip | Email : borysgr AT iut DOT univ-metz DOT fr | \------------------------------------------/