-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
msvcp140.dll is missing on Windows #48
Comments
For info, there are two DLL that are missing and that can be added in the win32 bin folder:
|
I think we need to look with /MT to create a self contained binary.
Am Do., 12. Okt. 2017, 11:07 schrieb Fabien Dehopré <
notifications@github.com>:
… For info, there are two DLL that are missing and that can be added in the
win32 bin folder:
- msvcp140.dll
- vcruntime140.dll
I can create a pull request to add both DLL beside the clang-format.exe
program file.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcKD_8iBCH2uKqwmfRk3whyFIzHNe6ks5srdbUgaJpZM4P2juU>
.
|
BTW, I also tried to install the VS2015 C++ Redist package on another computer and clang-format.exe fails with the same issue. It seems that the program cannot find the required DLL even when they are installed in c:\windows\system32 folder. |
This includes a win32 binary compiled with the /MT switch, which fixes issue #48.
@FabienDehopre could you try out the win32 binary I've added in #50, and see if that resolves the issue? I built that using /MT, which I think should fix the problem, but I have no good way of testing. |
I've tried the binary you've added in #50 but it still not working. |
@FabienDehopre sorry for the back and forth. Can you try once more? I've updated clang-format.exe to use slightly different compiler flags. |
Unfortunately, it still does not work. We are back to the missing |
The last binary might have been an unclean build, I hadn't deleted all
object files before and I'm not sure if our build system properly tracks
compiler flag changes like this.
I've pushed one more set of binaries, can you give those a spin? If that
doesn't work, I'll need to figure out how to obtain a Windows machine to
test this on. The VM that I'm building on doesn't exhibit the problem you
describe (but that's not surprising, given that I installed Visual Studio
itself on it, which probably includes these runtime support libraries).
|
Good news! This version works correctly on my machine :-) |
Woohoo. Well that was a trip down memory lane into DLL hell :-) |
This includes a win32 binary compiled with the /MT switch by passing -DLLVM_USE_CRT_RELEASE=MT to configure clang format. Linking in the runtime libraries and producing a static binary fixes issue #48.
Published as clang-format 1.1.0. |
I installed the clang-format package in my project and when I try to execute clang-format using a npm script, I receive the following error message:
Here is the content of the
npm-debug.log
:If I try to execute the
clang-format.exe
program directly, a popup appears indicating that a DLL is missing:msvcp140.dll
. It seems that this DLL is part of the VS2015 C++ Redist package.I'm currently working on a computer where I cannot install the VS2015 C++ Redist package.
Maybe it might be a good idea to bundle the
clang-format.exe
with its dependencies (DLL).The text was updated successfully, but these errors were encountered: