F
Francisco Rivas
Hello all,
I did a search through the archives and found that someone posted a message
about this same error, but never got a response.
I've got a small sample app that compiles and runs in VS 2002 but doesn't
compile in VS 2003. In VS 2003, I get error C2668. The error comes from
trying to use the sqrt function.
I noticed this error when I tried to recompile a larger application
developed in VS 2002. I created this small sample to reproduce the error.
Can someone tell me why I get this error and how to fix it?
Thanks,
Francisco
// Sample app
#include <iostream>
#include <cmath>
void main()
{
unsigned int numSamples = 25;
int sqrtSamples = sqrt( numSamples );
std::cout<<"sqrt="<<sqrtSamples<<std::endl;
}
I did a search through the archives and found that someone posted a message
about this same error, but never got a response.
I've got a small sample app that compiles and runs in VS 2002 but doesn't
compile in VS 2003. In VS 2003, I get error C2668. The error comes from
trying to use the sqrt function.
I noticed this error when I tried to recompile a larger application
developed in VS 2002. I created this small sample to reproduce the error.
Can someone tell me why I get this error and how to fix it?
Thanks,
Francisco
// Sample app
#include <iostream>
#include <cmath>
void main()
{
unsigned int numSamples = 25;
int sqrtSamples = sqrt( numSamples );
std::cout<<"sqrt="<<sqrtSamples<<std::endl;
}