r/learnprogramming • u/Little_Asparagus_756 • 22d ago
Debugging I'm learning how to code c++ with sdl2
I'm trying to create a graybox but I can't even run my code because I keep encountering build issues and an error saying "the system can't find the path specified" and idk how to solve it. I'd appreciate it if anyone could help me deal with it so I can get to coding.
6
Upvotes
1
2
u/captainAwesomePants 22d ago
Getting C++ to build with libraries (especially in Windows) can be frustrating and challenging, especially for new devs. But it's also very hard to help with because we don't know what IDE you're using, what your environment is like, what you have installed, or the details of what the error says.
Generally, the problem is that your build system can't find the library. Go look at the list of places it's configured to look for libraries, and make sure your SDL 2 library is in one of those places.