# Re: Visual Studio Linker Problem

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat did in fact exist. My search for the file must have been errant.

ldc2.exe hello.d also failed in cmd.exe.

I took Mike's advice to run cmd.exe from one of the environments provided in the VS start menu. I tried to compile hello world and failed with the same error.

I then ran 'set > environment.txt'. The value of LIB included the path:

C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\ucrt\x64

which should have been:

C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10150.0\ucrt\x64.

I reset environment variable LIB to include the path to libucrt.lib. I was able to compile hello.d