| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| From: | jblazi <jblazi AT gmx DOT de> |
| To: | "Elfyn McBratney" <emcb_exposure AT hotmail DOT com> |
| Subject: | Re: Cannot compile my first Cygwin program |
| Date: | Wed, 30 Oct 2002 00:11:08 +0100 |
| Cc: | cygwin AT cygwin DOT com |
| References: | <F29KrUV0hCLwHc9ny7B0000d861 AT hotmail DOT com> |
| In-Reply-To: | <F29KrUV0hCLwHc9ny7B0000d861@hotmail.com> |
| MIME-Version: | 1.0 |
| Message-Id: | <200210300011.08499.jblazi@gmx.de> |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id g9TN1Cr31313 |
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
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
> (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.
> Dont know what the hell that means, can you post your source code?
The source code is something like
#include <stdio.h>
main()
{
printf("Hello world\n");
return 0;
}
(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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |