boost::math function link problem
Hi all,
I am new to boost library.
First of all, I apologize that my question will be pretty basic to people in
this mailing list,
nevertheless I have spent 30 min + to figure it out and couldn't find the
answer.
So, here it goes...
I need to find which library (lib*.a) file contains the "ibeta" function
which is defined under
boost/math/special_functions/gamma.hpp.
When I compile the following simple test.cpp
-----------------------------------------
#include
On Sat, Aug 22, 2009 at 6:41 AM, joe claire
Hi all,
I am new to boost library.
First of all, I apologize that my question will be pretty basic to people in this mailing list, nevertheless I have spent 30 min + to figure it out and couldn't find the answer. So, here it goes...
I need to find which library (lib*.a) file contains the "ibeta" function which is defined under boost/math/special_functions/gamma.hpp.
When I compile the following simple test.cpp ----------------------------------------- #include
#include <iostream> using namespace std; using namespace boost::math;
int main() { cout << "it is my birthday...\n"; cout << ibeta(5, 2, 0.5) << "\n"; } -----------------------------------------
You're including "gamma" for using "beta"! ;)
Try with
#include
Thanks a lot, Marco and John.
It works!
Best regards,
Claire
2009/8/22 Marco Guazzone
On Sat, Aug 22, 2009 at 6:41 AM, joe claire
wrote: Hi all,
I am new to boost library.
First of all, I apologize that my question will be pretty basic to people in this mailing list, nevertheless I have spent 30 min + to figure it out and couldn't find the answer. So, here it goes...
I need to find which library (lib*.a) file contains the "ibeta" function which is defined under boost/math/special_functions/gamma.hpp.
When I compile the following simple test.cpp ----------------------------------------- #include
#include <iostream> using namespace std; using namespace boost::math;
int main() { cout << "it is my birthday...\n"; cout << ibeta(5, 2, 0.5) << "\n"; } -----------------------------------------
You're including "gamma" for using "beta"! ;)
Try with
#include
This compiles for me and returns: 0.109375
Cheers,
-- Marco _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
First of all, I apologize that my question will be pretty basic to people in this mailing list, nevertheless I have spent 30 min + to figure it out and couldn't find the answer. So, here it goes...
I need to find which library (lib*.a) file contains the "ibeta" function which is defined under boost/math/special_functions/gamma.hpp.
Nope, the ibeta function is defined in boost/math/special_functions/beta.hpp, the gamma.hpp will include a forward declaration but no definition. It's all header-only template code BTW. HTH, John.
participants (3)
-
joe claire
-
John Maddock
-
Marco Guazzone