X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com From: Jacob Jacobson Subject: Re: gcc cannot find stdio.h Date: Tue, 09 Mar 2010 08:57:34 -0600 Lines: 21 Message-ID: References: <4B958128 DOT 7070607 AT cygwin DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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