From: "Max Bowsher" <maxb@ukf.net>
To: "jblazi" <jblazi@gmx.de>
Cc: <cygwin@cygwin.com>
Subject: Re: Cannot compile my first Cygwin program
Date: Tue, 29 Oct 2002 20:13:00 -0000 [thread overview]
Message-ID: <005501c27fa4$86136fa0$78d96f83@pomello> (raw)
In-Reply-To: <200210300011.08499.jblazi@gmx.de>
jblazi <jblazi@gmx.de> 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/
next prev parent reply other threads:[~2002-10-29 23:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-29 15:40 Elfyn McBratney
2002-10-29 17:23 ` jblazi
2002-10-29 20:13 ` Max Bowsher [this message]
[not found] ` <200210300820.31545.jblazi@gmx.de>
2002-10-30 1:38 ` Max Bowsher
2002-10-30 2:59 ` jblazi
-- strict thread matches above, loose matches on Subject: below --
2002-10-30 3:44 Max Bowsher
2002-10-30 5:24 ` Janos Blazi
2002-10-30 6:54 ` David Starks-Browning
2002-10-29 20:47 Dockeen
2002-10-29 15:25 jblazi
2002-10-29 15:37 ` Max Bowsher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='005501c27fa4$86136fa0$78d96f83@pomello' \
--to=maxb@ukf.net \
--cc=cygwin@cygwin.com \
--cc=jblazi@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).