Date: Sat, 27 Jan 1996 21:18:26 -0600 (CST) From: Red Snow To: elerath AT Rt66 DOT com cc: djgpp AT delorie DOT com Subject: Re: I can't compile C++... Message-ID: MIME-Version: 1.0 I am very glad to hear that I am not the only one having that problem. I wrote the excact same program (but ofcourse with different output) and got the exact same err message. Someone beter help us out here. Also, does anyone know where I can find information on what each function in graphic.h does? And can someone direct me to a better graphich header too? Thank you, Atip Asvanund On 26 Jan 1996 elerath AT Rt66 DOT com wrote: > In <30fb0332 DOT 1350250 AT nntp DOT ix DOT netcom DOT com>, dannyyoo AT ix DOT netcom DOT com (Danny Yoo) writes: > >Ian Viemeister wrote: > > > >>>merry way until it started spitting out errors when it saw cin and cout > >>>(BTW, I did #include). It didn't give me line numbers for > >> > >>You have forgotten to add -lgpp to the gcc command line. This tells > >>the linker to add in the C++ libs. Please note, this is likely the > >>*most* Frequently Asked Question about compiling C++, and it is > >>answered in the FAQ (faq102.zip at the DJGPP sites) > > > > I'm having the same stupid problem, but I AM using > >gcc -lgpp [filename], and it still does it. Here's my program and the > >output: > > > >#include "iostream.h" > >void main(void) { > > cout << "Hello World!\n"; > >} > > > > > >test.cc(.text+0x1c): undefined reference to `cout' > >test.cc(.text+0x21): undefined reference to `ostream::operator<<(char > >const *)' > > > I am having _*exactly*_ the same problem with _*exactly*_ the same program. > I have screwed around for hours and don't know what to do. I have checked > to be sure that cplusinc is in my .env file correctly, run gcc -lgpp [filename], > etc. My error message is identical (except that i called my program hello.) >