Mail Archives: djgpp/1996/03/21/01:34:07
Xref: | news2.mv.net comp.os.msdos.djgpp:2001
|
From: | gmontem AT sfsu DOT edu (GEORGE ARUGAY MONTEMAYOR)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Q: C++ compilation
|
Date: | 19 Mar 1996 00:32:55 GMT
|
Organization: | San Francisco State University
|
Lines: | 35
|
Message-ID: | <4ikvbn$oj0@news.csus.edu>
|
NNTP-Posting-Host: | gmontem AT pluto DOT sfsu DOT edu
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
--
Hi,
I cannot see to compile C++ code correctly. Here's an example, given the
name of the file as test.cc:
syntax: gcc test.cc
Is that correct? Here are the errors djgpp v2.0 printed out:
test.cc(.text+0x1e): undefined reference to `cout'
test.cc(.text+0x23): undefined reference to `ostream::operator<<(char const *)'
In case you're wondering what the code looks like, it's a simple 'Hello,
World' program:
#include <iostream.h>
void main (void) {
cout << "Hello, Master!\n";
}
Please help!
Thank you,
-george
- Raw text -