public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
* Re:include file problems
@ 2000-11-28  9:52 Nacho de los Ríos Tormo
  2000-11-28 10:14 ` Mo DeJong
  2000-11-28 13:42 ` Ben Elliston
  0 siblings, 2 replies; 11+ messages in thread
From: Nacho de los Ríos Tormo @ 2000-11-28  9:52 UTC (permalink / raw)
  To: sourcenav

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]

I am also having this problem on a SuSE 7.0 installation. For example:

I'm trying to call	the library function:

	gettimeofday(struct timeval* tv, struct timezone * tz).

According to man pages, I need

#include <sys/time.h>   (which should expand to /usr/include/sys/time.h)
#include <unistd.h>      (which should expand to /usr/include/unistd.h)

SNav is unable to find the correct files -- which are indeed there.

I have toyed with the project settings include tab, as well as with the build 
settings. Depending on the combination, it either finds /usr/include/time.h 
(wrong file) or /usr/include/sys/unistd.h (also wrong). 

SNav only manages to find the correct files if I include them explicitly in 
the project (which calls for a trip to the project editor and to have the 
project reparsed). But these files themselves do include a variety of other 
files, which in their turn call others.

Trying to manually include all the tree soon leads into confusion and 
dispair. And this is just for gettimeofday()! The thought of throwing in some 
threads and an ncurses interface sends shivers down my spine.

Any ideas on what is wrong?

-- 

Nacho de los Ríos Tormo
Procedimientos Integrados S.L.
Sevillanos, 67
28609 Sevilla la Nueva, Madrid
SPAIN

^ permalink raw reply	[flat|nested] 11+ messages in thread
* include file problems
@ 2000-10-28 10:26 Merlyn Cousins
  2000-10-28 13:22 ` Ian Roxborough
  2000-10-29 13:57 ` Ben Elliston
  0 siblings, 2 replies; 11+ messages in thread
From: Merlyn Cousins @ 2000-10-28 10:26 UTC (permalink / raw)
  To: Ian Roxborough, sourcenav

Ok..first i'd like to thank you for responding.
In answer to your questions...I'm a linux man 
I'm using SuSE 6.1 (with compiled version of snavigator)
I had no errors during the compilation.
everything else seems to work but the include stuff.
Which really gives me problems for obvious reasons.
as far as double clicking on include files..yes i do that
and the Prog responds with (file not found) but it's there.
It seems to do this anytime the syntax of #include <a directory/filename>
is used.

also a quick question for you...
Why do you have to click on the include files to bring them into the project?
this can be a real pain!!
shouldn't there be a option of some sort that Snav does a recursive search and auto
loads the #include files?
I mean if these files were in the directory or a subdirectory of the current project
and a new project was created, would not Snav auto bring them in?
having to double click through the tree is a real time waster.
So anyway thanxs again..
If i can get these points points worked out Snav along with gvim
will be a GREAT aid to me in helping to Understand (reverse engineer) source code.


Hi,

I'm assuming that you are double clicking on the include
file in the include browser.  (?)

What OS are you running on?

I've heard of this bug before but haven't managed to
reproduce it on my Red Hat 6.2 box.  (This is meant to
problems on Windows version also.)

Ian.

"Merlyn(root)" wrote:
> 
> Perhaps someone can help me with a problem I am having using snavigator.
> when I'm trying to work with include files that use the form
> #include <sys/stabs.h> for example (where a directory below the include
> directory is used ..i.e let's say /usr/include) snavigator says (file not
> found) now the file is there...and /usr/include is specified in the path for
> the include file search. so why doesn't it work?
> 
> if anyone can help I would great accpreciate it
> 
> thanks
> 
> merlyn

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2000-11-29  4:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-28  9:52 Re:include file problems Nacho de los Ríos Tormo
2000-11-28 10:14 ` Mo DeJong
2000-11-29  2:41   ` Nacho de los Ríos Tormo
2000-11-29  4:02     ` Nacho de los Ríos Tormo
2000-11-29  4:10       ` include " Bruce Stephens
2000-11-28 13:42 ` Ben Elliston
  -- strict thread matches above, loose matches on Subject: below --
2000-10-28 10:26 include " Merlyn Cousins
2000-10-28 13:22 ` Ian Roxborough
2000-10-28 14:32   ` Merlyn
2000-10-29 13:57 ` Ben Elliston
2000-10-29 17:26   ` Eray Ozkural (exa)

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).