PRB:Comment Pragma Examples Missing Quotes for Second Argument

ID Number: Q73835

5.10 6.00 6.00a 6.00ax | 5.10 6.00 6.00a

MS-DOS | OS/2

docerr

Summary:

The examples for the lib comment pragma are incorrect in the

documentation for Microsoft C versions 5.1, 6.0, 6.0a, and 6.0ax. The

format of the comment pragma is as follows:

#pragma comment( comment-type [, commentstring])

The second argument is a literal string, but the examples that

illustrate a lib comment-type are missing quotation marks around the

string.

These problems have been corrected in the C/C++ version 7.0 help

files.

More Information:

The C 6.0, 6.0a, and 6.0ax online Help example for the comment pragma

should read

#pragma comment( lib, "emapi" )

instead of

#pragma comment( lib, emapi )

The example on page Update-12 of "Microsoft C Optimizing Compiler

User's Guide and Language Reference" that shipped with C 5.1 should

read

#pragma comment( lib, "mylibry" )

instead of

#pragma comment( lib, mylibry )

Omitting the quotation marks in the second argument, as in these

examples, produces the following warning message:

warning C4079: unexpected token 'identifier'

For more information on the comment pragma or other comment-types, see

the documentation or online Help supplied with your version of the

compiler.

Additional reference words: 5.10 6.00 6.00a 6.00ax