description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Warning (level 1) C4274 |
Compiler Warning (level 1) C4274 |
11/04/2016 |
|
|
5a948680-7ed1-469f-978d-ae99d154e161 |
#ident ignored; see documentation for #pragma comment(exestr, 'string')
The #ident
directive, which inserts a user-specified string in the object or executable file, is deprecated. Consequently, the compiler ignores the directive.
Caution
Warning C4274 advises you to use the #pragma comment(exestr, 'string') directive. However, this advice is deprecated and will be revised in a future release of the compiler. If you use the #pragma
directive, the linker tool (LINK.exe) ignores the comment record produced by the directive and issues warning LNK4229. Instead of the #ident
directive, we recommend that you use a file version resource string in your application.
- Remove the
#ident "
string"
directive.
comment (C/C++)
Linker Tools Warning LNK4229
Working with Resource Files