I'm trying to set up Visual Studio 2022 with Visual D, and I'm running into issues trying to get my project to build correctly. It's a double whammy because I've never used Visual Studio before (Just an Emacs Guy), but I need to debug my D programming and according to the documentation this is my only option on Windows.
I'm confused at what/where exactly D expect files to be for them to considered "installed". I'm using raylib-d.
-
My "compile and debug" and "compile and run" options both include "-lraylib" I've also tried just "-lib raylib"
-
I have the raylib source file located in my C:\D\dmd2\src
-
I have "-I%@P%....\src\raylib" in my sc.ini file located at C:\D\dmd2\windows\bin.
-
I even have raylib.dll and raylib.lib in the same directory as my d source file.
Despite this when I hit the Start button in Visual Studio I get this error
Building x64\Debug\chip8.exe...
chip8.d(4): Error: unable to read module `raylib`
chip8.d(4): Expected 'raylib.d' or 'raylib\package.d' in one of the following import paths:
import path[0] = C:\D\dmd2\windows\bin\..\..\src\phobos
import path[1] = C:\D\dmd2\windows\bin\..\..\src\druntime\import
import path[2] = C:\D\dmd2\windows\bin\..\..\src\gtkd
import path[3] = C:\D\dmd2\windows\bin\..\..\src\raylib
But I do have a package.d located in C:\D\dmd2\src\raylib\package.d. Does anyone know what I did wrong?