From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25248 invoked by alias); 24 Jan 2002 18:14:43 -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 25216 invoked from network); 24 Jan 2002 18:14:42 -0000 Received: from unknown (HELO dag.net) (66.92.237.207) by sources.redhat.com with SMTP; 24 Jan 2002 18:14:42 -0000 Received: by dag.net (Postfix, from userid 1026) id F307655F4C; Thu, 24 Jan 2002 13:14:40 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by dag.net (Postfix) with ESMTP id EEDC755F3C for ; Thu, 24 Jan 2002 13:14:40 -0500 (EST) Date: Thu, 24 Jan 2002 11:41:00 -0000 From: speedy2 To: sourcenav@sources.redhat.com Subject: Include question Message-ID: <20020124130613.A5930-100000@dag.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-q1/txt/msg00044.txt.bz2 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.