Mail Archives: djgpp/1997/12/26/13:15:20
From: | "D Hacker" <d_hacker AT hotmail DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Compiling (exreeeem newbie)
|
Date: | Fri, 26 Dec 1997 14:22:30 +0100
|
Organization: | Hack
|
Lines: | 28
|
Message-ID: | <680bb6$7qb@mn5.swip.net>
|
NNTP-Posting-Host: | dialup156-2-9.swipnet.se
|
NNTP-Posting-User: | s-33973
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi!
I am lerning c++ but I have a big problem.
When I tried to compil the simple file below (inledn.cpp) I got this
message:
d:/djgpp/tmp\ccdaaaaa(.text+0x16):inledn.cc: undefined reference to `cout'
d:/djgpp/tmp\ccdaaaaa(.text+0x1b):inledn.cc: undefined reference to
`ostream::op
erator<<(char const *)'
Why??
I have been trying to compil both c and c++ scourses but I allways get error
when compiling!
(hello.cpp)
#include <stream.h>
int main(void)
{
cout << "Hello\n";
return 0;
}
I run djgpp in DOS, and to compill i use the commando: gcc inledn.cpp (i
have tried -o but gcc dosent't know that comman).
Am I doing something wrong??? If, please tell me!
Pleeeeeeeeese help me!!!
Daniel
- Raw text -