C1137: Unknown or illegal segment name

[ERROR]

Description

A segment name used in a segment specifier was not defined with a segment pragma before.

Example
  #pragma DATA_SEG AA

  
  #pragma DATA_SEG DEFAULT

  
  int i @ "AA"; // OK

  
  int i @ "BB"; // Error C1137, segment name BB not known

  
Tips

All segment names must be known before they are used to avoid tipping mistakes and to specify a place to put segment modifiers.

See also