delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/31/20:02:08

Xref: news2.mv.net comp.os.msdos.djgpp:8117
From: mikejaekel AT aol DOT com (MIKEJAEKEL)
Newsgroups: comp.os.msdos.djgpp
Subject: Problems with c++ library
Date: 31 Aug 1996 18:06:05 -0400
Organization: America Online, Inc. (1-800-827-6364)
Lines: 23
Sender: root AT newsbf02 DOT news DOT aol DOT com
Message-ID: <50ad0d$9ri@newsbf02.news.aol.com>
Reply-To: mikejaekel AT aol DOT com (MIKEJAEKEL)
NNTP-Posting-Host: newsbf02.mail.aol.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm a newbie in C++ (coming form Pascal and OOP-Pascal).
First I started to use the GNU-C++ compiler for Linux. Now I found the
GNU-C++-compiler for DOS which I understand as quite similar to the
Linux/Unix-version.
I tested GNU for DOS with some examples (which were well-working under
Linux), that I used to learn C++ in Linux. But the programs are not
working under DOS. Here is the Source:

#include <iostream.h>
int main (void)
{
  cout << "Here is the error.\n";
  return 0;
}

Here is the output:
//test.cc(.text+0x22): undefined referenz to 'cout'
//test.cc(.text+0x27): undefined referenz to 'ostream::operator<<char
const *)'

Please help me. Where will I found additional informations for future
problems?
Please write to MIKEJAEKEL AT aol DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019