help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: another one bite the dust ...


From: Ben Sapp
Subject: Re: another one bite the dust ...
Date: Thu, 15 Jun 2000 08:49:16 -0600

Georges Landa wrote:
> 
> Ok ! thanks for the help, I was using the solaris make utility in place
> of the Gnu one !
> Now, I have the following trouble :
> 
> c++ -c  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -I../glob
> -I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions
> -fno-implicit-templates -g -O2 -Wall oct-time.cc -o oct-time.o
> oct-time.cc: In method `void octave_time::stamp()':
> oct-time.cc:112: aggregate `struct timeval tp' has incomplete type and
> cannot be initialized
> oct-time.cc:117: confused by earlier errors, bailing out
> make: *** [oct-time.o] Error 1
> 
> what shall I do ?

I also have similar problems on IRIX.   I have to compile this file on
the command line.  I copy the compile command and add a -D_BSD_TYPES  
to the command line options.   Then I run make again and it all works. 
You might also try -D_BSD_SOURCE.  In the source for oct-time.cc it
mentions this needs to be defined on some systems.   I have access to a
solaris system and the following preprocessor directive needs to be true
for it to be defined.  

Excerpt from /usr/include/sys/time.h
******************************************************************************
#if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || \
        defined(__EXTENSIONS__) || defined(_XPG4_2)  
.
.
.
struct timeval {
        time_t  tv_sec;         /* seconds */
        long    tv_usec;        /* and microseconds */
};
*****************************************************************************

Good luck.   

-- 
Ben Sapp                         Los Alamos National Laboratory
email: <mailto:address@hidden>   Phone: (505)667-3277
Fax:   (505)665-7920             URL:   http://www.neutrino.lanl.gov/
--



-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.che.wisc.edu/octave/octave.html
How to fund new projects:  http://www.che.wisc.edu/octave/funding.html
Subscription information:  http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]