Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.36 KB

compiler-warning-level-1-c4274.md

File metadata and controls

26 lines (19 loc) · 1.36 KB
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
C4274
C4274
5a948680-7ed1-469f-978d-ae99d154e161

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

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.

See also

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