X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.4 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <29202332.post@talk.nabble.com> Date: Mon, 19 Jul 2010 01:09:16 -0700 (PDT) From: alex42 To: cygwin AT cygwin DOT com Subject: Re: search.h In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <29201556 DOT post AT talk DOT nabble DOT com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I can actually find files named search.h in five different places within the cygwin directories, and for some reason they're all different sizes. But one of them is in /usr/include, and does indeed begin with "Written by J.T. Conklin". Is there some way I could have managed to accidentally set it to not search /usr/default? And it gets through about two-thirds of the source files with no issues before it hits the one that includes search.h, so it clearly isn't having trouble finding too many library files. Csaba Raduly-2 wrote: > > On Mon, Jul 19, 2010 at 7:24 AM, alex42 wrote: >> >> I am attempting to create an Android application based on C code that I >> did >> not write. This means using Cygwin to compile this code into the form >> that >> the Android NDK can use. However, when I try to do this, it gives an >> error >> on one of the source files, claiming that search.h doesn't exist. I >> checked, >> and search.h is definitely in the Cygwin libraries that I have installed. > > Hi Alex, > If you run GCC with the -v switch, it will display the list of > directories in which it searches for include files. You can either: > > 1. Run the make, copy the compilation command and paste it into the > terminal window, then add -v > 2. Edit the makefile and add -v to CFLAGS, then run make > > You can then check whether search.h is in one of the directories > searched. Or, you could just add -I/directory/of/search to CFLAGS > > However, on my system search.h is in /usr/include, which is always > searched by default. > Where is your search.h ? Does it begin with "Written by J.T. Conklin" ? > > -- > 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 > > > -- View this message in context: http://old.nabble.com/search.h-tp29201556p29202332.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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