delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/03/07:59:40

Newsgroups: comp.os.msdos.djgpp
From: manfred DOT heumann AT uni-bielefeld DOT de (Manni Heumann)
Subject: Re: Trouble coding with C++
References: <dHef3.898$Pd2 DOT 3496 AT cabot DOT ops DOT attcanada DOT net>
X-Newsreader: News Xpress 2.01
Date: Sat, 03 Jul 1999 10:32:16 GMT
NNTP-Posting-Host: ppp36-10.hrz.uni-bielefeld.de
Message-ID: <377de6b2.0@news.uni-bielefeld.de>
X-Trace: 3 Jul 1999 12:32:18 +0200, ppp36-10.hrz.uni-bielefeld.de
Lines: 25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <dHef3.898$Pd2 DOT 3496 AT cabot DOT ops DOT attcanada DOT net>, "ES" <a AT a DOT a> wrote:
>Hello, I am a djgpp beginner who started using djgpp yesterday.
>I downloaded all files, unzipped them all in a folder and edited autoexec.
>First i made a little program with C and compiled it by typing " gcc
>hello.c" Then made a program using C++, (#include <iostream.h>
>ain(){ cout<<"hello\n"; return 0;}) and compiled the file. gcc hello.cpp but
>an error occured. It says.. undefined reference to cout and undefined
>reference to ostream::operator<<(char const*)
>
>Can anyone plesase let me know how to solve this problem? Thanks :)
>
>
Take a look at section 1 of the FAQ. You will be able to solve this problem 
then. It might very well be, that you come across some ohter problems in the 
future, and I suggest you read the other sections in the FAQ in this case.

You're welcome.




--

Manni

- Raw text -


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