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?

ishでgccの環境構築

Posted at

ishでgccの環境構築

ishでC言語のプログラミングを勉強するため、gccを追加したけど、stdio.hが読み込めないとエラーが出てしまった時の対処方法。

1.gccインストール

下記でgccと依存関係をインストールする。

apk add gcc

何故か私の環境では標準ライブラリがインストールされなかったらしく、コンパイル時にstdio.hの読み込みエラーになってしまいました。

2.標準ライブラリのインストール

下記で標準ライブラリをインストールする。

apk add libc-dev

これでエラーが出ないでコンパイルすることができるようになりました。

これで、開発環境の準備ができました。
linuxプログラミングの勉強頑張ります。

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?