Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Warning (level 1) C4117

macro name 'name' is reserved; 'Command' ignored

To fix by checking the following possible causes

  1. Trying to define or undefine a predefined macro.

  2. Trying to define or undefine the preprocessor operator defined.

The following sample generates C4117:

// C4117.cpp
// compile with: /W1
#define __FILE__ test         // C4117. __FILE__ is a predefined macro
#define ValidMacroName test   // ok

int main() {

Community Additions

© 2015 Microsoft