delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/18/15:55:57

Message-ID: <3741C57E.AEE89A4E@pallen.dabsol.co.uk>
Date: Tue, 18 May 1999 20:54:39 +0100
From: Peter Allen <P DOT Allen AT pallen DOT dabsol DOT co DOT uk>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: problem with c++ libraries
References: <177DCE1F46 AT gyarab DOT cz>
Reply-To: djgpp AT delorie DOT com

Use gxx.exe to compile c++ programs.  (Or g++ if in '9x)

		Peter Allen

ZAMP wrote:
> 
> Dear friends !
> 
> I am applying too you for help with following probem.
> During compilation a simple program with coompiler "gcc.exe" (ver.
> 2.1)
> 
> #include <iostream.h>
> 
> void main()
> {
>  cout << "Hello world !\n";
> }
> 
>  I get an error message:
> 
>  c:/djgpp/tmp\cccyq51k(.text+0x19):hello.cpp: undefined reference to
> 'cout'
> c:/djgpp/tmp\cccyq51k(.text+0x19):hello.cpp: undefined reference to
> 'ostream::op
> erator<<(char const *)'
> 
> I would appreciate your advice how to solve this problem. Please
> contact
> me as soon as possible at  polacek DOT 98 AT gyarab DOT cz
> With best regards
> 
>                 Ondrej Polacek
>

- Raw text -


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