public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
From: speedy2 <speedy2@dag.net>
To: sourcenav@sources.redhat.com
Subject: Include question
Date: Thu, 24 Jan 2002 11:41:00 -0000	[thread overview]
Message-ID: <20020124130613.A5930-100000@dag.net> (raw)

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.

             reply	other threads:[~2002-01-24 18:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-24 11:41 speedy2 [this message]
2002-01-25 19:12 ` Ian Roxborough

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020124130613.A5930-100000@dag.net \
    --to=speedy2@dag.net \
    --cc=sourcenav@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).