0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Golandでローカルデバッグしたときに fatal error: 'stdlib.h' file not found が出た話

Posted at

概要

Golnadでブレークポイントを設定して、デバッグしたくなったときに、Go Buildの設定をしたら、エラーが出て解消した話

エラー内容

fatal error: 'stdlib.h' file not found

解消法

ぐぐったら自分の書いた記事が見つかりました
https://qiita.com/airtanker/items/ccedbfb0b505f7fbab88

Golandのデバッグ時の設定で、環境変数に出力した内容をSDKROOTに設定することで解消できました。

❯ xcrun --sdk macosx --show-sdk-path
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk

こんな感じ
スクリーンショット 2020-06-05 14.12.35.png

感想

とりあえずめでたし

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?