0
2

More than 3 years have passed since last update.

C言語をAWSで使用する場合の環境構築

Posted at

前提

業務でC言語を使用することになったので事前学習でドットインストールで勉強することに。
しかし、ドットインストールのC言語入門は、ローカル環境構築の前提。
ローカル環境構築ではロケットスタートできないためAWSでポチれる環境構築方法を調べた

環境

Windows10
AWS cloud9

やりかた

AWS cloud9よりcreate envirmentをしワークスペースを作成する。
あとは普通に「xxxx.c」と拡張子cのファイルを作成すればよい。

キャプチャ.PNG

ちなみにC言語はコンパイル必須なので、gcc -o hello hello.cでコンパイルしたのち、./helloでバッシュ実行している。

hello.c
ec2-user:~/environment $ gcc -o hello hello.c
ec2-user:~/environment $ ./hello
x = 10, y = 5.200000, c = A
0
2
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
2