I wanted to learn game dev in C++ lately, so I decided to setup raylib in Visal Studio 2022 by following a tutorial online. I downloaded the latest release from the raylib github repo and configured Additional Directories/Additional Dependencies. raylib.h would successfully show up when I did #include but the issue comes up whenever I use any function:
#include "raylib.h"
int main() {
InitWindow(1280, 800, "Raylib");
CloseWindow(); // Exception throws at this line.
return 0;
}
Error:
Exception thrown at 0x00007FF6A4F896AA in RaylibTest.exe: 0xC0000005: Access violation reading location 0x0000000000000360.
I noticed that there was no raylib.dll in Debug > Windows > Modules which might be the culprit, but I do not know how to fix that.
-
4This question is similar to: How to link dll in visual studio?. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem.jorge is not ai– jorge is not ai2025年09月21日 13:10:55 +00:00Commented Sep 21, 2025 at 13:10
1 Answer 1
Raylib provides a option to override OpenGL versions used in the options.
2 Comments
Explore related questions
See similar questions with these tags.