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; 6+ 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] 6+ messages in thread

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Pine.LNX.4.30.0011292313170.20902-100000@moshpit.cygnus.com>
2000-11-29  6:53 ` Re:include file problems Nacho de los Ríos Tormo
2000-11-28  9:52 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-28 13:42 ` Ben Elliston

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