| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
| Subject: | RE: -mno-cygwin does not work for g++ and g77 |
| MIME-Version: | 1.0 |
| Date: | Sun, 12 May 2002 19:56:29 +1000 |
| X-MimeOLE: | Produced By Microsoft Exchange V6.0.5762.3 |
| content-class: | urn:content-classes:message |
| Message-ID: | <FC169E059D1A0442A04C40F86D9BA7600C6076@itdomain003.itdomain.net.au> |
| X-MS-Has-Attach: | |
| X-MS-TNEF-Correlator: | |
| From: | "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au> |
| To: | <ruediger DOT franke AT de DOT abb DOT com>, <cygwin AT cygwin DOT com> |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id g4C9vH700499 |
You are correct, they don't work right. See the mailing list archives
for detailes. In short, someone needs to contribute a mingw package for
c++ support.
Rob
> -----Original Message-----
> From: ruediger DOT franke AT de DOT abb DOT com [mailto:ruediger DOT franke AT de DOT abb DOT com]
> Sent: Sunday, May 12, 2002 7:54 PM
> To: cygwin AT cygwin DOT com
> Subject: -mno-cygwin does not work for g++ and g77
>
>
> The integrated MinGW works well when calling gcc -mno-cygwin, e.g. for
>
> /* Hello World in C */
> #include <stdio.h>
> int main()
> {
> printf("Hello World!\n");
> return 0;
> }
>
> Unfortunately the library and include paths do not seem to be
> set correctly for g++, e.g. for
>
> // Hello World in C++
> #include <iostream>
> int main()
> {
> cout << "Hello World!\n";
> return 0;
> }
>
> $ g++ -mno-cygwin hello.cpp
> hello.cpp:2: iostream: No such file or directory
>
> $ g++ -mno-cygwin -I/usr/include/g++-3 hello.cpp
> /usr/lib/libstdc++.a(iostream.o)(.text+0x148):iostream.cc:
> undefined reference to `_imp___ctype_'
>
> Also g77 -mno-cygwin fails to load the correct libraries, e.g. for
>
> C Hello World in Fortran
> PROGRAM HELLO
> PRINT *,'Hello World!'
> STOP
> END
>
> Should not the default include and lib paths be set
> automatically by the
> g++ and g77 drivers?
>
> P.S.:
> $ uname -a
> CYGWIN_NT-5.0 FRANKE 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown
>
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |