Introduction

This is a series of projects designed to give beginning to intermediate C programmers a hands on learning experience.

Getting Started

The first thing we will need to do is setup our environment specifically for these projects. If at any point you encounter problems with these instructions, please send me an email so I can correct them.

Linux

All of these commands will be entered in your Linux terminal. I have tested this on the following systems:

  • Ubuntu 19
  • Ubuntu 16

The first thing we need to do is install the software for our environment. If you use a debian based system, you will use the following commands:

sudo apt update
sudo apt install git
sudo apt install cmake

If you are using Centos/Fedora/Redhat, you will run these commands:

sudo yum update
sudo yum install git
sudo yum install cmake

To verify that the software was correctly installed, run the following commands:

gcc --version
git --version
cmake --version

If you see the version information for each command, you can proceed to the next step:

cd ~
git clone https://github.com/johnpatek/cprojects.git
cd cprojects
./build_common.sh

Done! Time to start your first project!

Windows

The first part of this will involve you downloading and installing the software. I have tested these steps on the following versions of Windows:

  • Windows 7
  • Windows 10

Follow these steps to get your environment ready:

  1. Install Git
  2. Install CMake
  3. Install Visual Studio
  4. Go on a 2 week vacation while you wait for Visual Studio to install
  5. Add git.exe and cmake.exe to your system path

If you made it through steps 1-5, go ahead and open the Native Tools Command Prompt and enter the following commands:

git --version
cmake --version
msbuild -version

If you see version information after all 3 commands, you are almost done. Enter these last few commands to finish the setup process:

cd %USERPROFILE%
git clone https://github.com/johnpatek/cprojects.git
cd cprojects
build_common.bat

That concludes the Windows setup. Go ahead and start the first project.

1 2 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x