नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'identifier' : macro redefinition
Remarks
The macro identifier is defined twice. The compiler uses the second macro definition.
To fix by checking the following possible causes
Defining a macro on the command line and in the code with a
#definedirective.Macros imported from include files.
To fix by using the following possible solutions
Remove one of the definitions.
Use an #undef directive before the second definition.
Example
The following example generates C4005:
// C4005.cpp
// compile with: /W1 /EHsc
#include <iostream>
using namespace std;
#define TEST "test1"
#define TEST "test2" // C4005 delete or rename to resolve the warning
int main() {
cout << TEST << endl;
}