From: Laura Morris Newsgroups: comp.os.msdos.djgpp Subject: undefined ref to 'cout' Date: Wed, 25 Jun 1997 02:06:46 -0400 Organization: Georgia State University Lines: 33 Message-ID: NNTP-Posting-Host: panther.gsu.edu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hello All, I just installed DJGPP on my system at home and I've come up with a weird error. I tried this simple little program below: --------------------------- #include void main(void) { cout << "hello"; } ---------------------------- When I tried to compile it (gcc -o output.exe sample.cc) I received the following error: undefined reference to 'cout' undefined reference to 'ostream:operator<<(char const *)' I have no idea what this means but I do have lgp271b.zip installed under c:\djgpp and iostream.h is in the lang/cxx directory. I would appreciate any suggestions. Thanks, Laura Morris Dept. of Chem. GSU laura AT gsu DOT edu