Linker Tools Error LNK1245
Visual Studio 2015
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 Error LNK1245.
invalid subsystem 'subsystem' specified; /SUBSYSTEM must be WINDOWS, WINDOWSCE, or CONSOLE
/clr was used to compile the object and one of the following conditions was true:
A custom entry point was defined (/ENTRY), such that, the linker could not infer a subsystem.
A value was passed to the /SUBSYSTEM linker option that is not valid for /clr objects.
For both situations, the resolution is to specify a valid value to the /SUBSYSTEM linker option.
Show: