emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.87k stars 3.32k forks source link

emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ error: no member named 'X' in the global namespace #15205

Open Psanyi89 opened 3 years ago

Psanyi89 commented 3 years ago

I try to fix it for few days now so I came here for any type of help or advice. Is it a known issue because I tried to google it but no useful results was found. BTW I am using Codeblocks as IDE and mingw-9.2.0 as compiler it compiles flawlessly but if i try it with emscripten it gives those errors from the sysroot includes. Can i somewhere somehow overwrite that it won't uses the inlcudes from the cache? Thanks for you help in advance.

-------------- Clean: Debug in SDL_TEst (compiler: emscripten)---------------

Cleaned "SDL_TEst - Debug"

-------------- Build: Debug in SDL_TEst (compiler: emscripten)---------------

em++.bat -Wall -g -v -DDebug -O2 -s ALLOW_MEMORY_GROWTH=1 -march=corei7 -std=c++17 -g -ID:\MingW\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -c D:\C#_Tananyag\C_Programok\sdl_test\main.cpp -o obj\Debug\main.o
em++.bat -Wall -g -v -DDebug -O2 -s ALLOW_MEMORY_GROWTH=1 -march=corei7 -std=c++17 -g -ID:\MingW\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -c D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp -o obj\Debug\src\Characters\Warrior.o
em++.bat -Wall -g -v -DDebug -O2 -s ALLOW_MEMORY_GROWTH=1 -march=corei7 -std=c++17 -g -ID:\MingW\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -c D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp -o obj\Debug\src\Core\Engine.o
em++.bat -Wall -g -v -DDebug -O2 -s ALLOW_MEMORY_GROWTH=1 -march=corei7 -std=c++17 -g -ID:\MingW\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -c D:\C#_Tananyag\C_Programok\sdl_test\src\Graphics\TextureManager.cpp -o obj\Debug\src\Graphics\TextureManager.o
em++.bat -LD:\MingW\lib -o bin\Debug\SDL_TEst.exe obj\Debug\main.o obj\Debug\src\Characters\Warrior.o obj\Debug\src\Core\Engine.o obj\Debug\src\Graphics\TextureManager.o  -lmingw32 -lSDL2 -lSDL2_image  -lmingw32 -lSDL2main -lSDL2.dll -luser32 -lgdi32 -lwinmm -ldxguid
em++: warning: linker setting ignored during compilation: 'ALLOW_MEMORY_GROWTH' [-Wunused-command-line-argument]
 "D:/emsdk-main/emsdk/upstream/bin\clang++.exe" -target wasm32-unknown-emscripten -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=30 -D_LIBCPP_ABI_VERSION=2 -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot -Xclang -iwithsysroot/include\compat -Wall -g -v -DDebug -O2 -march=corei7 -std=c++17 -g -ID:\MingW\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -c D:\C#_Tananyag\C_Programok\sdl_test\main.cpp -o obj\Debug\main.o
em++: warning: linker setting ignored during compilation: 'ALLOW_MEMORY_GROWTH' [-Wunused-command-line-argument]
 "D:/emsdk-main/emsdk/upstream/bin\clang++.exe" -target wasm32-unknown-emscripten -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=30 -D_LIBCPP_ABI_VERSION=2 -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot -Xclang -iwithsysroot/include\compat -Wall -g -v -DDebug -O2 -march=corei7 -std=c++17 -g -ID:\MingW\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -c D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp -o obj\Debug\src\Characters\Warrior.o
clang version 14.0.0 (https://github.com/llvm/llvm-project c4048d8f50aaf2c4c13b8d3e138abc34a22da754)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: D:/emsdk-main/emsdk/upstream/bin
 (in-process)
 "D:\\emsdk-main\\emsdk\\upstream\\bin\\clang++.exe" -cc1 -triple wasm32-unknown-emscripten -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name main.cpp -mrelocation-model static -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -target-cpu generic -fvisibility hidden -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb -v "-fcoverage-compilation-dir=D:\\C#_Tananyag\\C_Programok\\sdl_test" -resource-dir "D:\\emsdk-main\\emsdk\\upstream\\lib\\clang\\14.0.0" -D EMSCRIPTEN -D __EMSCRIPTEN_major__=2 -D __EMSCRIPTEN_minor__=0 -D __EMSCRIPTEN_tiny__=30 -D _LIBCPP_ABI_VERSION=2 -D Debug -I "D:\\MingW\\include" -I "src\\" -I "src\\Core" -I "src\\Graphics" -I "src\\Physics" -I "src\\Objects" -I "src\\Characters" -isysroot "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include/wasm32-emscripten/c++/v1" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include/c++/v1" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\lib\\clang\\14.0.0\\include" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include/wasm32-emscripten" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include" -O2 -Werror=implicit-function-declaration -Wall -std=c++17 -fdeprecated-macro "-fdebug-compilation-dir=D:\\C#_Tananyag\\C_Programok\\sdl_test" -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fignore-exceptions -fexceptions -vectorize-loops -vectorize-slp -iwithsysroot/include/SDL "-iwithsysroot/include\\compat" -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -o "obj\\Debug\\main.o" -x c++ "D:\\C#_Tananyag\\C_Programok\\sdl_test\\main.cpp"
clang -cc1 version 14.0.0 based upon LLVM 14.0.0git default target x86_64-pc-windows-msvc
ignoring nonexistent directory "D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/wasm32-emscripten/c++/v1"
ignoring nonexistent directory "D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/wasm32-emscripten"
#include "..." search starts here:
#include <...> search starts here:
 D:\MingW\include
 src
 src\Core
 src\Graphics
 src\Physics
 src\Objects
 src\Characters
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/SDL
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\compat
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1
 D:\emsdk-main\emsdk\upstream\lib\clang\14.0.0\include
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include
End of search list.
clang version 14.0.0 (https://github.com/llvm/llvm-project c4048d8f50aaf2c4c13b8d3e138abc34a22da754)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: D:/emsdk-main/emsdk/upstream/bin
 (in-process)
 "D:\\emsdk-main\\emsdk\\upstream\\bin\\clang++.exe" -cc1 -triple wasm32-unknown-emscripten -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name Warrior.cpp -mrelocation-model static -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -target-cpu generic -fvisibility hidden -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb -v "-fcoverage-compilation-dir=D:\\C#_Tananyag\\C_Programok\\sdl_test" -resource-dir "D:\\emsdk-main\\emsdk\\upstream\\lib\\clang\\14.0.0" -D EMSCRIPTEN -D __EMSCRIPTEN_major__=2 -D __EMSCRIPTEN_minor__=0 -D __EMSCRIPTEN_tiny__=30 -D _LIBCPP_ABI_VERSION=2 -D Debug -I "D:\\MingW\\include" -I "src\\" -I "src\\Core" -I "src\\Graphics" -I "src\\Physics" -I "src\\Objects" -I "src\\Characters" -isysroot "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include/wasm32-emscripten/c++/v1" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include/c++/v1" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\lib\\clang\\14.0.0\\include" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include/wasm32-emscripten" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include" -O2 -Werror=implicit-function-declaration -Wall -std=c++17 -fdeprecated-macro "-fdebug-compilation-dir=D:\\C#_Tananyag\\C_Programok\\sdl_test" -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fignore-exceptions -fexceptions -vectorize-loops -vectorize-slp -iwithsysroot/include/SDL "-iwithsysroot/include\\compat" -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -o "obj\\Debug\\src\\Characters\\Warrior.o" -x c++ "D:\\C#_Tananyag\\C_Programok\\sdl_test\\src\\Characters\\Warrior.cpp"
clang -cc1 version 14.0.0 based upon LLVM 14.0.0git default target x86_64-pc-windows-msvc
ignoring nonexistent directory "D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/wasm32-emscripten/c++/v1"
ignoring nonexistent directory "D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/wasm32-emscripten"
#include "..." search starts here:
#include <...> search starts here:
 D:\MingW\include
 src
 src\Core
 src\Graphics
 src\Physics
 src\Objects
 src\Characters
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/SDL
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\compat
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1
 D:\emsdk-main\emsdk\upstream\lib\clang\14.0.0\include
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include
End of search list.
em++: warning: linker setting ignored during compilation: 'ALLOW_MEMORY_GROWTH' [-Wunused-command-line-argument]
 "D:/emsdk-main/emsdk/upstream/bin\clang++.exe" -target wasm32-unknown-emscripten -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=30 -D_LIBCPP_ABI_VERSION=2 -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot -Xclang -iwithsysroot/include\compat -Wall -g -v -DDebug -O2 -march=corei7 -std=c++17 -g -ID:\MingW\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -c D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp -o obj\Debug\src\Core\Engine.o
clang version 14.0.0 (https://github.com/llvm/llvm-project c4048d8f50aaf2c4c13b8d3e138abc34a22da754)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: D:/emsdk-main/emsdk/upstream/bin
 (in-process)
 "D:\\emsdk-main\\emsdk\\upstream\\bin\\clang++.exe" -cc1 -triple wasm32-unknown-emscripten -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name Engine.cpp -mrelocation-model static -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -target-cpu generic -fvisibility hidden -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb -v "-fcoverage-compilation-dir=D:\\C#_Tananyag\\C_Programok\\sdl_test" -resource-dir "D:\\emsdk-main\\emsdk\\upstream\\lib\\clang\\14.0.0" -D EMSCRIPTEN -D __EMSCRIPTEN_major__=2 -D __EMSCRIPTEN_minor__=0 -D __EMSCRIPTEN_tiny__=30 -D _LIBCPP_ABI_VERSION=2 -D Debug -I "D:\\MingW\\include" -I "src\\" -I "src\\Core" -I "src\\Graphics" -I "src\\Physics" -I "src\\Objects" -I "src\\Characters" -isysroot "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include/wasm32-emscripten/c++/v1" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include/c++/v1" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\lib\\clang\\14.0.0\\include" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include/wasm32-emscripten" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include" -O2 -Werror=implicit-function-declaration -Wall -std=c++17 -fdeprecated-macro "-fdebug-compilation-dir=D:\\C#_Tananyag\\C_Programok\\sdl_test" -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fignore-exceptions -fexceptions -vectorize-loops -vectorize-slp -iwithsysroot/include/SDL "-iwithsysroot/include\\compat" -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -o "obj\\Debug\\src\\Core\\Engine.o" -x c++ "D:\\C#_Tananyag\\C_Programok\\sdl_test\\src\\Core\\Engine.cpp"
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp:1:
In file included from src\Characters/Warrior.h:3:
In file included from src\Characters/Character.h:4:
In file included from src\GameObject.h:4:
In file included from src\Physics\Transform.h:3:
In file included from src\Physics/Vector2D.h:4:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iostream:37:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ios:215:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__locale:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string:511:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string_view:179:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__string:57:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:653:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\memory:670:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\typeinfo:61:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\exception:83:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\cstdlib:109:9: error: no member named 'atoll' in the global namespace; did you mean 'atol'?
using ::atoll;
      ~~^
D:\MingW\include\stdlib.h:363:39: note: 'atol' declared here
_CRTIMP __cdecl __MINGW_NOTHROW  long atol (const char *);
                                      ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp:1:
In file included from src\Characters/Warrior.h:3:
In file included from src\Characters/Character.h:4:
In file included from src\GameObject.h:4:
In file included from src\Physics\Transform.h:3:
In file included from src\Physics/Vector2D.h:4:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iostream:37:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ios:215:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__locale:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string:511:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string_view:179:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__string:57:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:653:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\memory:670:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\typeinfo:244:16: error: reinterpret_cast from 'std::__type_info_implementations::__non_unique_arm_rtti_bit_impl::__type_name_t' (aka 'unsigned int') to 'size_t' (aka 'unsigned long') is not allowed
        return reinterpret_cast<size_t>(__v);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clang -cc1 version 14.0.0 based upon LLVM 14.0.0git default target x86_64-pc-windows-msvc
ignoring nonexistent directory "D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/wasm32-emscripten/c++/v1"
ignoring nonexistent directory "D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/wasm32-emscripten"
#include "..." search starts here:
#include <...> search starts here:
 D:\MingW\include
 src
 src\Core
 src\Graphics
 src\Physics
 src\Objects
 src\Characters
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/SDL
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\compat
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1
 D:\emsdk-main\emsdk\upstream\lib\clang\14.0.0\include
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include
End of search list.
em++: warning: linker setting ignored during compilation: 'ALLOW_MEMORY_GROWTH' [-Wunused-command-line-argument]
 "D:/emsdk-main/emsdk/upstream/bin\clang++.exe" -target wasm32-unknown-emscripten -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=30 -D_LIBCPP_ABI_VERSION=2 -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot -Xclang -iwithsysroot/include\compat -Wall -g -v -DDebug -O2 -march=corei7 -std=c++17 -g -ID:\MingW\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -c D:\C#_Tananyag\C_Programok\sdl_test\src\Graphics\TextureManager.cpp -o obj\Debug\src\Graphics\TextureManager.o
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp:1:
In file included from src\Characters/Warrior.h:3:
In file included from src\Characters/Character.h:4:
In file included from src\GameObject.h:4:
In file included from src\Physics\Transform.h:3:
In file included from src\Physics/Vector2D.h:4:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iostream:37:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ios:215:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__locale:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string:511:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string_view:179:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__string:57:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:653:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\memory:687:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\atomic:579:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__threading_support:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\chrono:828:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ctime:49:
D:\MingW\include\time.h:396:1: error: unknown type name '__MINGW_IMPORT'
__MINGW_IMPORT char     *tzname[2];
^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp:1:
In file included from src\Characters/Warrior.h:3:
In file included from src\Characters/Character.h:4:
In file included from src\GameObject.h:4:
In file included from src\Physics\Transform.h:3:
In file included from src\Physics/Vector2D.h:4:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iostream:37:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ios:215:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__locale:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string:511:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string_view:179:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__string:57:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:653:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\memory:687:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\atomic:579:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__threading_support:32:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\pthread.h:28:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\bits/alltypes.h:281:13: error: typedef redefinition with different types ('int' vs 'struct __clockid__ *')
typedef int clockid_t;
            ^
D:\MingW\include\time.h:439:29: note: previous definition is here
typedef struct __clockid__ *clockid_t;
                            ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp:1:
In file included from src\Characters/Warrior.h:3:
In file included from src\Characters/Character.h:4:
In file included from src\GameObject.h:4:
In file included from src\Physics\Transform.h:3:
In file included from src\Physics/Vector2D.h:4:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iostream:37:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ios:215:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__locale:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string:511:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string_view:179:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__string:57:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:653:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\memory:687:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\atomic:579:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__threading_support:32:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\pthread.h:28:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\bits/alltypes.h:301:8: error: redefinition of 'timespec'
struct timespec { time_t tv_sec; long tv_nsec; };
       ^
D:\MingW\include\time.h:115:8: note: previous definition is here
struct timespec
       ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp:1:
In file included from src\Characters/Warrior.h:3:
In file included from src\Characters/Character.h:4:
In file included from src\GameObject.h:4:
In file included from src\Physics\Transform.h:3:
In file included from src\Physics/Vector2D.h:4:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iostream:37:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ios:215:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__locale:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string:511:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string_view:179:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__string:57:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:653:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\memory:687:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\atomic:579:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__threading_support:38:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\semaphore.h:13:
In file included from D:\MingW\include\fcntl.h:20:
In file included from D:\MingW\include\io.h:57:
D:\MingW\include\sys/types.h:211:20: error: typedef redefinition with different types ('_sigset_t' (aka 'int') vs 'struct __sigset_t')
typedef _sigset_t        sigset_t;
                         ^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\bits/alltypes.h:405:71: note: previous definition is here
typedef struct __sigset_t { unsigned long __bits[128/sizeof(long)]; } sigset_t;
                                                                      ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp:1:
In file included from src\Graphics\TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:14:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iterator:419:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__functional_base:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\typeinfo:61:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\exception:83:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\cstdlib:109:9: error: no member named 'atoll' in the global namespace; did you mean 'atol'?
using ::atoll;
      ~~^
D:\MingW\include\stdlib.h:363:39: note: 'atol' declared here
_CRTIMP __cdecl __MINGW_NOTHROW  long atol (const char *);
                                      ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp:1:
In file included from src\Graphics\TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:14:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iterator:419:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__functional_base:15:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\typeinfo:244:16: error: reinterpret_cast from 'std::__type_info_implementations::__non_unique_arm_rtti_bit_impl::__type_name_t' (aka 'unsigned int') to 'size_t' (aka 'unsigned long') is not allowed
        return reinterpret_cast<size_t>(__v);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp:1:
In file included from src\Graphics\TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\memory:687:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\atomic:579:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__threading_support:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\chrono:828:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ctime:49:
D:\MingW\include\time.h:396:1: error: unknown type name '__MINGW_IMPORT'
__MINGW_IMPORT char     *tzname[2];
^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp:1:
In file included from src\Graphics\TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\memory:687:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\atomic:579:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__threading_support:32:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\pthread.h:28:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\bits/alltypes.h:281:13: error: typedef redefinition with different types ('int' vs 'struct __clockid__ *')
typedef int clockid_t;
            ^
D:\MingW\include\time.h:439:29: note: previous definition is here
typedef struct __clockid__ *clockid_t;
                            ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp:1:
In file included from src\Graphics\TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\memory:687:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\atomic:579:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__threading_support:32:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\pthread.h:28:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\bits/alltypes.h:301:8: error: redefinition of 'timespec'
struct timespec { time_t tv_sec; long tv_nsec; };
       ^
D:\MingW\include\time.h:115:8: note: previous definition is here
struct timespec
       ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp:1:
In file included from src\Graphics\TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\memory:687:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\atomic:579:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__threading_support:38:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\semaphore.h:13:
In file included from D:\MingW\include\fcntl.h:20:
In file included from D:\MingW\include\io.h:57:
D:\MingW\include\sys/types.h:211:20: error: typedef redefinition with different types ('_sigset_t' (aka 'int') vs 'struct __sigset_t')
typedef _sigset_t        sigset_t;
                         ^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\bits/alltypes.h:405:71: note: previous definition is here
typedef struct __sigset_t { unsigned long __bits[128/sizeof(long)]; } sigset_t;
                                                                      ^
clang version 14.0.0 (https://github.com/llvm/llvm-project c4048d8f50aaf2c4c13b8d3e138abc34a22da754)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: D:/emsdk-main/emsdk/upstream/bin
 (in-process)
 "D:\\emsdk-main\\emsdk\\upstream\\bin\\clang++.exe" -cc1 -triple wasm32-unknown-emscripten -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name TextureManager.cpp -mrelocation-model static -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -target-cpu generic -fvisibility hidden -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb -v "-fcoverage-compilation-dir=D:\\C#_Tananyag\\C_Programok\\sdl_test" -resource-dir "D:\\emsdk-main\\emsdk\\upstream\\lib\\clang\\14.0.0" -D EMSCRIPTEN -D __EMSCRIPTEN_major__=2 -D __EMSCRIPTEN_minor__=0 -D __EMSCRIPTEN_tiny__=30 -D _LIBCPP_ABI_VERSION=2 -D Debug -I "D:\\MingW\\include" -I "src\\" -I "src\\Core" -I "src\\Graphics" -I "src\\Physics" -I "src\\Objects" -I "src\\Characters" -isysroot "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include/wasm32-emscripten/c++/v1" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include/c++/v1" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\lib\\clang\\14.0.0\\include" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include/wasm32-emscripten" -internal-isystem "D:\\emsdk-main\\emsdk\\upstream\\emscripten\\cache\\sysroot/include" -O2 -Werror=implicit-function-declaration -Wall -std=c++17 -fdeprecated-macro "-fdebug-compilation-dir=D:\\C#_Tananyag\\C_Programok\\sdl_test" -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fignore-exceptions -fexceptions -vectorize-loops -vectorize-slp -iwithsysroot/include/SDL "-iwithsysroot/include\\compat" -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -o "obj\\Debug\\src\\Graphics\\TextureManager.o" -x c++ "D:\\C#_Tananyag\\C_Programok\\sdl_test\\src\\Graphics\\TextureManager.cpp"
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp:1:
In file included from src\Characters/Warrior.h:3:
In file included from src\Characters/Character.h:4:
In file included from src\GameObject.h:4:
In file included from src\Physics\Transform.h:3:
In file included from src\Physics/Vector2D.h:4:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iostream:37:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ios:215:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__locale:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string:511:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string_view:179:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__string:57:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:654:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:1952:18: error: cannot combine with previous 'char' declaration specifier
    mutable char __small[sizeof(void*) * 2];
                 ^
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp:1:
In file included from src\Characters/Warrior.h:3:
In file included from src\Characters/Character.h:4:
In file included from src\GameObject.h:4:
In file included from src\Physics\Transform.h:3:
In file included from src\Physics/Vector2D.h:4:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iostream:37:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ios:215:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__locale:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string:511:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string_view:179:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__string:57:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:654:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:1952:25: error: expected member name or ';' after declaration specifiers
    mutable char __small[sizeof(void*) * 2];
    ~~~~~~~~~~~~~~~~~~~~^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2087:59: error: expected unqualified-id
                                                ? &__buf->__small
                                                          ^
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp:1:
In file included from src\Characters/Warrior.h:3:
In file included from src\Characters/Character.h:4:
In file included from src\GameObject.h:4:
In file included from src\Physics\Transform.h:3:
In file included from src\Physics/Vector2D.h:4:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iostream:37:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ios:215:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__locale:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string:511:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string_view:179:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__string:57:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:654:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2087:59: error: expected ':'
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2087:49: note: to match this '?'
                                                ? &__buf->__small
                                                ^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2088:49: error: expected '(' for function-style cast or type construction
                                                : __buf->__large);
                                                ^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2088:49: error: expected ')'
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2086:44: note: to match this '('
        _Fun* __f = reinterpret_cast<_Fun*>(__use_small_storage<_Fun>::value
                                           ^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2134:39: error: expected unqualified-id
                ::new ((void*)&__buf_.__small)
                                      ^
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp:1:
In file included from src\Characters/Warrior.h:3:
In file included from src\Characters/Character.h:4:
In file included from src\GameObject.h:4:
In file included from src\Physics\Transform.h:3:
In file included from src\Physics/Vector2D.h:4:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iostream:37:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ios:215:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__locale:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string:511:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string_view:179:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__string:57:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:654:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2157:33: error: expected unqualified-id
          ::new ((void*)&__buf_.__small) _Fun(_VSTD::move(__f));
                                ^
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp:1:
In file included from src\Characters/Warrior.h:3:
In file included from src\Characters/Character.h:4:
In file included from src\GameObject.h:4:
In file included from src\Physics\Transform.h:3:
In file included from src\Physics/Vector2D.h:4:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iostream:37:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ios:215:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__locale:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string:511:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string_view:179:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__string:57:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:654:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2254:57: error: expected unqualified-id
            return reinterpret_cast<const _Tp*>(&__buf_.__small);
                                                        ^
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp:1:
In file included from src\Characters/Warrior.h:3:
In file included from src\Characters/Character.h:4:
In file included from src\GameObject.h:4:
In file included from src\Physics\Transform.h:3:
In file included from src\Physics/Vector2D.h:4:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iostream:37:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ios:215:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__locale:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string:511:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string_view:179:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__string:57:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:654:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2254:57: error: expected ')'
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2254:48: note: to match this '('
            return reinterpret_cast<const _Tp*>(&__buf_.__small);
                                               ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp:1:
In file included from src\Graphics\TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:17:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:654:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:1952:18: error: cannot combine with previous 'char' declaration specifier
    mutable char __small[sizeof(void*) * 2];
                 ^
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp:1:
In file included from src\Graphics\TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:17:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:654:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:1952:25: error: expected member name or ';' after declaration specifiers
    mutable char __small[sizeof(void*) * 2];
    ~~~~~~~~~~~~~~~~~~~~^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2087:59: error: expected unqualified-id
                                                ? &__buf->__small
                                                          ^
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp:1:
In file included from src\Graphics\TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:17:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:654:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2087:59: error: expected ':'
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2087:49: note: to match this '?'
                                                ? &__buf->__small
                                                ^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2088:49: error: expected '(' for function-style cast or type construction
                                                : __buf->__large);
                                                ^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2088:49: error: expected ')'
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2086:44: note: to match this '('
        _Fun* __f = reinterpret_cast<_Fun*>(__use_small_storage<_Fun>::value
                                           ^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2134:39: error: expected unqualified-id
                ::new ((void*)&__buf_.__small)
                                      ^
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp:1:
In file included from src\Graphics\TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:17:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:654:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2157:33: error: expected unqualified-id
          ::new ((void*)&__buf_.__small) _Fun(_VSTD::move(__f));
                                ^
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp:1:
In file included from src\Graphics\TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:17:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:654:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2254:57: error: expected unqualified-id
            return reinterpret_cast<const _Tp*>(&__buf_.__small);
                                                        ^
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp:1:
In file included from src\Graphics\TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:17:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:654:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2254:57: error: expected ')'
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:2254:48: note: to match this '('
            return reinterpret_cast<const _Tp*>(&__buf_.__small);
                                               ^
clang -cc1 version 14.0.0 based upon LLVM 14.0.0git default target x86_64-pc-windows-msvc
ignoring nonexistent directory "D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/wasm32-emscripten/c++/v1"
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp:1:
In file included from src\Characters/Warrior.h:3:
In file included from src\Characters/Character.h:4:
In file included from src\GameObject.h:4:
In file included from src\Physics\Transform.h:3:
In file included from src\Physics/Vector2D.h:4:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iostream:37:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ios:215:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__locale:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string:511:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string_view:179:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__string:60:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\cwchar:122:9: error: no member named 'swprintf' in the global namespace
using ::swprintf;
      ~~^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\cwchar:124:9: error: no member named 'vswprintf' in the global namespace
using ::vswprintf;
      ~~^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\cwchar:129:9: error: no member named 'fgetws' in the global namespace
using ::fgetws;
      ~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
em++: error: 'D:/emsdk-main/emsdk/upstream/bin\clang++.exe -target wasm32-unknown-emscripten -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=30 -D_LIBCPP_ABI_VERSION=2 -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot -Xclang -iwithsysroot/include\compat -Wall -g -v -DDebug -O2 -march=corei7 -std=c++17 -g -ID:\MingW\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -c D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp -o obj\Debug\src\Characters\Warrior.o' failed (returned 1)
Process terminated with status 1 (0 minute(s), 1 second(s))

In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp:3:
In file included from src\Physics\Transform.h:3:
In file included from src\Physics/Vector2D.h:4:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iostream:37:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ios:215:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__locale:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string:511:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\string_view:179:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__string:60:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\cwchar:122:9: error: no member named 'swprintf' in the global namespace
using ::swprintf;
      ~~^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\cwchar:124:9: error: no member named 'vswprintf' in the global namespace
using ::vswprintf;
      ~~^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\cwchar:129:9: error: no member named 'fgetws' in the global namespace
using ::fgetws;
      ~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
em++: error: 'D:/emsdk-main/emsdk/upstream/bin\clang++.exe -target wasm32-unknown-emscripten -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=30 -D_LIBCPP_ABI_VERSION=2 -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot -Xclang -iwithsysroot/include\compat -Wall -g -v -DDebug -O2 -march=corei7 -std=c++17 -g -ID:\MingW\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -c D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp -o obj\Debug\src\Core\Engine.o' failed (returned 1)
Process terminated with status 1 (0 minute(s), 1 second(s))

ignoring nonexistent directory "D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/wasm32-emscripten"
#include "..." search starts here:
#include <...> search starts here:
 D:\MingW\include
 src
 src\Core
 src\Graphics
 src\Physics
 src\Objects
 src\Characters
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/SDL
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\compat
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1
 D:\emsdk-main\emsdk\upstream\lib\clang\14.0.0\include
 D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include
End of search list.
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Graphics\TextureManager.cpp:1:
In file included from src\Graphics/TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:14:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iterator:419:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__functional_base:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\typeinfo:61:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\exception:83:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\cstdlib:109:9: error: no member named 'atoll' in the global namespace; did you mean 'atol'?
using ::atoll;
      ~~^
D:\MingW\include\stdlib.h:363:39: note: 'atol' declared here
_CRTIMP __cdecl __MINGW_NOTHROW  long atol (const char *);
                                      ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Graphics\TextureManager.cpp:1:
In file included from src\Graphics/TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:14:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\iterator:419:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__functional_base:15:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\typeinfo:244:16: error: reinterpret_cast from 'std::__type_info_implementations::__non_unique_arm_rtti_bit_impl::__type_name_t' (aka 'unsigned int') to 'size_t' (aka 'unsigned long') is not allowed
        return reinterpret_cast<size_t>(__v);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Graphics\TextureManager.cpp:1:
In file included from src\Graphics/TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\memory:687:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\atomic:579:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__threading_support:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\chrono:828:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\ctime:49:
D:\MingW\include\time.h:396:1: error: unknown type name '__MINGW_IMPORT'
__MINGW_IMPORT char     *tzname[2];
^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Graphics\TextureManager.cpp:1:
In file included from src\Graphics/TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\memory:687:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\atomic:579:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__threading_support:32:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\pthread.h:28:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\bits/alltypes.h:281:13: error: typedef redefinition with different types ('int' vs 'struct __clockid__ *')
typedef int clockid_t;
            ^
D:\MingW\include\time.h:439:29: note: previous definition is here
typedef struct __clockid__ *clockid_t;
                            ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Graphics\TextureManager.cpp:1:
In file included from src\Graphics/TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\memory:687:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\atomic:579:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__threading_support:32:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\pthread.h:28:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\bits/alltypes.h:301:8: error: redefinition of 'timespec'
struct timespec { time_t tv_sec; long tv_nsec; };
       ^
D:\MingW\include\time.h:115:8: note: previous definition is here
struct timespec
       ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Graphics\TextureManager.cpp:1:
In file included from src\Graphics/TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:15:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\memory:687:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\atomic:579:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__threading_support:38:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\semaphore.h:13:
In file included from D:\MingW\include\fcntl.h:20:
In file included from D:\MingW\include\io.h:57:
D:\MingW\include\sys/types.h:211:20: error: typedef redefinition with different types ('_sigset_t' (aka 'int') vs 'struct __sigset_t')
typedef _sigset_t        sigset_t;
                         ^
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include\bits/alltypes.h:405:71: note: previous definition is here
typedef struct __sigset_t { unsigned long __bits[128/sizeof(long)]; } sigset_t;
                                                                      ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Graphics\TextureManager.cpp:1:
In file included from src\Graphics/TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:17:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:654:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:1952:18: error: cannot combine with previous 'char' declaration specifier
    mutable char __small[sizeof(void*) * 2];
                 ^
D:\MingW\include\_mingw.h:296:19: note: expanded from macro '__small'
#  define __small char
                  ^
In file included from D:\C#_Tananyag\C_Programok\sdl_test\src\Graphics\TextureManager.cpp:1:
In file included from src\Graphics/TextureManager.h:5:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\map:481:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\__tree:17:
In file included from D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\algorithm:654:
D:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot/include/c++/v1\functional:1952:25: error: expected member name or ';' after declaration specifiers
Process terminated with status 1 (0 minute(s), 2 second(s))
50 error(s), 4 warning(s) (0 minute(s), 2 second(s))
sbc100 commented 3 years ago

The problem is that D:\MingW\include was added your include path somehow.

Emscripten is a cross compiler that comes with its own headers and libraries. You can't use header and libraries from your system.

Psanyi89 commented 3 years ago

@sbc100 Many thanks for your help. I solved it. :) I have another issue but I am getting closer to compile it and run it the browser.

||error: 'D:/emsdk-main/emsdk/upstream/bin\wasm-ld.exe -o bin\Debug\SDL_TEst.wasm -Ld:\emsdk-main\emsdk\mingw\7.1.0_64bit\lib -Lsrc\Vendor\SDL2\lib obj\Debug\main.o obj\Debug\src\Animation\Animation.o obj\Debug\src\Characters\Warrior.o obj\Debug\src\Core\Engine.o obj\Debug\src\EventHandlers\Input_Handler.o obj\Debug\src\Graphics\TextureManager.o obj\Debug\src\Map\MapParser.o obj\Debug\src\Map\TileLayer.o obj\Debug\src\Timer\GameTimer.o obj\Debug\src\Vendor\TinyXml\tinystr.o obj\Debug\src\Vendor\TinyXml\tinyx|

||error: unknown file type: d000560.o|

I try to investigate it and fix it if I will be unlucky than I comeback. Maybe wrong target is specified

sbc100 commented 3 years ago

unknown file type: d000560.o most likely means that d000560.o was not compiled with emcc.

Psanyi89 commented 3 years ago

@sbc100
The file is a temporary file, it's generated during the call of em++ I cannot see any problem with the paths now

-------------- Clean: Debug in SDL_TEst (compiler: emscripten)---------------

Cleaned "SDL_TEst - Debug"

-------------- Build: Debug in SDL_TEst (compiler: emscripten)---------------

em++.bat -Wall -std=c++17 -DDebug -o main.html -O2 -march=corei7 -std=c++17 -g -Id:\emsdk-main\emsdk\mingw\7.1.0_64bit\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -Isrc\Animation -Isrc\EventHandlers\ -Isrc\Timer -Isrc\Map -Isrc\Vendor\TinyXml -Isrc\Vendor\SDL2\include -Isrc\Vendor\SDL2\lib -ID:\emsdk-main\emsdk\upstream\emscripten\system -c D:\C#_Tananyag\C_Programok\sdl_test\main.cpp -o obj\Debug\main.o em++.bat -Wall -std=c++17 -DDebug -o main.html -O2 -march=corei7 -std=c++17 -g -Id:\emsdk-main\emsdk\mingw\7.1.0_64bit\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -Isrc\Animation -Isrc\EventHandlers\ -Isrc\Timer -Isrc\Map -Isrc\Vendor\TinyXml -Isrc\Vendor\SDL2\include -Isrc\Vendor\SDL2\lib -ID:\emsdk-main\emsdk\upstream\emscripten\system -c D:\C#_Tananyag\C_Programok\sdl_test\src\Animation\Animation.cpp -o obj\Debug\src\Animation\Animation.o em++.bat -Wall -std=c++17 -DDebug -o main.html -O2 -march=corei7 -std=c++17 -g -Id:\emsdk-main\emsdk\mingw\7.1.0_64bit\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -Isrc\Animation -Isrc\EventHandlers\ -Isrc\Timer -Isrc\Map -Isrc\Vendor\TinyXml -Isrc\Vendor\SDL2\include -Isrc\Vendor\SDL2\lib -ID:\emsdk-main\emsdk\upstream\emscripten\system -c D:\C#_Tananyag\C_Programok\sdl_test\src\Characters\Warrior.cpp -o obj\Debug\src\Characters\Warrior.o em++.bat -Wall -std=c++17 -DDebug -o main.html -O2 -march=corei7 -std=c++17 -g -Id:\emsdk-main\emsdk\mingw\7.1.0_64bit\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -Isrc\Animation -Isrc\EventHandlers\ -Isrc\Timer -Isrc\Map -Isrc\Vendor\TinyXml -Isrc\Vendor\SDL2\include -Isrc\Vendor\SDL2\lib -ID:\emsdk-main\emsdk\upstream\emscripten\system -c D:\C#_Tananyag\C_Programok\sdl_test\src\Core\Engine.cpp -o obj\Debug\src\Core\Engine.o em++.bat -Wall -std=c++17 -DDebug -o main.html -O2 -march=corei7 -std=c++17 -g -Id:\emsdk-main\emsdk\mingw\7.1.0_64bit\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -Isrc\Animation -Isrc\EventHandlers\ -Isrc\Timer -Isrc\Map -Isrc\Vendor\TinyXml -Isrc\Vendor\SDL2\include -Isrc\Vendor\SDL2\lib -ID:\emsdk-main\emsdk\upstream\emscripten\system -c D:\C#_Tananyag\C_Programok\sdl_test\src\EventHandlers\Input_Handler.cpp -o obj\Debug\src\EventHandlers\Input_Handler.o em++.bat -Wall -std=c++17 -DDebug -o main.html -O2 -march=corei7 -std=c++17 -g -Id:\emsdk-main\emsdk\mingw\7.1.0_64bit\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -Isrc\Animation -Isrc\EventHandlers\ -Isrc\Timer -Isrc\Map -Isrc\Vendor\TinyXml -Isrc\Vendor\SDL2\include -Isrc\Vendor\SDL2\lib -ID:\emsdk-main\emsdk\upstream\emscripten\system -c D:\C#_Tananyag\C_Programok\sdl_test\src\Graphics\TextureManager.cpp -o obj\Debug\src\Graphics\TextureManager.o em++.bat -Wall -std=c++17 -DDebug -o main.html -O2 -march=corei7 -std=c++17 -g -Id:\emsdk-main\emsdk\mingw\7.1.0_64bit\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -Isrc\Animation -Isrc\EventHandlers\ -Isrc\Timer -Isrc\Map -Isrc\Vendor\TinyXml -Isrc\Vendor\SDL2\include -Isrc\Vendor\SDL2\lib -ID:\emsdk-main\emsdk\upstream\emscripten\system -c D:\C#_Tananyag\C_Programok\sdl_test\src\Map\MapParser.cpp -o obj\Debug\src\Map\MapParser.o em++.bat -Wall -std=c++17 -DDebug -o main.html -O2 -march=corei7 -std=c++17 -g -Id:\emsdk-main\emsdk\mingw\7.1.0_64bit\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -Isrc\Animation -Isrc\EventHandlers\ -Isrc\Timer -Isrc\Map -Isrc\Vendor\TinyXml -Isrc\Vendor\SDL2\include -Isrc\Vendor\SDL2\lib -ID:\emsdk-main\emsdk\upstream\emscripten\system -c D:\C#_Tananyag\C_Programok\sdl_test\src\Map\TileLayer.cpp -o obj\Debug\src\Map\TileLayer.o em++.bat -Wall -std=c++17 -DDebug -o main.html -O2 -march=corei7 -std=c++17 -g -Id:\emsdk-main\emsdk\mingw\7.1.0_64bit\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -Isrc\Animation -Isrc\EventHandlers\ -Isrc\Timer -Isrc\Map -Isrc\Vendor\TinyXml -Isrc\Vendor\SDL2\include -Isrc\Vendor\SDL2\lib -ID:\emsdk-main\emsdk\upstream\emscripten\system -c D:\C#_Tananyag\C_Programok\sdl_test\src\Timer\GameTimer.cpp -o obj\Debug\src\Timer\GameTimer.o em++.bat -Wall -std=c++17 -DDebug -o main.html -O2 -march=corei7 -std=c++17 -g -Id:\emsdk-main\emsdk\mingw\7.1.0_64bit\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -Isrc\Animation -Isrc\EventHandlers\ -Isrc\Timer -Isrc\Map -Isrc\Vendor\TinyXml -Isrc\Vendor\SDL2\include -Isrc\Vendor\SDL2\lib -ID:\emsdk-main\emsdk\upstream\emscripten\system -c D:\C#_Tananyag\C_Programok\sdl_test\src\Vendor\TinyXml\tinystr.cpp -o obj\Debug\src\Vendor\TinyXml\tinystr.o em++.bat -Wall -std=c++17 -DDebug -o main.html -O2 -march=corei7 -std=c++17 -g -Id:\emsdk-main\emsdk\mingw\7.1.0_64bit\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -Isrc\Animation -Isrc\EventHandlers\ -Isrc\Timer -Isrc\Map -Isrc\Vendor\TinyXml -Isrc\Vendor\SDL2\include -Isrc\Vendor\SDL2\lib -ID:\emsdk-main\emsdk\upstream\emscripten\system -c D:\C#_Tananyag\C_Programok\sdl_test\src\Vendor\TinyXml\tinyxml.cpp -o obj\Debug\src\Vendor\TinyXml\tinyxml.o em++.bat -Wall -std=c++17 -DDebug -o main.html -O2 -march=corei7 -std=c++17 -g -Id:\emsdk-main\emsdk\mingw\7.1.0_64bit\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -Isrc\Animation -Isrc\EventHandlers\ -Isrc\Timer -Isrc\Map -Isrc\Vendor\TinyXml -Isrc\Vendor\SDL2\include -Isrc\Vendor\SDL2\lib -ID:\emsdk-main\emsdk\upstream\emscripten\system -c D:\C#_Tananyag\C_Programok\sdl_test\src\Vendor\TinyXml\tinyxmlerror.cpp -o obj\Debug\src\Vendor\TinyXml\tinyxmlerror.o em++.bat -Wall -std=c++17 -DDebug -o main.html -O2 -march=corei7 -std=c++17 -g -Id:\emsdk-main\emsdk\mingw\7.1.0_64bit\include -Isrc\ -Isrc\Core -Isrc\Graphics -Isrc\Physics -Isrc\Objects -Isrc\Characters -Isrc\Animation -Isrc\EventHandlers\ -Isrc\Timer -Isrc\Map -Isrc\Vendor\TinyXml -Isrc\Vendor\SDL2\include -Isrc\Vendor\SDL2\lib -ID:\emsdk-main\emsdk\upstream\emscripten\system -c D:\C#_Tananyag\C_Programok\sdl_test\src\Vendor\TinyXml\tinyxmlparser.cpp -o obj\Debug\src\Vendor\TinyXml\tinyxmlparser.o em++.bat -Ld:\emsdk-main\emsdk\mingw\7.1.0_64bit\lib -Lsrc\Vendor\SDL2\lib -o bin\Debug\SDL_TEst.exe obj\Debug\main.o obj\Debug\src\Animation\Animation.o obj\Debug\src\Characters\Warrior.o obj\Debug\src\Core\Engine.o obj\Debug\src\EventHandlers\Input_Handler.o obj\Debug\src\Graphics\TextureManager.o obj\Debug\src\Map\MapParser.o obj\Debug\src\Map\TileLayer.o obj\Debug\src\Timer\GameTimer.o obj\Debug\src\Vendor\TinyXml\tinystr.o obj\Debug\src\Vendor\TinyXml\tinyxml.o obj\Debug\src\Vendor\TinyXml\tinyxmlerror.o obj\Debug\src\Vendor\TinyXml\tinyxmlparser.o -lmingw32 -lSDL2main -lSDL2.dll -luser32 -lgdi32 -lwinmm -ldxguid wasm-ld: error: unknown file type: d000560.o em++: error: 'D:/emsdk-main/emsdk/upstream/bin\wasm-ld.exe -o bin\Debug\SDL_TEst.wasm -Ld:\emsdk-main\emsdk\mingw\7.1.0_64bit\lib -Lsrc\Vendor\SDL2\lib obj\Debug\main.o obj\Debug\src\Animation\Animation.o obj\Debug\src\Characters\Warrior.o obj\Debug\src\Core\Engine.o obj\Debug\src\EventHandlers\Input_Handler.o obj\Debug\src\Graphics\TextureManager.o obj\Debug\src\Map\MapParser.o obj\Debug\src\Map\TileLayer.o obj\Debug\src\Timer\GameTimer.o obj\Debug\src\Vendor\TinyXml\tinystr.o obj\Debug\src\Vendor\TinyXml\tinyxml.o obj\Debug\src\Vendor\TinyXml\tinyxmlerror.o obj\Debug\src\Vendor\TinyXml\tinyxmlparser.o d:\emsdk-main\emsdk\mingw\7.1.0_64bit\lib\libmingw32.a d:\emsdk-main\emsdk\mingw\7.1.0_64bit\lib\libSDL2main.a d:\emsdk-main\emsdk\mingw\7.1.0_64bit\lib\libSDL2.dll.a d:\emsdk-main\emsdk\mingw\7.1.0_64bit\lib\libuser32.a d:\emsdk-main\emsdk\mingw\7.1.0_64bit\lib\libgdi32.a d:\emsdk-main\emsdk\mingw\7.1.0_64bit\lib\libwinmm.a d:\emsdk-main\emsdk\mingw\7.1.0_64bit\lib\libdxguid.a -LD:\emsdk-main\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten -lGL -lal -lhtml5 -lc -lcompiler_rt -lc++-noexcept -lc++abi-noexcept -ldlmalloc -lc_rt_wasm -lsockets -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --import-undefined --strip-debug --export-if-defined=main --export-if-defined=emscripten_stack_get_end --export-if-defined=emscripten_stack_get_free --export-if-defined=emscripten_stack_init --export-if-defined=stackSave --export-if-defined=stackRestore --export-if-defined=stackAlloc --export-if-defined=wasm_call_ctors --export-if-defined=fflush --export-if-defined=errno_location --export-if-defined=malloc --export-if-defined=free --export-if-defined=memcpy --export-if-defined=start_em_asm --export-if-defined=stop_em_asm --export-table -z stack-size=5242880 --initial-memory=16777216 --no-entry --max-memory=16777216 --global-base=1024' failed (returned 1) Process terminated with status 1 (0 minute(s), 4 second(s)) 2 error(s), 0 warning(s) (0 minute(s), 4 second(s))

I found a similar issue. {https://github.com/emscripten-core/emscripten/issues/13071} Tomorrow I continue solving this. Many thanks.