Microsoft KB Archive/41104

= DOC: Libraries Added by Comment pragma Appear After Default =

Article ID: 41104

Article Last Modified on 7/5/2005

-

APPLIES TO


 * Microsoft Visual C++ 1.5 Professional Edition
 * Microsoft Visual C++ 6.0 Service Pack 5
 * Microsoft Visual C++ 5.0 Standard Edition
 * Microsoft Visual C++ 2.0 Professional Edition
 * Microsoft Visual C++ 1.0 Professional Edition
 * Microsoft Visual C++ 1.0 Professional Edition

-



This article was previously published under Q41104



SUMMARY
The documentation states that when using the library option of the comment pragma the specified library name will be inserted before the default library name in the object module. This is not the case; the given library name appears after the default library name. This agrees with the next statement in the documentation which states that using this pragma is the same as giving the library to LINK on the command line.



MORE INFORMATION
If the order of the default library and an added library is important, compiling with the /Zl switch will prevent the default library name from being placed in the object module. A second comment pragma then can be used to insert the name of the default library after the added library. The libraries listed with these pragmas will appear in the object module in the same order they are found in the source code.

Additional query words: kbCompiler kbDSupport

Keywords: kbdocfix kbdocerr KB41104

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.