This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Compiler Error C2356
initialization segment must not change during translation unit
Possible causes
- #pragma init_seg preceded by segment initialization code.
- #pragma init_seg preceded by another #pragma init_seg.
Move the segment initialization code to the beginning of the module. If multiple areas must be initialized, move them to separate modules.