Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #651
| Date | 2011-08-23 07:41 +0200 |
|---|---|
| From | "Alexander Ausserstorfer" <bavariasound@chiemgau-net.de> |
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: A !GCC-compiler question (C++) |
| Message-ID | <bc6d1d0752.noreply@chiemgau-net.de> (permalink) |
| References | <66eece0652.noreply@chiemgau-net.de> <4e527a31$0$18803$ba4acef3@reader.news.orange.fr> |
| Organization | http://www.chiemgau-net.de |
In der Nachricht
<4e527a31$0$18803$ba4acef3@reader.news.orange.fr>
Rick Murray <heyrickmail-usenet@yahoo.co.uk>
hat geschrieben:
> On 22/08/2011 17:23, Alexander Ausserstorfer wrote:
>
> > #include<iostream>
>
> Shouldn't that be <iostream.h> ?
So far as I understood it, libraries for C include the ending '.h'
whereas libraries for C++ come without.
> > using namespace std;
> > void main()
> > {
> > cout<< "Hello World!"<< endl;
> > }
> >
> > Using the GCC-compiler (4.1.1) for RISC OS doesn't work:
> >
> > *gcc cpp.test -o test
> > test.cpp:1:20: error: iostream: No such file or directory
>
> > test.cpp:3: error: '::main' must return 'int'
>
> Seems a strange requirement...
>
>
> > test.cpp:5: error: 'cout' was not declared in this scope
> > test.cpp:5: error: 'endl' was not declared in this scope
>
> Logical if iostream wasn't 'found'.
That is the point. !GCC seems to missing it, but why? Where should it
be?
Thanks in advance,
A.
--
Alexander Ausserstorfer, Bavaria
RISC OS since 1994
http://home.chiemgau-net.de/ausserstorfer/
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
A !GCC-compiler question (C++) "Alexander Ausserstorfer" <bavariasound@chiemgau-net.de> - 2011-08-22 17:23 +0200
Re: A !GCC-compiler question (C++) Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-08-22 17:48 +0200
Re: A !GCC-compiler question (C++) Martin Wuerthner <spamtrap@mw-software.com> - 2011-08-22 20:00 +0200
Re: A !GCC-compiler question (C++) Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-08-24 05:42 +0200
Re: A !GCC-compiler question (C++) Nick Roberts <tigger@orpheusinternet.co.uk> - 2011-08-24 17:52 +0100
Re: A !GCC-compiler question (C++) Gazza <usenet@garethlock.com> - 2011-09-03 09:16 -0700
Re: A !GCC-compiler question (C++) "Alexander Ausserstorfer" <bavariasound@chiemgau-net.de> - 2011-08-23 07:41 +0200
Re: A !GCC-compiler question (C++) Martin Wuerthner <spamtrap@mw-software.com> - 2011-08-23 12:20 +0200
Re: A !GCC-compiler question (C++) Theo Markettos <theom+news@chiark.greenend.org.uk> - 2011-08-23 16:57 +0100
Re: A !GCC-compiler question (C++) David Pitt <news2@pittdj.co.uk> - 2011-08-23 17:57 +0100
Re: A !GCC-compiler question (C++) "Alexander Ausserstorfer" <bavariasound@chiemgau-net.de> - 2011-08-24 16:28 +0200
Re: A !GCC-compiler question (C++) Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-08-26 07:44 +0200
Re: A !GCC-compiler question (C++) Theo Markettos <theom+news@chiark.greenend.org.uk> - 2011-08-26 10:31 +0100
Re: A !GCC-compiler question (C++) Jim Lesurf <jcgl@audiomisc.co.uk> - 2011-08-27 11:40 +0100
Re: A !GCC-compiler question (C++) Rainer Schubert <dl6hbo@dl6hbo.inka.de> - 2011-08-26 18:54 +0200
Re: A !GCC-compiler question (C++) "Alexander Ausserstorfer" <bavariasound@chiemgau-net.de> - 2011-09-01 05:30 +0100
Re: A !GCC-compiler question (C++) Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-09-01 09:48 +0100
Re: A !GCC-compiler question (C++) Alexander Ausserstorfer <bavariasound@chiemgau-net.de> - 2011-09-12 08:43 +0100
Re: A !GCC-compiler question (C++) Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-09-12 13:12 +0100
Re: A !GCC-compiler question (C++) Gavin Wraith <gavin@wra1th.plus.com> - 2011-09-12 14:47 +0100
Re: A !GCC-compiler question (C++) Chris Johnson <chrisjohnson+news@spamcop.net> - 2011-09-12 14:34 +0100
Re: A !GCC-compiler question (C++) Martin Wuerthner <spamtrap@mw-software.com> - 2011-09-01 11:05 +0200
Re: A !GCC-compiler question (C++) David Pitt <pittdj@pittdj.co.uk> - 2011-08-22 16:52 +0100
Re: A !GCC-compiler question (C++) Martin Wuerthner <spamtrap@mw-software.com> - 2011-08-22 19:44 +0200
Re: A !GCC-compiler question (C++) David Pitt <pittdj@pittdj.co.uk> - 2011-08-22 18:50 +0100
csiph-web