Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com Date: Sun, 18 Aug 2002 18:25:43 -0400 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: Best environment setup for using gcc? Message-ID: <20020818222543.GB1299@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <004701c24702$a4dabae0$b2b1869f@oemcomputer> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004701c24702$a4dabae0$b2b1869f@oemcomputer> User-Agent: Mutt/1.3.23.1i On Sun, Aug 18, 2002 at 11:00:18PM +0100, Al wrote: >Also I dont know if I have to do stuff to make the include files >accessible when I use gcc from bash. I looked at the output from gcc >-print-search-dirs but it didnt help me. So how does eveyone else have >their environments set up? I cant just set my PATH to point to >usr\include because a lot of the headers are nested in other >directories like w32api. Is it considered bad to have the kind of >setup Im talking about and should just be telling it what directories >to search each time I invoke gcc? Help me conform ... This is not complicated. If you have a normal install, then invoking gcc from bash will find the correct include files, including the ones in w32api. It would be a pretty broken distribution if that wasn't the case. If this is not the case then you probably have some other GCC environment variable set which is causing problems. Inspecting the environment would make this really obvious. You should *not* be setting your PATH to include /usr/include. That is not what the PATH is used for. I doubt that there is any C compiler "on the market" which expects you to put /usr/include in your PATH. The PATH environment variable is supposed to control where you find executable files, like gcc, ls, grep, etc., not include files. cgf -- Please do not send me personal email with cygwin questions. Use the resources at http://cygwin.com/ . -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/