Thank you, this is now fixed on the git

On 2/29/20 1:58 AM, Arun Isaac wrote:
> Including gsl/gsl_rstat.h does not compile due to an "unknown type name
> size_t" error.
>
> Source code below.
>
> --8<---------------cut here---------------start------------->8---
> #include <gsl/gsl_rstat.h>
>
> int main ()
> {
>   return 0;
> }
> --8<---------------cut here---------------end--------------->8---
>
> Error message below.
>
> --8<---------------cut here---------------start------------->8---
> In file included from foo.c:1:
> /gnu/store/br8zjl7r2r960syn8wyswdpbh4skvx0v-profile/include/gsl/gsl_rstat.h:42:3:
>  error: unknown type name ‘size_t’
>    42 |   size_t n;        /* number of data added */
>       |   ^~~~~~
> /gnu/store/br8zjl7r2r960syn8wyswdpbh4skvx0v-profile/include/gsl/gsl_rstat.h:59:3:
>  error: unknown type name ‘size_t’
>    59 |   size_t n;        /* number of data points added */
>       |   ^~~~~~
> /gnu/store/br8zjl7r2r960syn8wyswdpbh4skvx0v-profile/include/gsl/gsl_rstat.h:65:1:
>  error: unknown type name ‘size_t’
>    65 | size_t gsl_rstat_n(const gsl_rstat_workspace *w);
>       | ^~~~~~
> /gnu/store/br8zjl7r2r960syn8wyswdpbh4skvx0v-profile/include/gsl/gsl_rstat.h:1:1:
>  note: ‘size_t’ is defined in header ‘<stddef.h>’; did you forget to 
> ‘#include <stddef.h>’?
>   +++ |+#include <stddef.h>
>     1 | /* rstat/gsl_rstat.h
> --8<---------------cut here---------------end--------------->8---
>
> Including stdio.h or stddef.h fixes this issue, but that should not be
> required. Hence, this is a bug.
>
> Please Cc me in any replies to this mail. I am not subscribed to this
> mailing list.
>
> Thanks!



Reply via email to