Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- when including WinDef.h------------------------------------
- >------ Build started: Project: CMakeLists, Configuration: Debug ------
- [1/4] Building CXX object CMakeFiles\space.dir\src\engine\Render.cpp.obj
- FAILED: CMakeFiles/space.dir/src/engine/Render.cpp.obj
- D:\VisualStudio\IDE\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe /nologo /TP /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Ob0 /Od /RTC1 -std:c++20 -ZI /showIncludes /FoCMakeFiles\space.dir\src\engine\Render.cpp.obj /FdCMakeFiles\space.dir\ /FS -c D:\Projects\space\space\src\engine\Render.cpp
- D:\Projects\space\space\src\core\Console.h(42): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(42): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(43): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(43): error C2146: syntax error: missing ';' before identifier 'Utf16ToUtf8'
- D:\Projects\space\space\src\core\Console.h(43): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(45): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(46): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(47): error C2182: 'Input': this use of 'void' is not valid
- D:\Projects\space\space\src\core\Console.h(47): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(70): error C2086: 'int spc::con::String': redefinition
- D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::String'
- D:\Projects\space\space\src\core\Console.h(70): error C2146: syntax error: missing ';' before identifier 'SetStringColor'
- D:\Projects\space\space\src\core\Console.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(70): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(144): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(144): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(146): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(148): error C2065: 'CP_THREAD_ACP': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(148): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(148): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(148): error C3861: 'MultiByteToWideChar': identifier not found
- D:\Projects\space\space\src\core\Console.h(154): error C2065: 'CP_THREAD_ACP': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(154): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(154): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(154): error C3861: 'MultiByteToWideChar': identifier not found
- D:\Projects\space\space\src\core\Console.h(160): error C2556: 'std::string spc::con::Utf16ToUtf8(const std::wstring &)': overloaded function differs only by return type from 'int spc::con::Utf16ToUtf8(const std::wstring &)'
- D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::Utf16ToUtf8'
- D:\Projects\space\space\src\core\Console.h(160): error C2371: 'spc::con::Utf16ToUtf8': redefinition; different basic types
- D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::Utf16ToUtf8'
- D:\Projects\space\space\src\core\Console.h(164): error C2065: 'CP_THREAD_ACP': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(164): error C3861: 'WideCharToMultiByte': identifier not found
- D:\Projects\space\space\src\core\Console.h(170): error C2065: 'CP_THREAD_ACP': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(170): error C3861: 'WideCharToMultiByte': identifier not found
- D:\Projects\space\space\src\core\Console.h(162): warning C4390: ';': empty controlled statement found; is this the intent?
- D:\Projects\space\space\src\core\Console.h(165): warning C4390: ';': empty controlled statement found; is this the intent?
- D:\Projects\space\space\src\core\Console.h(171): warning C4390: ';': empty controlled statement found; is this the intent?
- D:\Projects\space\space\src\core\Console.h(176): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(176): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(178): error C2039: 'wcout': is not a member of 'std'
- D:\VisualStudio\IDE\VC\Tools\MSVC\14.40.33807\include\codecvt(20): note: see declaration of 'std'
- D:\Projects\space\space\src\core\Console.h(178): error C2065: 'wcout': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(178): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(181): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(181): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(183): error C2039: 'wcout': is not a member of 'std'
- D:\VisualStudio\IDE\VC\Tools\MSVC\14.40.33807\include\codecvt(20): note: see declaration of 'std'
- D:\Projects\space\space\src\core\Console.h(183): error C2065: 'wcout': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(183): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(186): error C2182: 'Input': this use of 'void' is not valid
- D:\Projects\space\space\src\core\Console.h(186): error C2374: 'spc::con::Input': redefinition; multiple initialization
- D:\Projects\space\space\src\core\Console.h(47): note: see declaration of 'spc::con::Input'
- D:\Projects\space\space\src\core\Console.h(186): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(187): error C2143: syntax error: missing ';' before '{'
- D:\Projects\space\space\src\core\Console.h(187): error C2447: '{': missing function header (old-style formal list?)
- D:\Projects\space\space\src\core\Console.h(193): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(193): error C2086: 'int spc::con::String': redefinition
- D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::String'
- D:\Projects\space\space\src\core\Console.h(193): error C2146: syntax error: missing ';' before identifier 'SetStringColor'
- D:\Projects\space\space\src\core\Console.h(193): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(193): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(193): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(195): error C2065: 'bgCol': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(196): error C2065: 'txtCol': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(196): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(199): error C2065: 'txtCol': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(199): error C2065: 'bgCol': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(199): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(196): warning C4508: 'spc::con::SetStringColor': function should return a value; 'void' return type assumed
- D:\Projects\space\space\src\core\Console.h(198): error C2617: 'spc::con::SetStringColor': inconsistent return statement
- D:\Projects\space\space\src\core\Console.h(193): note: see declaration of 'spc::con::SetStringColor'
- D:\Projects\space\space\src\core\Console.h(200): error C2617: 'spc::con::SetStringColor': inconsistent return statement
- D:\Projects\space\space\src\core\Console.h(193): note: see declaration of 'spc::con::SetStringColor'
- [2/4] Building CXX object CMakeFiles\space.dir\src\engine\Engine.cpp.obj
- FAILED: CMakeFiles/space.dir/src/engine/Engine.cpp.obj
- D:\VisualStudio\IDE\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe /nologo /TP /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Ob0 /Od /RTC1 -std:c++20 -ZI /showIncludes /FoCMakeFiles\space.dir\src\engine\Engine.cpp.obj /FdCMakeFiles\space.dir\ /FS -c D:\Projects\space\space\src\engine\Engine.cpp
- D:\Projects\space\space\src\core\Console.h(148): error C2065: 'CP_THREAD_ACP': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(148): error C3861: 'MultiByteToWideChar': identifier not found
- D:\Projects\space\space\src\core\Console.h(154): error C2065: 'CP_THREAD_ACP': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(154): error C3861: 'MultiByteToWideChar': identifier not found
- D:\Projects\space\space\src\core\Console.h(164): error C2065: 'CP_THREAD_ACP': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(164): error C3861: 'WideCharToMultiByte': identifier not found
- D:\Projects\space\space\src\core\Console.h(170): error C2065: 'CP_THREAD_ACP': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(170): error C3861: 'WideCharToMultiByte': identifier not found
- [3/4] Building CXX object CMakeFiles\space.dir\src\Main.cpp.obj
- D:\Projects\space\space\src\core\WinDef.h(5): warning C4005: '_WIN32_WINNT': macro redefinition
- D:\Windows Kits\10\include\10.0.22621.0\shared\sdkddkver.h(224): note: see previous definition of '_WIN32_WINNT'
- D:\Projects\space\space\src\core\WinDef.h(45): warning C4005: 'STRICT': macro redefinition
- D:\Windows Kits\10\include\10.0.22621.0\shared\minwindef.h(23): note: see previous definition of 'STRICT'
- D:\Projects\space\space\src\core\Console.h(154): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
- D:\Projects\space\space\src\core\Console.h(170): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
- ninja: build stopped: subcommand failed.
- when including Windows.h directly------------------------------------
- >------ Build started: Project: CMakeLists, Configuration: Debug ------
- [1/2] Building CXX object CMakeFiles\space.dir\src\engine\Render.cpp.obj
- FAILED: CMakeFiles/space.dir/src/engine/Render.cpp.obj
- D:\VisualStudio\IDE\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe /nologo /TP /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Ob0 /Od /RTC1 -std:c++20 -ZI /showIncludes /FoCMakeFiles\space.dir\src\engine\Render.cpp.obj /FdCMakeFiles\space.dir\ /FS -c D:\Projects\space\space\src\engine\Render.cpp
- D:\Projects\space\space\src\core\Console.h(42): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(42): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(43): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(43): error C2146: syntax error: missing ';' before identifier 'Utf16ToUtf8'
- D:\Projects\space\space\src\core\Console.h(43): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(45): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(46): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(47): error C2182: 'Input': this use of 'void' is not valid
- D:\Projects\space\space\src\core\Console.h(47): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(70): error C2086: 'int spc::con::String': redefinition
- D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::String'
- D:\Projects\space\space\src\core\Console.h(70): error C2146: syntax error: missing ';' before identifier 'SetStringColor'
- D:\Projects\space\space\src\core\Console.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(70): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(144): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(144): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(146): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(148): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(148): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(148): error C2660: 'MultiByteToWideChar': function does not take 4 arguments
- D:\Windows Kits\10\include\10.0.22621.0\um\stringapiset.h(120): note: see declaration of 'MultiByteToWideChar'
- D:\Projects\space\space\src\core\Console.h(148): note: while trying to match the argument list '(int, int, int, int)'
- D:\Projects\space\space\src\core\Console.h(154): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(154): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(154): error C2660: 'MultiByteToWideChar': function does not take 4 arguments
- D:\Windows Kits\10\include\10.0.22621.0\um\stringapiset.h(120): note: see declaration of 'MultiByteToWideChar'
- D:\Projects\space\space\src\core\Console.h(154): note: while trying to match the argument list '(int, int, wchar_t *, unsigned __int64)'
- D:\Projects\space\space\src\core\Console.h(160): error C2556: 'std::string spc::con::Utf16ToUtf8(const std::wstring &)': overloaded function differs only by return type from 'int spc::con::Utf16ToUtf8(const std::wstring &)'
- D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::Utf16ToUtf8'
- D:\Projects\space\space\src\core\Console.h(160): error C2371: 'spc::con::Utf16ToUtf8': redefinition; different basic types
- D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::Utf16ToUtf8'
- D:\Projects\space\space\src\core\Console.h(170): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
- D:\Projects\space\space\src\core\Console.h(162): warning C4390: ';': empty controlled statement found; is this the intent?
- D:\Projects\space\space\src\core\Console.h(165): warning C4390: ';': empty controlled statement found; is this the intent?
- D:\Projects\space\space\src\core\Console.h(171): warning C4390: ';': empty controlled statement found; is this the intent?
- D:\Projects\space\space\src\core\Console.h(176): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(176): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(178): error C2039: 'wcout': is not a member of 'std'
- D:\VisualStudio\IDE\VC\Tools\MSVC\14.40.33807\include\codecvt(20): note: see declaration of 'std'
- D:\Projects\space\space\src\core\Console.h(178): error C2065: 'wcout': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(178): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(181): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(181): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(183): error C2039: 'wcout': is not a member of 'std'
- D:\VisualStudio\IDE\VC\Tools\MSVC\14.40.33807\include\codecvt(20): note: see declaration of 'std'
- D:\Projects\space\space\src\core\Console.h(183): error C2065: 'wcout': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(183): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(186): error C2182: 'Input': this use of 'void' is not valid
- D:\Projects\space\space\src\core\Console.h(186): error C2374: 'spc::con::Input': redefinition; multiple initialization
- D:\Projects\space\space\src\core\Console.h(47): note: see declaration of 'spc::con::Input'
- D:\Projects\space\space\src\core\Console.h(186): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(187): error C2143: syntax error: missing ';' before '{'
- D:\Projects\space\space\src\core\Console.h(187): error C2447: '{': missing function header (old-style formal list?)
- D:\Projects\space\space\src\core\Console.h(193): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(193): error C2086: 'int spc::con::String': redefinition
- D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::String'
- D:\Projects\space\space\src\core\Console.h(193): error C2146: syntax error: missing ';' before identifier 'SetStringColor'
- D:\Projects\space\space\src\core\Console.h(193): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(193): error C2143: syntax error: missing ',' before '&'
- D:\Projects\space\space\src\core\Console.h(193): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- D:\Projects\space\space\src\core\Console.h(195): error C2065: 'bgCol': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(196): error C2065: 'txtCol': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(196): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(199): error C2065: 'txtCol': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(199): error C2065: 'bgCol': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(199): error C2065: 'str': undeclared identifier
- D:\Projects\space\space\src\core\Console.h(196): warning C4508: 'spc::con::SetStringColor': function should return a value; 'void' return type assumed
- D:\Projects\space\space\src\core\Console.h(198): error C2617: 'spc::con::SetStringColor': inconsistent return statement
- D:\Projects\space\space\src\core\Console.h(193): note: see declaration of 'spc::con::SetStringColor'
- D:\Projects\space\space\src\core\Console.h(200): error C2617: 'spc::con::SetStringColor': inconsistent return statement
- D:\Projects\space\space\src\core\Console.h(193): note: see declaration of 'spc::con::SetStringColor'
- ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement