фатальная ошибка: sdl2 /sdl.h: нет такого файла или каталога < /p>
Я попытался следовать инструкции на YouTube, но эта ошибка продолжается.
Я положил «sdl2.dll» в один и тот же каталог.
Код: Выделить всё
all:
g++ -I src/include -L src/lib -o main main.cpp -lmingw32 -lSDL2main -lSDL2
< /code>
my c_cpp_properties.json: < /p>
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/src/include"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "C:/msys64/mingw64/bin/g++.exe",
"cStandard": "gnu17",
"cppStandard": "gnu++23",
"intelliSenseMode": "windows-gcc-x64"
}
],
"version": 4
}
Подробнее здесь: https://stackoverflow.com/questions/753 ... -the-sdl-h
Мобильная версия