I am trying to convert a Xcode project (link) to a VS2008 solution.
In a cuda filetype .cu, the term MAXFLOAT is used. I am adding the following headers but the error is not resolved.
#include <stdio.h>
#include <math.h>
In the Xcode project, I tried to locate the definition but there is none. Also this term is only used in this file. Is this something specific to Xcode?
MAXFLOAT is a non-standard parameter. Use one of the following, portable alternatives:
In C: use the standard library FLT_MAX (defined in <float.h>).
In C++: use std::numeric_limits<float>::max (defined in <limits>). You may still use C's FLT_MAX, but include <cfloat> instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With