Archived Forum Post

Index of archived forum posts

Question:

VC++ 2015 static linking still referencing vcruntime140.dll?

Jan 12 '16 at 11:58

I have a small windows service that I just converted to VS 2015 and for some reason it's referencing vcruntime140.dll even though I'm compiling with /MT. I was wondering if by chance the 64-bit static library (v9.5.0.55) might be compiled with /MD or if anyone has experienced this. Maybe one of the 3 dependencies (see below) is referencing it?

Thanks, Tom

#pragma comment(lib, "Ws2_32.lib")
#pragma comment(lib, "Rpcrt4.lib")
#pragma comment(lib, "crypt32.lib")
#pragma comment(lib, "ChilkatRel_x64.lib")

Answer

Update... When I compile for 32-bit and link to chilkatrel.lib, the dll runtime is not referenced.


Answer

I double-checked, but everything looked correct. (/MD was not used in the project settings for the static lib builds)

I'm doing a new build now and I'll post here when finished..


Answer

Here's a new build after double-checking..

32-bit Download: http://www.chilkatsoft.com/download/preRelease/chilkat-9.5.0-x86-vc2015.zip

64-bit Download: http://www.chilkatsoft.com/download/preRelease/chilkat-9.5.0-x86_64-vc2015.zip


Answer

Well it ended up being me. I don't know what I was looking at previously but after checking my settings again the 64-bit runtime was DLL. Thanks for looking into this and sorry for the trouble.