December 11, 2003
#include <cmath>

void test()
{
double b = 100;
double c = std::sqrt( b );
}

Compiled with version 8.38.9

Error: ambiguous reference to symbol
Had: std::_inline_sqrt(float )
and: std::_inline_sqrt(long double )

Compiled with version 3.39.1
Error: undefined identifier 'std'

Current workaround is omitting std::


December 11, 2003
Oop!

The error of both version are the same
Error: ambiguous reference to symbol
Had: std::_inline_sqrt(float )
and: std::_inline_sqrt(long double )

In article <br9ca2$q8m$1@digitaldaemon.com>, Steve says...
>
>
>#include <cmath>
>
>void test()
>{
>double b = 100;
>double c = std::sqrt( b );
>}
>
>Compiled with version 8.38.9
>
>Error: ambiguous reference to symbol
>Had: std::_inline_sqrt(float )
>and: std::_inline_sqrt(long double )
>
>Compiled with version 3.39.1
>Error: undefined identifier 'std'
>
>Current workaround is omitting std::
>
>