-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
-
run the default installer
-
create a win32 console project from vs
-
in Configuration Properties/Linker/General add C:\raylib\raylib\release\win32
-
in Configuration Properties/Linker/Additional Dependencies add raylib.lib
-
in Configuration Properties/VC++ Directories/Include Directories add C:\raylib\raylib\release\win32
-
Configuration Properties/VC++ Directories/Library Directories add C:\raylib\raylib\release\win32\mingw32
-
copy the raylib.dll from C:\raylib\raylib\release\win32\mingw32 to the vs projects folder
-
open powershell and type cd C:\raylib\raylib\release\win32\mingw32
-
type dumpbin /exports raylib.dll
-
copy all the names ONLY, no numbers
-
create a file in that same folder, C:\raylib\raylib\release\win32\mingw32, called raylib.def
-
go into the file type EXPORTS at the top
-
paste all the names from step 10 into the file and save the file
-
in powershell type lib /def:C:\raylib\raylib\release\win32\mingw32\raylib.def /OUT:C:\raylib\raylib\release\win32\mingw32\raylib.lib
that is it, visual studio can now use raylib, happy hacking!
ps. maintainer, you could create a lib file for them from steps 8 to 14 and they could skip those steps