www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/09/04:24:06

From: norsk AT interlink DOT no (Kim Robert Blix)
Newsgroups: comp.os.msdos.djgpp
Subject: So.. What can be wrong here?
Date: 8 Oct 1996 23:55:17 GMT
Organization: InterLink AS, Trondheim, Norway
Lines: 31
Message-ID: <53epl5$5m0@ranger.interlink.no>
NNTP-Posting-Host: sierra.interlink.no
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ok.. First of all, the response on this group is incredible.. credit to 
you guys! :)
Although that may easily lead to people (like me :) ) posting here *before*
trying other things.. Well, Ive read the FAQ, and still, Im pretty much
stuck.

take a look at this:

#include <iostream.h>
void main() {
 cout << "Hello world!"
}

compiled with "gcc hello.C" ..
I get a "undefined reference to 'cout'"
and     "undefined reference to 'ostream::operator<<(char *)' 
(not sure if the last line is 100 percent correct though.)

And if i copile with "gcc hello.c" (standard c, not ++), It cant find 
iostream.h at all... Im New to both c and c++, so I recon it does not
exist in regular c.. but whats wrong with the c++ compiling then?

Kim Robert Blix

--
-------------                      .:::.                            | 
norsk AT interlink DOT no                E o o 3                         - + -
                          ---oOoOo--( )--oOoOo---                   | 
Through the darkness of future past, the magician longs to see,
one chants out between two worlds, fire walk with me.  -Dave, Twin Peaks. 
---------------------

- Raw text -


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