delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/04/19:35:18

From: "OmniMeta" <meta AT abacom DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <dHef3.898$Pd2 DOT 3496 AT cabot DOT ops DOT attcanada DOT net>
Subject: Re: Trouble coding with C++
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Message-ID: <ltRf3.26$Ew4.7094@wagner.videotron.net>
Date: Sun, 4 Jul 1999 18:46:21 -0300
NNTP-Posting-Host: 207.253.161.144
X-Complaints-To: abuse AT videotron DOT net
X-Trace: wagner.videotron.net 931128273 207.253.161.144 (Sun, 04 Jul 1999 18:44:33 EDT)
NNTP-Posting-Date: Sun, 04 Jul 1999 18:44:33 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

ES <a AT a DOT a> a écrit dans le message :
dHef3.898$Pd2 DOT 3496 AT cabot DOT ops DOT attcanada DOT net...
> 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 :)
>

Try to compile directly from RHIDE

ALT F9   :  Compile only
F9           :  Compile and link
CTRL F9 :  Compile, link and execute


- Raw text -


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