Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
On Sun, 24 Oct 1999, Jerry Clabaugh wrote: >When I compile something with the -v option, a list of the default >include directories is shown, and somehow /usr/local/include got >moved ahead of /usr/include. How is this set/how can it be fixed? When I compile (on Irix) with -v, it also includes /usr/local/include first; I don't know if that's standard behavior. $ info gcc "Invoking GCC" "Preprocessor Options" I found one way to fix it is with -isystem: $ gcc -o blah clk.c -v -isystem /usr/include [snip] #include "..." search starts here: #include <...> search starts here: /usr/include /usr/local/include /usr/local/mips-sgi-irix6.2/include /usr/local/lib/gcc-lib/mips-sgi-irix6.2/egcs-2.91.66/include /usr/include End of search list. [snip] Also, using -nostdinc and -I- you can include only specified headers. Maybe you need to recompile gcc to permanently switch the order. $ info gcc Installation Under that there is a "Header Dirs" subnode, which explains GCC_INCLUDE_DIR and LOCAL_INCLUDE_DIR variables. - Subcription/unsubscription/info requests: send e-mail with "subscribe", "unsubscribe", or "info" on the first line of the message body to discuss-request at blu.org (Subject line is ignored).
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |