Relative Content

Daily Archives: December 25, 2020

Compile a C code on Chromebook

Chromebookでhello できるまでの手順は以下の通り。 linux betaをインストールする。設定で検索すれば見つかる。 インストール後、ターミナルアプリを起動。 linux をアップデートする gccをインストールする C専用フォルダを作る vscode をダウンロードする vscode を立ち上げる Cフォルダにhello.cソースコードを作成し、コンパイル、実行 Linux環境準備 linux betaをインストールする。設定で検索すれば見つかる。 インストール後、ターミナルアプリを起動。 linux をアップデートする [=========] 準備完了 chen@penguin:~$ sudo apt-get update   vscode環境準備 gccをインストールする C専用フォルダを作る vscode をダウンロードする vscode を立ち上げる chen@penguin:~$ pwd /home/chen chen@penguin:~$ mkdir C chen@penguin:~$ cd C chen@penguin:~/C$ sudo apt-get install gcc C言語hello.c hello.c をコンパイルする chen@penguin:~/C$ ls hello.c chen@penguin:~/C$ gcc hello.c -o hello chen@penguin:~/C$ ./hello Hello, […]