On Sunday, 30 November 2014 at 13:09:15 UTC, John Colvin wrote:
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);

I admit i was far from getting it right :), and was unaware of core.std.config functionalities.
Thanks!
Arjan.

Reply via email to