December 27, 2016
I have a C library I want to link against that was compiled with VS 2013. I have VS2013 and VS2015 installed. I want DMD to use the 2013 version, since the C-runtime in 2015 is not backwards compatible.

Looking at sc.ini I see several entries that relate to the linker, CRT, and SDK. How do I edit these to force the use of VS 2013?

I think I can figure out most of them except for UCRTVersion.

Thanks,
December 27, 2016
On Tue, 27 Dec 2016 22:09:49 +0000, Ryan wrote:

> I have a C library I want to link against that was compiled with VS 2013. I have VS2013 and VS2015 installed. I want DMD to use the 2013 version, since the C-runtime in 2015 is not backwards compatible.
> 
> Looking at sc.ini I see several entries that relate to the linker, CRT, and SDK. How do I edit these to force the use of VS 2013?
> 
> I think I can figure out most of them except for UCRTVersion.
> 
> Thanks,

You want either LINKCMD or LINKCMD64. VS 2013 is what, 11.0? So you'd add something like:

LINKCMD64=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin
\x86_amd64\link.exe


--Ryan