[ERROR]
A segment name with an illegal type was specified. Functions can only be placed into segments of type CODE_SEG, variable/constants can only be placed into segments of type DATA_SEG or CONST_SEG.
#pragma DATA_SEG AA
#pragma CODE_SEG BB
int i @ "AA"; // OK
int i @ "BB"; // Error C1138, data cannot be placed in codeseg
Use different segment names for data and code. To place constants into rom, use segments of type CONST_SEG.