Mail Archives: djgpp/1997/06/26/03:03:16
| From: | Laura Morris <chelcmx AT panther DOT Gsu DOT EDU>
|
| 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: | <Pine.GSO.3.95.970625015833.16832A-100000@panther.Gsu.EDU>
|
| NNTP-Posting-Host: | panther.gsu.edu
|
| Mime-Version: | 1.0
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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 <iostream.h>
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
- Raw text -