Compiler Error C2164

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C2164.

function' : intrinsic function not declared

An intrinsic pragma uses an undeclared function (only occurs with /Oi). Or, one of the compiler intrinsics was used without including its header file.

The following sample generates C2164:

// C2164.c  
// compile with: /c  
// processor: x86  
// Uncomment the following line to resolve.  
// #include "xmmintrin.h"  
void b(float *p) {  
   _mm_load_ss(p);   // C2164  
}  

Show: