X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 	tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Jacob Jacobson <news@biyani.org>
Subject: Re: gcc cannot find stdio.h
Date: Tue, 09 Mar 2010 08:57:34 -0600
Lines: 21
Message-ID: <hn5nkv$nm9$1@dough.gmane.org>
References: <hn3u6i$ppv$1@dough.gmane.org> <4B958128.7070607@cygwin.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
In-Reply-To: <4B958128.7070607@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Larry Hall (Cygwin) wrote:
> On 3/8/2010 5:37 PM, Jacob Jacobson wrote:
>> I am unable to run gcc. I keep getting stdio.h: No such file.
> 
> Try getting rid of the ~\... paths from your Windows path.
> 
> I notice a reference to MKS in your cygcheck output.  Make
> sure MKS is completely hidden from Cygwin.
> 

[hello$:513] echo $PATH
/c/gac2500/bin-xp:/usr/local/bin:/bin:/usr/bin:/usr/ucb:/sbin:/usr/sbin:
/usr/X11R6/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:
/c/win/cw:/c/winxp/sdks/v6.0A/bin:/c/windows/microsoft.net/framework/v2.0.50727
[hello$:514] gcc-4 hello.c
hello.c:2:19: error: stdio.h: No such file or directory
hello.c:3:20: error: stdlib.h: No such file or directory
hello.c: In function 'main':
hello.c:7: warning: incompatible implicit declaration of built-in 
function 'printf'
[hello$:515]


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

