Thanks, but still doesn't work. The compiler still ignores any path I add. I'm currently setting these environment variables: export PATH=/opt/homebrew/Cellar:/opt/homebrew/lib:$PATH export CPATH=/opt/homebrew/include:$CPATH export LIBRARY_PATH=/opt/homebrew/Cellar:/opt/homebrew/lib:$LIBRARY_PATH export LD_LIBRARY_PATH=/opt/homebrew/Cellar:/opt/homebrew/lib:$LD_LIBRARY_PATH export DYLD_LIBRARY_PATH=/opt/homebrew/Cellar:/opt/homebrew/lib:$DYLD_LIBRARY_PATH Run
I can verify that they are exported correctly in the command shell. But when I compile I get (formatted for clarity): dlopen(libSDL2.dylib, 0x0002): tried: 'libSDL2.dylib' (no such file), '/usr/local/lib/libSDL2.dylib' (no such file), '/usr/lib/libSDL2.dylib' (no such file), '/usr/local/lib/libSDL2.dylib' (no such file), '/usr/lib/libSDL2.dylib' (no such file) could not load: libSDL2.dylib Run Super frustrating...