Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C2019
Collapse the table of content
Expand the table of content

Compiler Error C2019

expected preprocessor directive, found 'character'

The character followed a # sign but it is not the first letter of a preprocessor directive.

The following sample generates C2019:

// C2019.cpp
#!define TRUE 1   // C2019

Possible resolution:

// C2019b.cpp
// compile with: /c
#define TRUE 1

Community Additions

© 2015 Microsoft