Add SDL to my path
问题 I install SDL via brew on my mac but I can't include it! Here is my too easy code: #include <SDL.h> int main(){ return 0; } when I compile it with cc, CC could not find SDL.h I found that brew install SDL in Cellar but cc did not check this folder Could you help me? 回答1: I know this post has 9 months old but if someone, somewhere in the internet try to find out how to use SDL with mac, just follow this. DL .dmg file on the SDL website (V2). Put SDL2.framework in /Library/Frameworks In your