Re: dmd error in wsl2

2021-05-25 Thread bharathyes via Digitalmars-d-learn
On Tuesday, 25 May 2021 at 16:15:55 UTC, mw wrote: I think `powershell` is a Windows thing, which caused the path finding trouble. Your better in a Linux shell e.g. `wsl -u root`. Can you directly use a console from debian? e.g start by clicking the app with the icon of Ubuntu. I am usin

Re: dmd error in wsl2

2021-05-25 Thread bharathyes via Digitalmars-d-learn
On Tuesday, 25 May 2021 at 15:59:21 UTC, MoonlightSentinel wrote: On Tuesday, 25 May 2021 at 15:54:31 UTC, bharathyes wrote: I wrote the basic code: You have a typo in your code, `std.studio` instead of `std.stdio`. Thanks. I spent more than half hour searching for this error but never fi

dmd error in wsl2

2021-05-25 Thread bharathyes via Digitalmars-d-learn
I am facing an issue compiling an hello world program using dmd v2.096.1 running on WSL2 debian. I wrote the basic code: ```d void main() { import std.studio; string name ; write("What is your name?"); readf("%s\n", &name); writeln("Hellow ", name); } ``` This throws the fo