Visual D in Visual Studio 2013 on Win 8.1 with DMD x64 Linker Problem Solved

Robert Delgado greydelrjd at gmail.com
Tue Dec 10 22:36:01 PST 2013


Just in case someone else runs into this issue I had to tweak 
sci.ini as well
with a slightly different path for VS2013 12.0.21005.1.

"C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64".


On Sunday, 17 November 2013 at 23:41:15 UTC, Tyler Jensen wrote:
> Question and answer in one. I found the answer to my question 
> not long after composing the question. Posted here for others 
> who are on the bleeding OS edge as well.
>
> My environment:
>   Running Windows 8.1.
>   Visual Studio 2013 Premium installed.
>   Install Visual D with VisualD-v0.3.37.exe.
>
> Create new D console app DMD/GDC.
>
> Switch solution config to "Debug DMD|x64"
>
> Hit F6 to build and get the following:
>
> ------ Build started: Project: ConsoleApp1, Configuration: 
> Debug DMD x64 ------
> Building Debug DMD x64\ConsoleApp1.exe...
> LINK : fatal error LNK1181: cannot open input file 'user32.lib'
> Building Debug DMD x64\ConsoleApp1.exe failed!
> ------
>
> How to fix this? That is the question.
>
> Partial answer found in known issues page: 
> http://rainers.github.io/visuald/visuald/KnownIssues.html
>
> That fix did not work but it led to trying this change to 
> sc.ini (only showing changed lines):
>
> ; environment for both 32/64 bit
> [Environment]
> LIB="%@P%\..\lib";\dm\lib;"C:\Program Files (x86)\Windows 
> Kits\8.0\Lib\win8\um\x86";%DMD_LIB%
> ; original LIB="%@P%\..\lib"
>
> [Environment32]
> ; original LIB="%@P%\..\lib"
> LIB="%@P%\..\lib";\dm\lib;"C:\Program Files (x86)\Windows 
> Kits\8.0\Lib\win8\um\x86";%DMD_LIB%
>
> [Environment64]
> ; original LIB="%@P%\..\lib64"
> LIB="%@P%\..\lib64";\dm\lib;"C:\Program Files (x86)\Windows 
> Kits\8.0\Lib\win8\um\x64";%DMD_LIB%



More information about the Digitalmars-d-ide mailing list