Welcome to the c examples repository. This guide will help you set up and run the provided scripts.
- Cloning the Repository
- Prerequisites
- Running the
change-compiler.shScript - Running the
build.shScript
Clone the repository using the following command:
git clone https://github.com/programming101dev/c-examples.gitNavigate to the cloned directory:
cd c-examplesEnsure the scripts are executable:
chmod +x *.sh- to ensure you have all of the required tools installed, run:
./check-env.shIf you are missing tools follow these instructions.
Tell make which compiler you want to use:
./change-compiler.sh -c <compiler>To the see the list of possible compilers:
cat supported_c_compilers.txtTo build the program run:
./build.sh