delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/05/05:45:10

From: "Ron Grunwald" <RGRUNWAL AT wasp DOT cs DOT cowan DOT edu DOT au>
Organization: Edith Cowan University
To: SHINER BOCK OR NOTHING <SO13493 AT academia DOT swt DOT edu>
Date: Mon, 5 Dec 1994 15:39:04 GMT+800
Subject: Re: trouble with iostream.h and other questions....
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Return-Receipt-To: "Ron Grunwald" <RGRUNWAL AT wasp DOT cs DOT cowan DOT edu DOT au>

Regarding your mail below:
 
> I get the following error messages:
> 
> undefined reference to 'cout'
> undefined reference to 'ostream::operator<<(char const *)'
> 
> I used gcc -d junk.cc to compile.
> I have iostream.h in the /cplusinc directory
> I really do not understand why it won't work. Any help is appreciated.
 
 
The problem is that you need to include the C++ library.

Compile with:

   gcc -v -g -o junk junk.cc -lgpp -lm

This should work if you're using djgpp V1.12.

Regards, Ron.

 
> // test program....
> 
> #include <iostream.h>
> 
> main() {
> 
>   cout << "hello world\n";
> 
> }
> 
> 
> 
> My second question is about the online help. I have downloaded the
> djdoc and the txi .zip files and I cannot get the INFO.EXE to work
> right. It runs and shows me the main index, but when I try access any of
> modules it ralphs. I ran the file TESTIT.BAT and it told me that
> the file LIBCREF.I was missing and it is. But I can't find it in any
> of the .zip files from teh archive.
> 
> Please help a newbie! I'll buy you a beer if you're ever in Texas.
> 
> Thanks,
> Steven
> 
> -----
> 
> 	Just shut your mouth how can you say, I go about things the wrong way
> 	I am human and I need to be loved, just like everybody else does
> 
> 					The Smiths
> 
> 

 ********************************************************************
 | Author.............. Ron Grunwald                                | 
 | Internet............ r DOT grunwald AT cowan DOT edu DOT au                     |
 | Phone............... (09)273 8027 or (09)273 8468                |
 |------------------------------------------------------------------|
 | Department.......... Computer Operations and Systems Management  |
 | Division/Faculty.... Information Technology                      | 
 | Institute........... Edith Cowan University, Churchlands         | 
 | Location............ Perth, Western Australia                    |
 ********************************************************************
 "I don't have any solution but I certainly admire the problem!"



- Raw text -


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