We are grading your solutions on Linux, so we suggest that you implement the assignments on Linux.
That being said you should be able to use any OS of your choice if you follow these instructions.
(Note: If you use Windows, you need to install WSL.)
Run the following commands:
sudo apt update
sudo apt upgrade -y
sudo apt install -y g++ build-essential gdb make cmake valgrind
Clang may already be installed on your Mac. To verify that it is, open a macOS Terminal window and enter the following command:
clang --version
If Clang isn't installed, enter the following command to install the command line developer tools:
xcode-select --install
We highly recommend using the CLion IDE as it comes with the tools you need to complete your assignment. You will need a free license for CLion, which you can get by following the instructions here.
VS Code needs the following two extensions to be configured properly.
If you are using an IDE, you can clone the repository directly using the IDE. When prompted for the link to the remote repo, use this repository's link from github.
-
If you are using the terminal, you can clone the repo (in any directory of your choice) using:
git clone <repo_url>
Right-click on the project tree and choose "Load CMake Project". More instructions can be found here.
Running tests with CLion
(Note: Make sure the All CTest configuration is selected in the top right corner of the IDE)
Click on the CMake tools extension on the extension pane (by default on the right side of the IDE) and click on the build icon. More instructions and tutorials can be found here.
Navigate to the directory where you cloned the repo
cd CS660-Fall2024-pa
Create a build directory and navigate to it
mkdir build
cd build
Run cmake to generate the build files
cmake ..
Build the project
make
Run the tests
ctest