Hello all,
Can anyone tell me why I am receiving the following error:
[Warning] xxxxxxxx.h(14): Wxxxx Cannot create pre-complled header: initialized data in header
in the following line:
const char ConstFileExtCommon[] = "Txt";
The reason is precisely what the message says. That line contains an initialized variable definition, which is, and clearly must be, forbidden in a precompiled header.
Actually, that line should not ever be in a header in the first place. Headers should contain declarations, not definitions.
So the solution is: Don't do that.