bug-gsl
[Top][All Lists]
Advanced

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

Re: Including gsl_rstat.h causes "unknown type name size_t" error


From: Patrick Alken
Subject: Re: Including gsl_rstat.h causes "unknown type name size_t" error
Date: Sat, 29 Feb 2020 14:50:47 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

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

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