Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: -mno-cygwin does not work for g++ and g77 To: cygwin AT cygwin DOT com Message-ID: From: ruediger DOT franke AT de DOT abb DOT com Date: Sun, 12 May 2002 11:54:26 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii The integrated MinGW works well when calling gcc -mno-cygwin, e.g. for /* Hello World in C */ #include 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 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/