Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 1.09 KB

compiler-error-c2535.md

File metadata and controls

38 lines (33 loc) · 1.09 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Compiler Error C2535 | Microsoft Docs
11/04/2016
cpp-tools
error-reference
C2535
C++
C2535
a958f83e-e2bf-4a59-b44b-d406ec325d7e
12
corob-msft
corob
ghogen

Compiler Error C2535

'identifier' : member function already defined or declared

This error could be caused by using the same formal parameter list in more than one definition or declaration of an overloaded function.

If you get C2535 because of the Dispose function, see Destructors and finalizers for more information.

If you are compiling an ATL project, see Knowledge Base article Q241852.

The following sample generates C2535:

// C2535.cpp  
// compile with: /c  
class C {  
public:  
   void func();   // forward declaration  
   void func() {}   // C2535  
};