This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]