This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Forward declaration is not possible
Peter Haase writes:
> I get the following error messages:
>
> /usr/include/gsl/gsl_rng.h:47: conflicting types for `typedef struct gsl_rng
> gsl_rng'
> phrand.h:41: previous declaration as `typedef struct gsl_rng gsl_rng'
>
You'll need to use an #ifdef to select either the forward declaration
or the gsl header, depending on whether you are compiling the client
or library.
Brian