We recommend using Visual Studio 2017

Compiler Warning (level 1) C4661

 

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 Warning (level 1) C4661.

identifier' : no suitable definition provided for explicit template instantiation request

A member of the template class is not defined.

// C4661.cpp  
// compile with: /W1 /LD  
template<class T> class MyClass {  
public:  
   void i();   // declaration but not definition  
};  
template MyClass< int >;  // C4661  

Show: