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 1 year has passed since last update.

C言語 環境構築

Last updated at Posted at 2022-08-16

目次

  1. はじめに
  2. gccインストール
  3. 確認

1. はじめに

事前に以下のものは実行済とする

vscodeインストール
vscodeにて拡張機能Cをインストール

2. gccインストール

gcc - C言語のコンパイラ

[Windows]

参考サイト
https://katakago.sakura.ne.jp/pgm/gcc.html

以下のサイトの左側の tdm64-gcc-10.3.0-2.exe をクリック

3. 確認

C言語ソースファイルを作成

test.c
int main(){
	printf("Hello World!");
	return 0;
}

先ほどインストールしたgcc.exeのpathを取得して、コンパイル

"<インストール先パス>\gcc.exe" -o test.exe test.c

test.exeを実行して Hello World! と出力されたらOK

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?