Code created during recording the Dynamic Loading video.
gcc -std=gnu17 -Wall -g main.c -o main -ldl
./main
gcc -std=gnu17 -Wall -g exit.c -o doit.so -fPIC -shared
gcc -std=gnu17 -Wall -g hello.c -o doit.so -fPIC -shared
g++ -std=gnu++17 -Wall -I./ -g main.cpp -o main -ldl
g++ -std=gnu++17 -Wall -fPIC -shared -I./ -g cupcake.cpp -o cupcake.so
g++ -std=gnu++17 -Wall -fPIC -shared -I./ -g donut.cpp -o donut.so
./main
./main 1
./main 2