Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.17 KB

linker-tools-warning-lnk4224.md

File metadata and controls

32 lines (24 loc) · 1.17 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Linker Tools Warning LNK4224
Linker Tools Warning LNK4224
11/04/2016
LNK4224
LNK4224
8624b70e-0b93-43cf-b457-834d38632d0b

Linker Tools Warning LNK4224

option is no longer supported; ignored

Remarks

An invalid, obsolete linker option was specified and ignored.

For example, LNK4224 can occur if a /comment directive appears in .obj. The /comment directive would have been added via the comment (C/C++) pragma, using the deprecated exestr option. Use dumpbin /ALL to view the linker directives in an .obj file.

If possible, modify the source for the .obj and remove the pragma. If you do ignore this warning, it is possible that an .executable compiled with /clr:pure will not run as expected. The /clr:pure compiler option is deprecated in Visual Studio 2015 and unsupported in Visual Studio 2017.

Example

The following sample generates LNK4224.

// LNK4224.cpp
// compile with: /c /Zi
// post-build command: link LNK4224.obj /debug /debugtype:map
int main () {
   return 0;
}