Hi,

The following code doesn't compile and i really don't know where the problem is. I simply do a call to the inverse student function:

double degreesOfFreedom = n - m;
double tProb = 0.05;

       
tTestCutoff = boost::math::detail::inverse_students_t_tail_series(degreesOfFreedom, tProb, myPolicy());



I create myPolicy()  in a header file by doing:

typedef boost::math::policies::policy<> myPolicy;


and i'm having these linking error:

Error    2    error LNK2019: unresolved external symbol "double __cdecl boost::math::tgamma_delta_ratio<double,double,struct boost::math::policies::policy<struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy> >(double,double,struct boost::math::policies::policy<struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy> const &)" (??$tgamma_delta_ratio@NNU?$policy@Udefault_policy@policies@math@boost@@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@@policies@math@boost@@@math@boost@@YANNNABU?$policy@Udefault_policy@policies@math@boost@@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@@policies@01@@Z) referenced in function "double __cdecl boost::math::detail::inverse_students_t_tail_series<double,struct boost::math::policies::policy<struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy> >(double,double,struct boost::math::policies::policy<struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy,struct boost::math::policies::default_policy> const &)" (??$inverse_students_t_tail_series@NU?$policy@Udefault_policy@policies@math@boost@@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@@policies@math@boost@@@detail@math@boost@@YANNNABU?$policy@Udefault_policy@policies@math@boost@@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@U1234@@policies@12@@Z)    spotDetector.obj
Error    3    fatal error LNK1120: 1 unresolved externals    c:\Users\gbito\Documents\stage_iric\matlab\daniel\spotDetector\spotDetector.mexw32    1