Compiler Warning (level 1) C4274

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

For the latest documentation on Visual Studio 2017, see Compiler Warning (level 1) C4274 on docs.microsoft.com.

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

System_CAPS_ICON_caution.jpg 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.

To correct this error

  • Remove the #ident "string" directive.

comment (C/C++)
Linker Tools Warning LNK4229
Working with Resource Files

Show: