From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29461 invoked by alias); 24 Jan 2002 19:41:57 -0000 Mailing-List: contact sourcenav-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sourcenav-owner@sources.redhat.com Received: (qmail 29427 invoked from network); 24 Jan 2002 19:41:54 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 24 Jan 2002 19:41:54 -0000 Received: from localhost.localdomain (cse.sfbay.redhat.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with SMTP id LAA08023; Thu, 24 Jan 2002 11:41:49 -0800 (PST) Date: Fri, 25 Jan 2002 19:12:00 -0000 From: Ian Roxborough To: speedy2 Cc: sourcenav@sources.redhat.com Subject: Re: Include question Message-Id: <20020124113307.78d6894e.irox@redhat.com> In-Reply-To: <20020124130613.A5930-100000@dag.net> References: <20020124130613.A5930-100000@dag.net> Organization: Red Hat Inc. X-Mailer: Sylpheed version 0.6.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2002-q1/txt/msg00045.txt.bz2 Hi, Source-Navigator should resolved the header file dependancies automatically. Can you see "port.h" in the symbol browser? It might have a problem finding port.h if you can't see it in the file/symbol browser. There is a bug where if port.h is included in a2d.h and not a .c file SN will have a problem finding port.h. If you go to the includes section of compiler settings in the target editor then you can manually enter paths to be search for includes. Ian. On Thu, 24 Jan 2002 13:14:40 -0500 (EST) speedy2 wrote: > > Hello all. > > For a project I am working on,("testproj") I have split my code into > blocks(like "a2d" and "port") and put them in a directory structure like: > > \testproj\port\port.c > \testproj\port\port.h > > \testproj\a2d\a2d.c > \testproj\a2d\a2d.h > > Files like a2d.c end up including port.h with a simple #include port.h > > Of course gcc does not compile because port.h is not in the path and the > only fix is to hardcode the include or do it relatively like > "../port/port.h" > > Is it possible when setting up Source Navigator to build, to get it to > find dependant files and automatically invoke gcc with the right options? > > That way in my a2d.c file I can leave the include as: > #include "port.h" > > and allow SNAV to figure it out? > > Thanks, > Speedy2. >