Linker Tools Warning LNK4237

 

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

The latest version of this topic can be found at Linker Tools Warning LNK4237.

SUBSYSTEM:NATIVE specified when importing from 'dll'; Use /SUBSYSTEM:CONSOLE or /SUBSYSTEM:WINDOWS.

/SUBSYSTEM:NATIVE was specified when building a windows (Win32) application that directly uses one or more of the following:

  • kernel32.dll

  • gdi32.dll

  • user32.dll

  • one of the msvcrt* dlls.

Resolve this warning by not specifying /SUBSYSTEM:NATIVE.

Show: