1.5.24: 'gcc -mno-cygwin' doesn't find standard headers

Greg Chicares chicares@cox.net
Sun Apr 8 12:01:00 GMT 2007


Yesterday, 'gcc -mno-cygwin' worked fine. Today, it stopped
working (testcase below) after I ran 'setup.exe' to get
another package. I then tried, in succession:
 - reinstalling gcc-mingw-core and gcc-mingw-g++
 - reinstalling gcc-core and gcc-g++
 - uninstalling and reinstalling all of cygwin
but the issue persists. Testcase:

/home/chicares[0]$cat no-stdio.c
#include <stdio.h>
int main() {puts("hello"); return 0;}
/home/chicares[0]$gcc no-stdio.c
/home/chicares[0]$./a
hello
/home/chicares[0]$gcc -mno-cygwin no-stdio.c
no-stdio.c:1:19: stdio.h: No such file or directory
/home/chicares[1]$

Yet that header is present:

/home/chicares[0]$ls /usr/i386-pc-cygwin/include/mingw/stdio.h -o
-rwxr-x---+ 1 chicares 15051 Apr  7 10:03 /usr/i386-pc-cygwin/include/mingw/stdio.h

[Perhaps this is related to the message that "C.W. Betts"
posted on Sat, 7 Apr 2007 22:26:59 -0600 :
  http://cygwin.com/ml/cygwin/2007-04/msg00240.html
I have only just subscribed to this mailing list and don't know
any way to reply to a message that predates my subscription.]
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20070408/a2a635d8/attachment.ksh>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list