This documentation is archived and is not being maintained.

Compiler Warning (level 1) C4274

#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.

Show: