Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 1) C4274

Visual Studio 2008
#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 noteCaution:

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.

To correct this error

  • Remove the #ident "string" directive.

Community Additions

ADD
Show:
© 2015 Microsoft