| www.delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <1165497359.4578140f8d81c@imp6-g19.free.fr> |
| Date: | Thu, 07 Dec 2006 14:15:59 +0100 |
| From: | hermitte AT free DOT fr |
| To: | Matthias Blaickner <matthiasblaickner AT yahoo DOT com> |
| Cc: | cygwin AT cygwin DOT com |
| Subject: | Re: iostream |
| References: | <874973 DOT 68359 DOT qm AT web33010 DOT mail DOT mud DOT yahoo DOT com> |
| In-Reply-To: | <874973.68359.qm@web33010.mail.mud.yahoo.com> |
| MIME-Version: | 1.0 |
| User-Agent: | Internet Messaging Program (IMP) 3.2.5 |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hello,
Matthias Blaickner <matthiasblaickner AT yahoo DOT com> wrote:
> I have problems with cygwin supporting iostream.h I
> use g++ as compiler and I'm told to remove the .h
> suffix from the header. doing so results in error
> messages about unknown functions.
> the test programm is:
>
> #include
> main()
> {
> cout << "He's not the Messiah. He's a very naughty
> boy" << endl;
> }
> [snip]
Upgrade your C++ reference material. The .h header have deprecated in 98. IIRC,
GCC became conformant with the 3.x version.
This is not a cygwin question, but a C++ question.
Anyway, check any C++ FAQ (like the C++lite -> §27.4 and 27.5) and update your
courses/tutorials.
Namespaces are what you have missed. BTW, main() is supposed to return an int.
HTH,
--
Luc Hermitte
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |