Visual Studio Linker Problem
Jason C. Wells via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Oct 18 10:29:34 PDT 2016
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
Thanks all. Your advice set me on the right path.
Regards,
Jason C. Wells
More information about the Digitalmars-d-learn
mailing list