From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25283 invoked by alias); 29 Oct 2002 23:40:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 25243 invoked from network); 29 Oct 2002 23:40:28 -0000 Received: from unknown (HELO brown.csi.cam.ac.uk) (131.111.8.14) by sources.redhat.com with SMTP; 29 Oct 2002 23:40:28 -0000 Received: from mob22.robinson.cam.ac.uk ([131.111.217.120] helo=pomello) by brown.csi.cam.ac.uk with smtp (Exim 4.10) id 186fyF-0002d7-00; Tue, 29 Oct 2002 23:40:27 +0000 Message-ID: <005501c27fa4$86136fa0$78d96f83@pomello> From: "Max Bowsher" To: "jblazi" Cc: References: <200210300011.08499.jblazi@gmx.de> Subject: Re: Cannot compile my first Cygwin program Date: Tue, 29 Oct 2002 20:13:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2002-10/txt/msg01809.txt.bz2 jblazi wrote: > On Tuesday 29 October 2002 22:57, Elfyn McBratney wrote: >> Try this instead: >> >> gcc -I/cygwin/usr/include test.c -o test.exe >> >> or >> >> gcc test.c -o test.exe -I/cygwin/usr/include The -I option shouldn't be needed at all. > So I did and now I receive a different set of error messages: > > d:\cygwin\home\Administrator\c-programme>gcc -I/cygwin/usr/include > test.cpp -o test > gcc -I/cygwin/usr/include test.cpp -o test > In file included from test.cpp:1: > \cygwin\usr\include\stdio.h:34: stddef.h: No such file or directory > \cygwin\usr\include\stdio.h:37: stdarg.h: No such file or directory > In file included from \cygwin\usr\include\sys\reent.h:14, > from \cygwin\usr\include\stdio.h:45, > from test.cpp:1: > \cygwin\usr\include\sys\_types.h:22: stddef.h: No such file or > directory In file included from \cygwin\usr\include\stdio.h:46, > from test.cpp:1: > \cygwin\usr\include\sys\types.h:59: stddef.h: No such file or > directory *Backslash paths* !?!?! From *Cygwin* gcc? Could you have some other gcc on your Windows system? Run the command "gcc -v" and post the output. >> (by the way you don't need to add the .exe on the exec filename. and >> just out of curiousity do you mean / instead of /cygwin?) > > I do not undertsnad what you mean. I installed Cygwin into d:\cygwin. So / = d:\cygwin, but you don't want the -I option anyway. > (The problem is that I hav no infrastructure on Windows so I change > to Linux to answer my mails and then change back to Windows.) > -- > Janos Blazi -- 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/