include file problems

Bruce Stephens bruce.stephens@messagingdirect.com
Wed Nov 29 04:10:00 GMT 2000


Nacho de los Ríos Tormo <irios@proin.es> writes:

[...]

> Dumb me! Why not add the whole /usr/include and all its
> subdirectories in one go with the project editor? .... Well, I've
> done so, so all involved files MUST now be included in the
> project. Still I get the same compilation errors:
> 	
> 	dos_in_lin.c: In function 'get_time_ms'
> 	dos_in_lin.c: 30: 'timeval' undeclared (first use in this function)
> 	....
> 	make: *** [dos_in_lin.o] Error 1
> 	+++ End +++

That's a compiler error: it's got nothing to do with Source Navigator.
SN doesn't tell the compiler what header files to use.  Something like
this ought to compile, regardless of what include files Source
Navigator finds:

#include <sys/time.h>
void
foo()
{
    struct timeval tv;
    struct timezone tz;
    gettimeofday(&tv, &tz);
}

-- 
Bruce Stephens			Bruce.Stephens@MessagingDirect.com
MessagingDirect(UK) Ltd		<URL: http://www.MessagingDirect.com/ >



More information about the Sourcenav mailing list