| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Message-ID: | <027e01c09bbf$2f91b170$3c5350d8@bluesguitar.org> |
| From: | "Matthew Smith" <matts AT bluesguitar DOT org> |
| To: | "Cygwin" <cygwin AT sources DOT redhat DOT com> |
| References: | <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010220191642 DOT 00a60b10 AT ce-nfs-1 DOT cisco DOT com> |
| Subject: | Re: Simple hello world in C++ |
| Date: | Tue, 20 Feb 2001 22:31:40 -0600 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 5.50.4133.2400 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
> I'm trying to compile a simple "Hello World" using the latest build tools
> in cygwin, but with the -mno-cygwin option so that the resulting object
> does't require the cygwin1.dll:
>
> #include <iostream.h>
>
> int main(void) {
> std::cout << "Hello!\n";
> return 0;
> }
Not sure if this is related to your problem, but IIRC, if you're using
namespaces, you should be using <iostream>, not <iostream.h>.
cheers,
-Matt
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |