- #1
- 4,652
- 37
Is anyone here using Visual C++ .NET?
I have a line of code that works fine in MSVC++ v6, but I am getting an error in MSVC++ .NET.
Here's the line:
expo = (log(num))/(log(10));
and the error message I get:
error C2668: 'log': ambiguous call to overloaded function
expo is a type int variable. so is num.
I am using the cmath header:
#include <cmath>
Thanks for any help!
I have a line of code that works fine in MSVC++ v6, but I am getting an error in MSVC++ .NET.
Here's the line:
expo = (log(num))/(log(10));
and the error message I get:
error C2668: 'log': ambiguous call to overloaded function
expo is a type int variable. so is num.
I am using the cmath header:
#include <cmath>
Thanks for any help!