delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/19/03:36:55

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <29201556.post@talk.nabble.com>
References: <29201556 DOT post AT talk DOT nabble DOT com>
Date: Mon, 19 Jul 2010 09:36:38 +0200
Message-ID: <AANLkTinHVTCmjk38teOviQmnilXK9K_aCPQtRwOaGr3f@mail.gmail.com>
Subject: Re: search.h
From: Csaba Raduly <rcsaba AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019