copy and destroy

catch and eat

WSL をセットアップして `apt-get install build-essential` から "Hello, World!"

日記の練習です。*1*2

gyazo.com

PS winget search Microsoft.PowerShell
PS winget install --id Microsoft.PowerShell --source winget
PS $PSVersionTable
PS wsl --list --online
PS wsl --install
PS wsl --list --online
PS wsl --list --verbose
$ apt-get update
$ apt-get install build-essential
$ gcc -dumpversion
$ pwd
$ mkdir hello
$ cd hello/
$ vim hello.c
$ cat hello.c
#include <stdio.h>

int
main(int argc, char *argv[])
{
        printf("Hello, World!\n");
        return 0;
}
$ gcc -o hello hello.c
$ ls
$ ./hello
$ Hello, World!

*1:Amazon.co.jp: ふつうのLinuxプログラミング 第2版 Linuxの仕組みから学べるgccプログラミングの王道 eBook : 青木 峰郎: 本 https://www.amazon.co.jp/dp/B075ST51Y5

*2:Amazon.co.jp: Linuxをマスターしたい人のための実践Ubuntu[第2版] eBook : 水野源: 本 https://www.amazon.co.jp/dp/B0DNHBWGKX

powered by hatena blog.
the nikki system for lifelogging junkies.

all posts © their original owners.
writing is reusable solely under the by creative commons license.