Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Originating-IP: [12.254.208.112]
X-Originating-Email: [mgainty@hotmail.com]
From: "Martin Gainty" <mgainty@hotmail.com>
To: <Robert.Bram@infotech.monash.edu.au>, "Cygwin" <cygwin@cygwin.com>
References: <DDEDIPLLKIAMLBCBFCHEGEJKCJAA.relaxedrob@optusnet.com.au>
Subject: Re: C libraries
Date: Sun, 13 Apr 2003 22:18:17 -0700
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
Message-ID: <Law10-OE25BvRnfvcyS00000d56@hotmail.com>
X-OriginalArrivalTime: 14 Apr 2003 04:18:51.0847 (UTC) FILETIME=[F46B4570:01C3023C]

My cygwin stdio.h is in %HOME%/usr/include
assuming you are compiling from HOME folder you can
SET INCLUDE=/usr/include
make
and you should be good to go..
Cheers,
-Martin
----- Original Message -----
From: "Robert Mark Bram" <relaxedrob@optusnet.com.au>
To: "Martin Gainty" <mgainty@hotmail.com>; "Cygwin" <cygwin@cygwin.com>
Sent: Sunday, April 13, 2003 9:12 PM
Subject: RE: C libraries


> Hi Martin,
>
> I do not seem to have in INCLUDE environment variable:
>
>   $ set | grep INCLUDE
>
>   $
>
> When I run 'set' by itself, I do not see an INCLUDE entry either.
>
> What should I set it to?
>
> Rob
> :)
>
> > -----Original Message-----
> > From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> > Of Martin Gainty
> > Sent: Monday, 14 April 2003 3:04 PM
> > To: Robert.Bram@infotech.monash.edu.au; Cygwin
> > Subject: Re: C libraries
> >
> >
> > Robert-
> > what does your include environment variable point to?
> > Martin
> >
> > ----- Original Message -----
> > From: "Robert Mark Bram" <relaxedrob@optusnet.com.au>
> > To: "Cygwin" <cygwin@cygwin.com>
> > Sent: Sunday, April 13, 2003 8:54 PM
> > Subject: C libraries
> >
> >
> > > Hi All
> > >
> > > I am aware that this might not be a *cygwin* problem - but I
> > think it has
> > to
> > > do with libraries I don't have (or don't have in the right place) and
I
> > > would very much appreciate some assistance.
> > >
> > > I am trying to compile a sample piece of c code:
> > > #include <stdio.h>
> > >
> > > int main(int argc, char *argv[])
> > > { int ch;
> > >   int vowel_count = 0,
> > >       other_char_count = 0;
> > >
> > >   while ((ch = getchar()) != EOF)
> > >     switch (ch)
> > >     {
> > >       case 'a':
> > >       case 'e':
> > >       case 'i':
> > >       case 'o':
> > >       case 'u': vowel_count++;
> > >               break;
> > >       default:  other_char_count++;
> > >     }
> > >   printf("Vowels: %d; Other: %d\n",
> > > vowel_count, other_char_count);
> > >   exit(0);
> > > }
> > >
> > >
> > > I get a stream of errors from gcc reporting missing files..
> > >
> > > $ gcc text.c
> > > In file included from /usr/include/stdio.h:29,
> > >                  from text.c:1:
> > > /usr/include/_ansi.h:16:24: sys/config.h: No such file or directory
> > > In file included from text.c:1:
> > > /usr/include/stdio.h:45:23: sys/reent.h: No such file or directory
> > > /usr/include/stdio.h:46:23: sys/types.h: No such file or directory
> > > In file included from text.c:1:
> > > /usr/include/stdio.h:50: parse error before "fpos_t"
> > > /usr/include/stdio.h:51: parse error before "FILE"
> > > /usr/include/stdio.h:57:23: sys/stdio.h: No such file or directory
> > > /usr/include/stdio.h:162: parse error before '*' token
> > > /usr/include/stdio.h:164: parse error before '*' token
> > > /usr/include/stdio.h:165: parse error before '*' token
> > >  .... <snip>
> > >
> > > When I launched Cygwin's setup.exe, I selecte the gcc and make
> > utilities.
> > > Was there another option I should have selected to include the library
> > files
> > > mentioned here or is my error of some other kind?
> > >
> > > Thanks for any advice!
> > >
> > > Rob
> > > :)
> > > :->
> > > :-}
> > >
> > >
> > > --
> > > 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/
> > >
> > >
> >
> > --
> > 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/
> >
>
> --
> 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/
>
>

--
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/

