PRB: #pragma code_seg() Affects Compiler-Generated Functions (122848)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Editions 1.0
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
This article was previously published under Q122848 SYMPTOMS
When 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.
RESOLUTION
If 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:
#pragma code_seg()
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbcode kbCompiler kbCPPonly kbprb KB122848 |
---|
|