Skip to content

Instantly share code, notes, and snippets.

@hotwatermorning
Last active March 24, 2020 06:19
Show Gist options
  • Save hotwatermorning/740cc5cd3c9fa363d2894f78cfc5c027 to your computer and use it in GitHub Desktop.
Save hotwatermorning/740cc5cd3c9fa363d2894f78cfc5c027 to your computer and use it in GitHub Desktop.
Mac OSX Catalina 環境で gcc から標準ヘッダーが見つからない問題

--sysroot で SDK のディレクトリを指定すればいい

CXXFLAGS=-std=gnu++1z -g -DDEBUG -D_DEBUG --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment