Why can't i use the function in the cmath

Hello everyone!
I use VS 2008 and write a simple program:
#include <iostream>
#include <cmath>
using namespace std;

int main ()
{
double x = 5.0;
double result = lgamma(x);
cout << result;
return 0;
}

Then I get the error:
error C3861: “lgamma”: identifier not found

What should I do to fix the error?


It's not implemented in Visual Studio 2008.
It would be better to get visual studio 2015 and re write the code in that.

here is the link to the free version but I'd recommend only downloading if you have
Win 7 or greater and 2+GB ram available.

https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx

some of the modules may also have changed names too.
Topic archived. No new replies allowed.