NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Warning (level 1) C4005

'identifier' : macro redefinition

The macro identifier is defined twice. The compiler uses the second macro definition.

Possible cause

Possible solutions

The following sample generates C4005:

#include <iostream.h>

#define TEST "test1"
#define TEST "test2"   // C4005, delete or rename to resolve the warning

void main() {
   cout << TEST << endl;
}