From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mo DeJong To: sourcenav@sources.redhat.com Subject: Re:include file problems Date: Tue, 28 Nov 2000 10:14:00 -0000 Message-id: References: <00112818511300.00635@irios> X-SW-Source: 2000-q4/msg00275.html On Tue, 28 Nov 2000, Nacho de los =?iso-8859-1?q?R=EDos=20Tormo?= wrote: > 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 (which should expand to /usr/include/sys/time.h) > #include (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? Sounds like a bug. Why don't you take a shot at fixing it? Take at look at the Preferences&::AddInclude methods at line 879 of gui/preferences.tcl. That should get you started. Mo DeJong Red Hat Inc