This guide will help you set up the development environment for working with this repository.
-
Install C++ Compiler
- For macOS:
xcode-select --install
- For Ubuntu/Debian:
sudo apt-get update sudo apt-get install build-essential
- For Windows:
- Install MinGW or Visual Studio Community Edition
- For macOS:
-
Install Required Libraries
- SDL2 (Required for Assignment 3)
# macOS brew install sdl2 # Ubuntu/Debian sudo apt-get install libsdl2-dev # Windows # Download from https://www.libsdl.org/download-2.0.php
- SDL2 (Required for Assignment 3)
-
Install Python
- Download from python.org
- Minimum version: Python 3.8
-
Install pip
# Verify pip installation python -m pip --version
-
Install Required Extensions
- C/C++ Extension Pack
- Python Extension Pack
- Code Runner
-
Configure VSCode Settings
- Copy settings from
tools/vscode/to your VSCode settings - Ensure the C++ compiler path is correctly set
- Copy settings from
-
Compile a C++ Program
g++ -std=c++17 source.cpp -o output
-
Run the Program
./output
- Run a Python Script
python script.py
-
Compiler Not Found
- Ensure the compiler is in your system PATH
- Verify installation with
g++ --version
-
SDL2 Not Found
- Check if SDL2 is properly installed
- Verify library path in your build configuration
- Module Not Found
- Ensure you're using the correct Python environment
- Install required packages using pip