Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

link.exe fails with error -1073741515. #1

Open
juj opened this issue Apr 26, 2012 · 2 comments
Open

link.exe fails with error -1073741515. #1

juj opened this issue Apr 26, 2012 · 2 comments

Comments

@juj
Copy link
Owner

juj commented Apr 26, 2012

When using the Clang Compiler + MS Linker toolchain, building can fail during the link stage to the following error:

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\vs-tool\Microsoft.Cpp.vs-tool.Targets(182,5): error MSB6006: "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe" exited with code -1073741515.

As a workaround, adding the following directories to system PATH removes the problem:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin

(if you have VS installed to a different folder, adjust the paths accordingly)

@crowriot
Copy link
Contributor

crowriot commented Sep 2, 2013

a little late to the party, but here's how i've solved the problem: I've created a 'linkstub.bat' file with the following contents and pointing $(MsLinkExe) to the .bat file instead. So there's no need to mess around with the PATH environment variables

call "%VS100COMNTOOLS%\vsvars32.bat"
"%VS100COMNTOOLS%....\VC\bin\link.exe" %*

the error code translated to hex is 0xC0000135 and it just means that it can't find some dll.

@juj
Copy link
Owner Author

juj commented Sep 2, 2013

Thanks! Your solution looks like something better that I could incorporate to the vs-tool repo itself, so that would remove one item from user configuration steps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants