Linker Tools Error LNK1158
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 LNK1158.
cannot run 'filename'
The given executable file called by LINK is not in the directory that contains LINK nor in a directory specified in the PATH environment variable.
For example, you will get this error if you try to use the PGOPTIMIZE parameter to the /LTCG linker option on a machine with a 32-bit operating system.
Show: