Article ID: 153901
Article Last Modified on 6/14/2006
#pragma comment(lib, "MSVCRT -VERBOSE")This line, under Visual C++ 2.x, would pass the string to the linker as is, resulting in the addition of the /VERBOSE linker option as well as the MSVCRT.LIB library. This behavior was not specified to work in this manner. The compiler wouldn't put quotes around comment string, so spaces would delimit the text.
#pragma comment(linker, "<linker options>")
// Compile options needed: none
// Compile the code in Visual C++ 4.x or later
// test.c
#pragma comment(lib,"MYLIBRARY -VERBOSE")
void main(void)
{
}
You
will receive the following error message:
Pragma Directives
Additional query words: 10.00 10.10 10.20
Keywords: kbcompiler kbprb kbusage KB153901