-
download sfml
brew install sfml
-
check the path of sfml is the same in makefile
- In my case, the path is
/opt/homebrew/sfml
# Variables CC = g++ CFLAGS = -Wall -O3 -I/opt/homebrew/opt/sfml/include LDFLAGS = -L/opt/homebrew/opt/sfml/lib -lsfml-graphics -lsfml-window -lsfml-system
- In my case, the path is
./run.sh
- Add the path to "includePath"
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/opt/homebrew/opt/sfml/include",
],
"defines": [],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "macos-clang-arm64"
}
],
"version": 4
}