RSS
Follow Us
Contribute
 
 
 
 

Error C2600: (function) : cannot define a compiler-generated special member function (must be declared in the class first)

 
We need YOUR SKILLS in this collaborative work, to build the largest solution center for error messages.

From $1

Table of contents
  1. 1. Cause
  2. 2. Solution
  3. 3. About This Article

Cause

Before functions such as constructors or destructors can be defined for a class, they must be declared in the class. Ex:

// compile with: /c
class C {};
C::~C() {}   // C2600

Solution

Possible resolution:

// compile with: /c

class C {
   C::~C();
};

C::~C() {}

About This Article

This article is a derivative work based on Compiler Error C2600 which is provided by MSDN Community Content - Visual C++.

 
 
 
 
Comments