xcode - Error: identifier "MAXFLOAT" is undefined -


i trying convert xcode project (link) vs2008 solution.

in cuda filetype .cu, term maxfloat used. adding following headers error not resolved.

#include <stdio.h> #include <math.h> 

in xcode project, tried locate definition there none. term used in file. specific xcode?

maxfloat non-standard parameter. use 1 of following, portable alternatives:

  • in c: use standard library flt_max (defined in <float.h>).

  • in c++: use std::numeric_limits<float>::max (defined in <limits>). may still use c's flt_max, include <cfloat> instead.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -