#pragma comment
Go Up to Pragma Directives Overview Index
Syntax (See Pseudo-grammar)
#pragma comment({lib | exestr | user} [ , "STR" ["STR" ...] ])
Description
The comment
directive lets you write a comment record into an output file. The comment type can be one of the following values:
Value | Explanation |
---|---|
exestr |
The linker writes a string into an .obj file. Your specified string is placed in the executable file. Such a string is never loaded into memory but can be found in the executable file by use of a suitable file search utility. |
lib |
Writes a comment record into an .obj file. A library module that is not specified in the linker's response file can be specified by the |
user |
The compiler writes a string into the .obj file. The linker ignores the specified string. |