delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/02/20:37:41

Message-Id: <199912030135.UAA16033@delorie.com>
From: "Leon" <Leon AT caresystems DOT com DOT au>
To: <djgpp AT delorie DOT com>
Subject: Re: Newbie: C++ compiling
Date: Fri, 3 Dec 1999 11:36:06 +1000
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1161
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

what program are you using to compile? (ie gxx?)


With best regards
* * * * * * * * * * * * * * * * * * * *
Leøn
* * * * * * * * * * * * * * * * * * * *
Mastering Solutions
(design and development)
www.bigfoot.com/~xt_contact
www.powerup.com.au/~lvz/resume/entry.htm

> 
> > Thanks for the correction. But now the error message becomes like this.
> > I don't know what my mistake is.
> >
> > =====Error Message 1=====
> > hello.cpp: In function `int main()':
> > hello.cpp:5: `std' undeclared (first use this function)
> > hello.cpp:5: (Each undeclared identifier is reported only once
> > hello.cpp:5: for each function it appears in.)
> > hello.cpp:5: parse error before `::'
> >
> > =====Source Code 1=====
> > #include <iostream.h>
> >
> > int main()
> > {
> >   std::cout << "Hello, World\n";
> >   return 0;
> > }
> >
> > =====Error Message 2=====
> > c:/djgpp/tmp\ccdaaaaa(.text+0x1e):hello.cc: undefined reference to
`cout'
> > c:/djgpp/tmp\ccdaaaaa(.text+0x23):hello.cc: undefined reference to
> > `ostream::ope
> > rator<<(char const *)'
> >
> > =====Source Code 2=====
> > #include <iostream.h>
> >
> > int main()
> > {
> >   cout << "Hello, World\n";
> >   return 0;
> > }

- Raw text -


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