Mail Archives: djgpp/1997/07/06/05:05:10
| From: | "Ted Johnson" <johnsoth AT carleton DOT edu>
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | Newbie iostream problem.
|
| Date: | 6 Jul 1997 05:28:22 GMT
|
| Organization: | Internet Services Provider Network
|
| Lines: | 27
|
| Message-ID: | <01bc89ce$6ffab1a0$542d18ce@johnsoth.carleton.edu>
|
| NNTP-Posting-Host: | bem-44.dialup.northernnet.com
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hello-
I am making the transition from c to c++ and I'm trying to figure out djgpp
at the same time. When I compile the following code from the iostream docs:
#include <iostream.h>
int main(int argc, char **argv)
{
cout << "Well, hi there.\n";
return 0;
}
I get the following errors:
c:/djgpp/tmp\ccdaaaaa(.text+0x22):work.cc: undefined reference to `cout'
c:/djgpp/tmp\ccdaaaaa(.text+0x27):work.cc: undefined reference to
`ostream::oper
ator<<(char const *)'
This compiles without problem under Visual C++ 5 and g++ on my unix shell
account. What am I doing wrong?
TIA
-Ted Johnson
johnsoth AT carleton DOT edu
- Raw text -