Problem interfacing with GSL
    John Colvin via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Sun Nov 30 05:09:14 PST 2014
    
    
  
On Sunday, 30 November 2014 at 12:21:51 UTC, Arjan wrote:
> Hi!
> D noob here.
> I'm trying to call this function from the GSL lib:
>
> double gsl_stats_long_double_mean (const long double [], const 
> size_t, const size_t);
>
> linking with: -L-lgsl -L-lgslcblas -L-lm
>
> I have tried different configurations, refering to
> http://dlang.org/interfaceToC.html and the forums, but it 
> always gives me probems like,
> calling it the wrong way or segmentation falt.
> Can anyone help?
>
> Arjan
the correct signature in D for that would be:
import core.std.config;
double gsl_stats_long_double_mean(const(c_long_double)*, const 
size_t, const size_t);
    
    
More information about the Digitalmars-d-learn
mailing list