The D program to launch doesn't exist in Visual Studio 2017

Roboticist matinking7007 at yahoo.com
Thu Nov 22 08:15:57 UTC 2018


On Wednesday, 21 November 2018 at 20:42:06 UTC, Daniel Kozák 
wrote:
> On Wednesday, 21 November 2018 at 18:34:38 UTC, Roboticist 
> wrote:
>> I'm just trying to set up a community version of the Visual 
>> Studio 2017 on my x64 PC (Windows 10) to program in D based on 
>> dmd compiler. In particular, I can build my snippet, but 
>> running the code returns the following error:
>>
>> The program to lunch does not exist.
>>
>> Additionally, the output window of my Visual Studio returns 
>> this:
>>
>> Building Win32\Debug\Test.exe...
>> OPTLINK (R) for Win32  Release 8.00.17
>> Copyright (C) Digital Mars 1989-2013  All rights reserved.
>> http://www.digitalmars.com/ctg/optlink.html
>> OPTLINK : Error 8: Illegal Filename
>> ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 
>> skipped ==========
>>
>> My file name is just "Test.d", so I have know idea what it 
>> means by illegal file name.
>>
>> Does anybody know anything about this issue?
>
> What is the full output path? I mean the complete path as a 
> C:\\whatever\\myproject\\...
>
> You have mentioned that you have Win64(x64) windows 10 and use 
> visual studio 2017. Why would you use optlink anyway? How did 
> you install D?

Here is the full path:

C:\users\myUser\source\repos\Test\Test\Win32\Debug\

I just installed D using dmd.exe before installing VS 2017 and D 
studio plugin. Additionally, I did no specific setting to use 
optlink. It's just what the d compiler is using by default.


More information about the Digitalmars-d-ide mailing list