Boost logo

Boost-Build :

Subject: [Boost-build] Boost.build : Linking problem when using inverse_students_t_tail_series() in vc++
From: daniel edoh-bedi (dan_kj24_at_[hidden])
Date: 2010-08-24 11:41:53


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_at_NNU?$policy_at_Udefault_policy_at_policies@math_at_boost@@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@@policies_at_math@boost@@@math_at_boost@@YANNNABU?$policy_at_Udefault_policy_at_policies@math_at_boost@@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@@policies_at_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_at_NU?$policy_at_Udefault_policy_at_policies@math_at_boost@@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@@policies_at_math@boost@@@detail_at_math@boost@@YANNNABU?$policy_at_Udefault_policy_at_policies@math_at_boost@@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@U1234_at_U1234@@policies_at_12@@Z) spotDetector.obj
Error 3 fatal error LNK1120: 1 unresolved externals c:\Users\gbito\Documents\stage_iric\matlab\daniel\spotDetector\spotDetector.mexw32 1

                                               



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk