on-internet
← Community

How do I add a C library? (MacOS)

Stack Overflow ·

I'm trying to compile an example program from the SDL example program website, but I can't get my compiler or my IDE (Visual Studio Code) to recognize the SDL library. I did the steps the installation text file included in the DMG told me to do but my compiler gives me an error if I try to compile my .c project. sdl test.c:11:10: fatal error: 'SDL3/SDL.h' file not found 11 | #include <SDL3/SDL.h> | ^~~~~~~~~~~~ 1 error generated. Visual Studio Code does not recognize it either.

Comments

Sign in or sign up to comment and upvote.

No comments yet.