www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/03/04:52:49

From: elric AT wheel DOT dcn DOT davis DOT ca DOT us (Jeffrey Taylor)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: cout
Date: 3 Oct 1996 04:25:05 GMT
Organization: Davis Community Network - Davis, California, USA
Lines: 23
Message-ID: <52vf71$dvp@mark.ucdavis.edu>
References: <3250D3BB DOT 5856 AT ix DOT netcom DOT com>
NNTP-Posting-Host: wheel.dcn.davis.ca.us
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Dragon Slayer (dragon DOT s AT ix DOT netcom DOT com) wrote:
: I have downloaded your C++ compiler and am having a problem.  first here
: is my test code to get the compiler to work.
: 
: #include <iostream.h>
: 
: void main(void)
: {
: 	cout << "hello" << endl;
: }
: 
: when I compile this using:
: 
: gcc a.C or gcc a.cpp (have also tried gcc -o out a.C etc..)
: 
: it gives me this error message:
: 
: undefined reference to 'cout'
: undefined reference to 'ostream::operator<<(char const *)'
: 
: I set the set djgpp=c:/programming/djgpp/djgpp.env

Add -lstdcx to the end of the command to link in the C++ library.

- Raw text -


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