AnsweredAssumed Answered

Conflict when using STL headers and builtins.h

Question asked by JWellbelove on Apr 5, 2013
Latest reply on Apr 8, 2013 by JWellbelove

I have discovered that many of my source files will not compile correctly when including some of the headers such as <math.h>, <cmath> or <limits>.


The compiler error is usually upset with the definitions of 'min' and 'max' in the header 'builtins.h'.



"C:\Program Files\Analog Devices\VisualDSP 5.0\Blackfin\include\builtins.h", line 1110: cc0040:  error:

          expected an identifier

  static int  min(int  __a, int  __b) {


I'm a little stuck on this as I need the include the headers to access functions such as sqrtf, sin, cos and std::numeric_limits.


Anyone know a way around this?