🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53212

gcc includes from where?

#53212
From: Tom McConnell
Date: Thu, 05 Mar 1992 15:31
46 lines
2232 bytes
  [Probably an FAQ; sorry for my ignorance ;)]

  I have built gcc 1.40 and gcc 2.0 to be installed in a non-standard directory
using the "prefix" in the Makefile. gcc always finds the libraries it needs, but
I have to manually tell it where to find it's include files. Is this correct? I
would like to have gcc know where its include files are, and get them itself.

  An example:

1. Don't tell gcc where the include files are:

fulton> gcc.1.40 -v hello.c -o hello
gcc version 1.40
 /stor/gnu/lib/gcc-cpp -v -undef -D__GNUC__ -Dvax -Dunix -D__vax__ -D__unix__
hello.c /usr/tmp/cc027858.cpp
GNU CPP version 1.40
hello.c:2: gdbm.h: No such file or directory


2. Tell gcc where the include files are:

fulton> gcc.1.40 -I/stor/gnu/include/gcc-include -v hello.c -o hello
gcc version 1.40
 /stor/gnu/lib/gcc-cpp -v -I/stor/gnu/include/gcc-include -undef -D__GNUC__
-Dvax -Dunix -D__vax__ -D__unix__ hello.c /usr/tmp/cc027866.cpp
GNU CPP version 1.40
 /stor/gnu/lib/gcc-cc1 /usr/tmp/cc027866.cpp -quiet -dumpbase hello.c -version
-o /usr/tmp/cc027866.s
GNU C version 1.40 (vax) compiled by GNU C version 1.40.
default target switches: -munix
 /stor/gnu/lib/gcc-as -o hello.o /usr/tmp/cc027866.s
 /stor/gnu/lib/gcc-ld -o hello /stor/gnu/lib/crt0.o hello.o
/stor/gnu/lib/gcc-gnulib -lc /stor/gnu/lib/gcc-gnulib


  Thanks,

    Cheers,

    Tom McConnell
--
 Tom McConnell          |     Internet: tmcconne@sedona.intel.com
 Intel, Corp. C3-21     |     Phone: (602)-554-8229
 5000 W. Chandler Blvd. | The opinions expressed are my own. No one in 
 Chandler, AZ  85226    | their right mind would claim them.
Technical Details
Message-ID: <9578@inews.intel.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!iWarp.intel.com|ichips!inews!tmcconne

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,45aad5ed7b6551f6,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-03-05 16:39:41 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!iWarp.intel.com|ichips!inews!tmcconne
From: tmcconne@sedona.intel.com (Tom McConnell)
Newsgroups: gnu.gcc.help
Subject: gcc includes from where?
Keywords: gcc include -I
Message-ID: <9578@inews.intel.com>
Date: 5 Mar 92 15:31:54 GMT
Sender: news@inews.intel.com
Reply-To: tmcconne@sedona.intel.com
Organization: Intel Corporation, Embedded Microcomputer Division
Lines: 46