LoginSignup
0
0

More than 1 year has passed since last update.

C言語のCUIでのコンパイルから実行まで

Last updated at Posted at 2023-01-17

(1)適当なエデイタを使用し下記ファイル(aaa.c)を作成

aaa.c
#include <stdio.h>

int main(void){
    printf("hello me\n");
    return 0;
}

(2)コンパイル

*GNUのフリーであるgccを使用
*aaa.c:作成ファイル、hello:実行ファイル名
-oオプションは実行ファイル名指定

$ gcc aaa.c -o hello 

(3)実行して「hello me」が出力されるのを確認

$ ./hello
hello me
$
0
0
6

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