Я разрабатываю на Win10 программу C ++ для Webassembly.
#include <SDL2/SDL.h>
#include <stdlib.h>
#include <emscripten.h>
int main() {
printf("Hello World!");
}
Emscripten сам правильно создает файл .wasm. Но Intellisense в Visual Studio Code всегда показывает, что the source of #include <SDL2/SDL.h>
не может быть найдено. Мой c_cpp_properties. json выглядит так:
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"E:\\PROGRAMS\\emsdk-master\\upstream\\emscripten\\system\\**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "E:\\PROGRAMS\\mingw-w64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64\\bin\\gcc.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
Я не могу найти каталог SDL2 в ...\\emsdk-master\\upstream\\emscripten\\system\\"
. Что делаю не так?