Dear all, I only get this error on compiling Opensees from cvs. Do you have an idea how to solve it? (Code line is as follows: long int rows = pow(2,n); )
Regards
Ahmet Alper Parker
.\..\..\SRC\reliability\analysis\analysis\SystemAnalysis.cpp(498) : error C2668: 'pow' : ambiguous call to overloaded function
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\math.h(575): could be 'long double pow(long double,int)'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\math.h(527): or 'float pow(float,int)'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\math.h(489): or 'double pow(double,int)'
while trying to match the argument list '(int, int)'
Error on compiling from cvs with vc++ express 2008
Moderators: silvia, selimgunay, Moderators
-
- Posts: 90
- Joined: Wed Oct 26, 2005 6:31 am
- Location: Istanbul Technical University
-
- Posts: 90
- Joined: Wed Oct 26, 2005 6:31 am
- Location: Istanbul Technical University
it has already been fixed in the repository.
the code now looks like
you need to either update using cvs or make the change manually yourself.
the code now looks like
Code: Select all
long int rows = (long int)pow(2.0,n);
-
- Posts: 90
- Joined: Wed Oct 26, 2005 6:31 am
- Location: Istanbul Technical University