delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/23/12:45:50

From: kagenin AT usa DOT net (Kagenin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Read.
Date: Tue, 23 Mar 1999 06:39:59 GMT
Message-ID: <36f736bb.23828714@news.jps.net>
References: <7d6l69$ela$1 AT news DOT igs DOT net>
X-Newsreader: Forte Free Agent 1.11/32.235
NNTP-Posting-Host: 209.142.55.139
X-NNTP-Posting-Host: 209.142.55.139
X-Trace: 23 Mar 1999 07:14:35 -0800, 209.142.55.139
Lines: 36
X-NNTP-Posting-Host: 209.63.224.240
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"John Smith" <discman_64 AT hotmail DOT com> was feeling all groovy on Mon,
22 Mar 1999 18:53:56 -0500 when they posted 
:
>Heres the code i want to compile with RHIDE:
>
>#include <iostream.h>
>
>int main(void)
>{
>    cout << "Hey world";
>    return 0;
>}
>
>Anyone know what this error means?
>
>Error: hello.o: In function 'man':
>hello.cpp(1) Error: undefined reference to 'cout'
>Error: hello.cpp(.text+Ox1e): undefined reference to
>'ostream::operator<<(char const *);
>
>I have LFN=y , i added RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx to the rhide.env
>file, and im totally clueless...
>Please, if someone knows the answer to this please dont tell me to read the
>faq, i have!
>Cya.
>

Change that .cc to a .cpp and you should be fine.  actually, add
another line, replacing .cc with .cpp, and another for .cxx and
another for any other file extension you want associated with C++
Source files.

Kagenin

"When the Going gets Weird, the Weird turn Pro"
-Hunter S. Thompson

- Raw text -


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