The syntax has to be changed as the GDC based compiler is having the multiple definition errors. The given codes are done well but with some changes, it will work perfectly. I have also tried to make the code run but I also got the error and did ask https://errorcode0x.com/error-code-0xc0000428/ for the help.