MacOS
Windows Subsystem for Linux (WSL) - recommended for Windows systems
For an older more detailed tutorial see the first 8.5 minutes of https://www.youtube.com/watch?v=Cvrqmq9A3tA (summary). If you have more than one version of Ubuntu installed see WSL commands and launch configurations and example.
Post-install:
sudo apt update sudo apt upgrade -y sudo apt install -y gcc g++ make gdb zip mkdir /mnt/c/osp cd; echo "cd /mnt/c/osp" >> .profileThe cd in .profile will go to /mnt/c/osp automatically on startup.
Test Program
$ wget http://fog.misty.com/perry/osp/examples/point/point.zip [or use curl -O if wget is not available] ... $ unzip point.zip ... $ rm point.zip $ cd point $ make gcc -std=c11 -pedantic -Wall -g -c main.c gcc -std=c11 -pedantic -Wall -g -c point.c gcc -std=c11 -pedantic -Wall -g main.o point.o -o main -lm $ ./main p: (1,2) q: (3,4) distance = 2.82843 $ nano Point.h ... $ make clean $ cd .. $ zip -r point.zip point
Web-based Environments
Anjuta IDE for Linux - All or By Section