[GRASS5] Re: [GRASSLIST:1960] can't find statvfs.h [r.terraflow on MaxOSX]
Glynn Clements
glynn.clements at virgin.net
Thu Dec 11 19:44:02 EST 2003
Hamish wrote:
> > > OSX 10.3 only has /usr/include/sys/stat.h, ie neither.
> >
> > How about <mount.h> or <sys/mount.h>?
>
>
> Yes, sys/mount.h
>
> which includes:
> struct statfs {
> ...
> long f_bsize; /* fundamental file system block size */
> ...
> long f_bavail; /* free blocks avail to non-superuser */
> ...
> };
>
>
> changing main.cc to use that include and change calls to statvfs to
> statfs works ok.
OK; that's one more data point to consider in writing a configure
check.
> The compile still fails in fill.cc though:
> ...
> fill.cc:231: instantiated from here
> IOStream/include/ami_sort_impl.h:206: error: could not convert `nb_runs'
> to ` unsigned int&'
> IOStream/include/ami_sort_impl.h:69: error: in passing argument 4 of
> `void initializeRunFormation(AMI_STREAM<T>*, size_t&, size_t&,
> unsigned int&) [with T = plateauType]'
> ...
Please try to track this down.
I don't necessarily expect you to succeed, but it may help you to
understand why C++ should never have been invented ;)
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list