Article View: alt.linux
Article #1101Re: How do I add a library to the include path?
From: Jeld The Dark Elf
Date: Fri, 28 Jan 2000 00:00
Date: Fri, 28 Jan 2000 00:00
28 lines
1650 bytes
1650 bytes
That's simple. use -I switch with gcc. Goes like this: gcc -c file.c -o file.o -I/usr/local/include/foo Surely I am not suggesting to type it every time, but to put this into CFLAGS in your Makefile In article <389218F4.E6FA9DA2@binc.net>, Jack Kelly Dobson <jdobson@binc.net> wrote: > Hello? > > Can someone tell me how to add a library to the include path? > > I'd like to be able to #include "foo.h" rather than #include > "/usr/local/include/foo/foo.h". > > Any ideas? > > thx j- > -- Good Luck. Jeld the Dark Elf ----------------------------------------------------------- Everybody lies, but it doesn't matter since nobody listens. Sent via Deja.com http://www.deja.com/ Before you buy.
Technical Details
Message-ID:
<86t8ve$vit$1@nnrp1.deja.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<389218F4.E6FA9DA2@binc.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,741afaa4ec23a612 X-Google-Attributes: gid11318c,public X-Google-Thread: faa64,741afaa4ec23a612 X-Google-Attributes: gidfaa64,public X-Google-Thread: f65d0,741afaa4ec23a612 X-Google-Attributes: gidf65d0,public X-Google-Thread: 100c5f,741afaa4ec23a612 X-Google-Attributes: gid100c5f,public From: Jeld The Dark Elf <jeld@mindless.com> Subject: Re: How do I add a library to the include path? Date: 2000/01/28 Message-ID: <86t8ve$vit$1@nnrp1.deja.com> X-Deja-AN: 578927171 References: <389218F4.E6FA9DA2@binc.net> X-Http-Proxy: 1.1 x33.deja.com:80 (Squid/1.1.22) for client 205.183.236.2 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Jan 28 23:33:01 2000 GMT X-MyDeja-Info: XMYDJUIDjeld Newsgroups: alt.linux,alt.os.linux,gnu.gcc,gnu.gcc.help X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)