From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23556 invoked by alias); 19 May 2011 10:34:39 -0000 Received: (qmail 23321 invoked by uid 22791); 19 May 2011 10:34:38 -0000 X-SWARE-Spam-Status: No, hits=2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-bw0-f43.google.com (HELO mail-bw0-f43.google.com) (209.85.214.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 May 2011 10:34:24 +0000 Received: by bwz14 with SMTP id 14so3030908bwz.2 for ; Thu, 19 May 2011 03:34:22 -0700 (PDT) Received: by 10.204.16.72 with SMTP id n8mr2834956bka.8.1305801262837; Thu, 19 May 2011 03:34:22 -0700 (PDT) Received: from oxy (catv-86-101-123-239.catv.broadband.hu [86.101.123.239]) by mx.google.com with ESMTPS id d10sm1530126bkw.11.2011.05.19.03.34.20 (version=SSLv3 cipher=OTHER); Thu, 19 May 2011 03:34:21 -0700 (PDT) Message-ID: <7534B099523B4E0890A5783F0AB82709@oxy> From: =?ISO-8859-1?Q?G=E1bor_Alsecz?= To: "Csaba Raduly" , References: Subject: Re: /usr/include path issue Date: Thu, 19 May 2011 10:34:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-05/txt/msg00269.txt.bz2 Hello Csaba, Thanks for the reply: > do you actually have a netdb.h ? What does > > $ find /usr/include/ -name netdb.h > > print ? it works fine, command print the /usr/include/netdb.h > gcc -v getip.c print all directories included but /usr/include folder missing Gabor > On Thu, May 19, 2011 at 8:54 AM, Gabor Alsecz wrote: >> Hi All, >> >> I am using the latest cygwin installation and I have an issue with my >> /usr/include directory under cygwin bash. >> >> my .c file snippet looks like this: >> >> #include >> #include >> #include >> #include >> #include >> >> And when running gcc from bash with the followin command: >> gcc getip.c >> >> i receive the following error: >> fatal error: netdb.h: No such file or directory > > Hi Gabor, > > do you actually have a netdb.h ? What does > > $ find /usr/include/ -name netdb.h > > print ? > > > You can check which directories gcc searches for include files by > adding the -v switch to the gcc command line: > > gcc -v getip.c > > netdb.h is part of the cygwin package (according to > http://cygwin.com/cgi-bin2/package-grep.cgi?grep=netdb.h) which is > always installed; it should be in /usr/include, which is searched by > gcc by default. > > Csaba > -- > GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ > The Tao of math: The numbers you can count are not the real numbers. > Life is complex, with real and imaginary parts. > "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus > Torvalds > "People disagree with me. I just ignore them." -- Linus Torvalds > > -- > 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 > -- 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