| 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: | <3A936F8D.60C89FE8@studserv.uni-stuttgart.de> |
| Date: | Wed, 21 Feb 2001 08:34:37 +0100 |
| From: | Tilman Utz <Tilman DOT Utz AT studserv DOT uni-stuttgart DOT de> |
| X-Mailer: | Mozilla 4.7 [de] (Win98; I) |
| X-Accept-Language: | de,en,fr |
| MIME-Version: | 1.0 |
| To: | Patrick Lightbody <plightbo AT cisco DOT com> |
| CC: | cygwin AT cygwin DOT com |
| Subject: | Re: Simple hello world in C++ |
| References: | <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010220191642 DOT 00a60b10 AT ce-nfs-1 DOT cisco DOT com> |
Hello Patrick
Patrick Lightbody schrieb:
> 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;
> }
>
> The program works fine when doing just "g++ test.cpp", but when I do "g++
> -mno-cygwin test.cpp" I get this error:
>
> In file included from
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/../../../../include/g++-3/streambuf.h:36,
> from
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/../../../../include/g++-3/iostream.h:31,
> from test.cpp:1:
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/../../../../include/g++-3/libio.h:30:
> _G_config.h: No such file or directory
This is a well known problem of the mno-cygwin flag. Read
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/mno-cygwin-howto.txt for further
instructions using it.
Regards
Tilman
> I made a symlink of /usr/include/_G_config.h to /usr/include/g++-3, but I
> still get errors. I could continue to make symlinks, but that doesn't seem
> like the right answer to me. What am I missing? Thanks.
>
> -Pat
>
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
--
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 |