delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/11/10/10:36:23

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199911101534.JAA24889@mercury.xraylith.wisc.edu>
To: Mike MacDonald <mmacdona AT tsi DOT gte DOT com>
cc: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: INCLUDE_PATH
In-Reply-To: Your message of "Wed, 10 Nov 1999 10:09:45 EST."
<D7FDE5F0B39AD21181AA00805FA7183E040ABA1A AT tpaexc02 DOT tsi DOT gte DOT com>
Date: Wed, 10 Nov 1999 09:34:53 -0600
From: Mumit Khan <khan AT thor DOT xraylith DOT wisc DOT edu>

Mike MacDonald <mmacdona AT tsi DOT gte DOT com> writes:
> Is there a way to set an include path, or an ld_library_path?  Do these
> things work in cygwin?

Please see the GCC documentation. If you're using GNU info reader:
  
   $ info gcc invoking environment

If using HTML docs, look for "Invoking GCC" at top level and then 
"Environment Variables affecting GCC" section.

In general, if the manual says something works, it works; if you find 
that it doesn't, it's a bug, and report it to gcc-bugs AT gcc DOT gnu DOT org.

Just try it out, it's not that hard.
  
  $ cd /tmp
  $ cat > foo.h
  /* empty file. */
  ^D
  $ cat > foo.c
  #include <foo.h>
  int main () { return 0; }
  ^D
  $ export C_INCLUDE_PATH=`pwd`
  $ gcc -c -v foo.c

ld_library_path? I assume you mean LD_LIBRARY_PATH, which is a runtime
loader option, and has nothing to do with GCC. If you use dlopen() and
friends to access DLLs in Cygwin, Cygwin will use LD_LIBRARY_PATH to
find the DLL to be loaded.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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