Setup
Part 0 -- Setup
You will need some code to test out these instructions with. If you grab the CS260 examples code, it has some projects in Week01 you can use to do so with. From a command prompt you can do this to grab a copy of the CS260 code:
git clone https://github.com/ChemeketaCS/cs260Code.git
If using Windows you have two options:
A. Run everything inside of Windows Subsystem for Linux.
B. Use git bash to execute the commands. It is a command prompt installed with git that lets you use Linux syntax commands to execute windows programs. To do this you need to:
Make sure g++ is on your path. (https://computerscience.chemeketa.edu/CSResources/CommandLineGuide.pdf)
Install git. You will want to use the git bash command prompt to execute these commands (as opposed to PowerShell or CMD)
We need to make git bash run
mingw32-make
any time you try to runmake
. Open up git bash and type the following (you will only do this once per computer):cd echo "alias make=\"mingw32-make\"" > .bashrc
Then close git bash and restart it. You will get a message about the new .bashrc file, don't worry about it. Type
make
to make sure it worked - you should get an error specifying no target or makefile specified.