Issue with dmd, linker, visualD on windows 10
rumbu via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Dec 14 04:06:01 PST 2016
On Wednesday, 14 December 2016 at 11:06:10 UTC, aberba wrote:
> I am trying to get a fellow to try D but just setting up on
> windows 10 has been headache. He's currently remote. Here's the
> problem. (Note I'm a Linux user and haven't used windows 10)
>
>
> 1. He installed dmd 2 but the command "dmd" is not recognized.
> He confirmed and c:\D\dmd2\windows\bin is in system path. Why?
If he runs the command in an already open console window, that's
normal. A new console window launch will be enough to know about
the recent environment path change.
> 2. He installed visual studio 2015 and visualD(pointed it to
> dmd location during installation), restarted visual studio.
> Without creating a visualD project, "compile and run" does
> nothing when he clicks. We haven't tried creating a project
> though, just using a D file with simple "Hello, world!" code.
> Syntax highlighting work though.
Visual Studio doesn't work directly with source files, but with
project files. This is not D-specific. I'm sure that if you edit
a simple .c file in Visual Studio, it will never launch the C
compiler. Create a new project (Console Application) and it will
work.
>
> 3. He navigated to ...dmd2\windows\bin where "dmd" command
> works. But "dmd -run file.d" says Oplink error, linker exited
> with code ...
I think this is also a environment variables problem, the linker
needs some libs and does not know how to find them. Ask Cortana
for "D2 32-bit Command Prompt", this batch file will open a new
command prompt with all the environment variables properly set.
More information about the Digitalmars-d-learn
mailing list