Date: Mon, 05 Dec 1994 08:02:49 -0500 (CDT) From: Aaron Ucko Subject: Re: trouble with iostream.h and other questions.... To: SO13493 AT academia DOT swt DOT edu Cc: Djgpp AT sun DOT soe DOT clarkson DOT edu Organization: Rockhurst College; Kansas City, MO >My first is with iostream.h When I try to compile the code below >I get the following error messages: > >undefined reference to 'cout' >undefined reference to 'ostream::operator<<(char const *)' > >I used gcc -d junk.cc to compile. >I have iostream.h in the /cplusinc directory >I really do not understand why it won't work. Any help is appreciated. You need to tell it to link with the C++ libs--try gcc junk.cc -lgpp (You may want to throw in some optimization too... :-) ) > >My second question is about the online help. I have downloaded the >djdoc and the txi .zip files and I cannot get the INFO.EXE to work >right. It runs and shows me the main index, but when I try access any of >modules it ralphs. I ran the file TESTIT.BAT and it told me that >the file LIBCREF.I was missing and it is. But I can't find it in any >of the .zip files from teh archive. libcref.i is obsolete. As for the other files, two things: (1) did you put them in the right directories? (2) Did you get _just_ the .txi's? If so, you need to run makeinfo on them to get the .infs needed by info.exe. --- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) -=- httyp! -=*=-Just because you're paranoid doesn't mean they aren't out to get you.-=*=- Geek code 2.1 [finger hayden AT vax1 DOT mankato DOT msus DOT edu for explanation]: GCS/M/S d(-) H s g+ p? !au a-- w+ v+ C++(+++)>++++ UL++(-)(S+)>++++ P++ L+(++) 3(-) E-(----) !N>++ K- W-(---) M-(--) V(--) po-(--) Y+(++) t(+) !5 j R G tv--(-) b+++ !D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?