Message-Id: <36E966FA.224EFF2F@cableol.co.uk> Date: Fri, 12 Mar 1999 19:11:54 +0000 From: Allens X-Mailer: Mozilla 4.04 [en] (Win95; I) Mime-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: gcc newbie question References: <7cbaf2$sr6$1 AT news DOT doit DOT wisc DOT edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Get the faq from the place you got DJGPP (faq2??.zip) and read the begining of it. Also read readme.1st as this is also has your problem in. (If it is what I think it is). Your problem is (probably) you are using gcc instead of gxx/g++ to compile c++ code. Peter Allen n8 wrote: > > hello all, just d/led gcc wierd thing tho > > this test snippet: > ------------------------------ > #include > > int main(int argc, char *argv[]) > { > printf("Hello, world\n"); > > return 0; > } > ---------------------------- > > compiles fine > > but for: > --------------------------------------------- > #include > #include > > int main() > { > cout << endl << "Hello, World!" << endl; > > return 0; > } > ------------------------------------------ > gcc returns a bunch of "undefined references" to ostream functions > e.g. "c:/djgpp/tmp\cccqt3oe(.text+0x23):test.cpp: undefined reference to > `cout'" > > am i just spacing something out here? or missing something? "ZIP file > picker" says i have everything i need... > > any help would be greatly appreciated > n8