digitalmars.D.learn - Issue with dmd, linker, visualD on windows 10
- aberba (14/14) Dec 14 2016 I am trying to get a fellow to try D but just setting up on
- rikki cattermole (5/17) Dec 14 2016 Environment variables don't auto update in Windows.
- rumbu (13/27) Dec 14 2016 If he runs the command in an already open console window, that's
- aberba (2/19) Dec 14 2016 Thanks. The coolest part is cortona. :)
- 01010100b (5/19) Dec 15 2016 I had similar problems with Win7 and the same setup, for some
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? 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. 3. He navigated to ...dmd2\windows\bin where "dmd" command works. But "dmd -run file.d" says Oplink error, linker exited with code ...
Dec 14 2016
On 15/12/2016 12:06 AM, 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?Environment variables don't auto update in Windows. Gotta logout/restart explorer/restart or even create a new terminal instance with no parent processes.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. 3. He navigated to ...dmd2\windows\bin where "dmd" command works. But "dmd -run file.d" says Oplink error, linker exited with code ...File please oh and output during the running of dmd including of the linker.
Dec 14 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.
Dec 14 2016
On Wednesday, 14 December 2016 at 12:06:01 UTC, rumbu wrote:On Wednesday, 14 December 2016 at 11:06:10 UTC, aberba wrote:Thanks. The coolest part is cortona. :)[...]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.[...]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.[...]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.
Dec 14 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? 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. 3. He navigated to ...dmd2\windows\bin where "dmd" command works. But "dmd -run file.d" says Oplink error, linker exited with code ...I had similar problems with Win7 and the same setup, for some reason dmd's sc.ini wasn't being parsed, making the linker fail to find the required libraries. I solved it by adding the library paths (3 in total) manually to VisualD's options.
Dec 15 2016