MemoryMatchSFML/ ├─ src/ │ └─ main.cpp ├─ .vscode/ │ └─ tasks.json └─ bin/ (created after build)
-
Linux (e.g. Ubuntu)
-
g++
-
SFML development package:
sudo apt update sudo apt install -y libsfml-dev fonts-dejavu-core
From inside the MemoryMatchSFML folder:
mkdir -p bin
g++ src/main.cpp -o bin/memory_match \
-std=c++17 -lsfml-graphics -lsfml-window -lsfml-system
Then run:
./bin/memory_match
-
Open the MemoryMatchSFML folder in VS Code.
-
Press Ctrl+Shift+B to build.
-
The executable will be at
bin/memory_match. -
Run it from the terminal:
./bin/memory_match