The information in this article applies to:
SYMPTOMSWhen you use #pragma code_seg() in your C++ code, compiler-generated functions are placed in the last code segment or section that is specified with #pragma code_seg() instead of being placed in the default code segment or section. RESOLUTIONIf you want compiler generated functions to be placed in the default code segment, include an additional #pragma code_seg() that sets the code segment back to the default:
STATUSThis behavior is by design. MORE INFORMATION
The following sample can be used to demonstrate this behavior. Compile the
file with /DMY_SECTION, and the compiler-generated code is placed in the
MY_SECTION section. To place the compiler-generated functions in the
default code section, compile without MY_SECTION defined.
Sample Code to Demonstrate Behavior
Additional query words: 8.00 9.00 pragma
Keywords : kbcode kbCompiler kbCPPonly kbVC kbVC100 kbVC200 kbVC210 kbVC400 kbVC500 |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |