Mail Archives: djgpp/1998/04/25/14:47:10
From: | pixel DOT ninja AT airmail DOT net (Hai Nguyen)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | << operator
|
Date: | Sat, 25 Apr 1998 18:10:22 GMT
|
Organization: | n.a
|
Lines: | 32
|
Message-ID: | <2F9C872C00E8B4BE.5D2FEA8B831C8BF4.C7D3B02D31198014@library-proxy.airnews.net>
|
NNTP-Proxy-Relay: | library.airnews.net
|
NNTP-Posting-Time: | Sat Apr 25 13:11:27 1998
|
NNTP-Posting-Host: | 2007.iadfw.net
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I got past the evil include thing;
however when i try to compile/link this program this is the error I
get:
H:\test>gcc test.cpp -o t
h:/djgpp/tmp/ccaaaaaa1.o(.text+0x11):test.cpp: undefined reference to
`cout'
h:/djgpp/tmp/ccaaaaaa1.o(.text+0x16):test.cpp: undefined reference to
`ostream::
operator<<(char const *)'
here's the code:
#include <iostream.h>
void main() {
cout << "hello world\n";
}
How do i get around this? Is there a compiler option or am i just
missing something .... again, i'm new to this;
- Hai
pixel DOT ninja AT airmail DOT net
- Raw text -