Advertisement
ddto

Untitled

Aug 11th, 2024
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.76 KB | None | 0 0
  1. when including WinDef.h------------------------------------
  2.  
  3. >------ Build started: Project: CMakeLists, Configuration: Debug ------
  4. [1/4] Building CXX object CMakeFiles\space.dir\src\engine\Render.cpp.obj
  5. FAILED: CMakeFiles/space.dir/src/engine/Render.cpp.obj
  6. 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
  7. D:\Projects\space\space\src\core\Console.h(42): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  8. D:\Projects\space\space\src\core\Console.h(42): error C2143: syntax error: missing ',' before '&'
  9. D:\Projects\space\space\src\core\Console.h(43): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  10. D:\Projects\space\space\src\core\Console.h(43): error C2146: syntax error: missing ';' before identifier 'Utf16ToUtf8'
  11. D:\Projects\space\space\src\core\Console.h(43): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  12. D:\Projects\space\space\src\core\Console.h(45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  13. D:\Projects\space\space\src\core\Console.h(45): error C2143: syntax error: missing ',' before '&'
  14. D:\Projects\space\space\src\core\Console.h(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  15. D:\Projects\space\space\src\core\Console.h(46): error C2143: syntax error: missing ',' before '&'
  16. D:\Projects\space\space\src\core\Console.h(47): error C2182: 'Input': this use of 'void' is not valid
  17. D:\Projects\space\space\src\core\Console.h(47): error C2065: 'str': undeclared identifier
  18. D:\Projects\space\space\src\core\Console.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  19. D:\Projects\space\space\src\core\Console.h(70): error C2086: 'int spc::con::String': redefinition
  20. D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::String'
  21. D:\Projects\space\space\src\core\Console.h(70): error C2146: syntax error: missing ';' before identifier 'SetStringColor'
  22. D:\Projects\space\space\src\core\Console.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  23. D:\Projects\space\space\src\core\Console.h(70): error C2143: syntax error: missing ',' before '&'
  24. D:\Projects\space\space\src\core\Console.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  25. D:\Projects\space\space\src\core\Console.h(144): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  26. D:\Projects\space\space\src\core\Console.h(144): error C2143: syntax error: missing ',' before '&'
  27. D:\Projects\space\space\src\core\Console.h(146): error C2065: 'str': undeclared identifier
  28. D:\Projects\space\space\src\core\Console.h(148): error C2065: 'CP_THREAD_ACP': undeclared identifier
  29. D:\Projects\space\space\src\core\Console.h(148): error C2065: 'str': undeclared identifier
  30. D:\Projects\space\space\src\core\Console.h(148): error C2065: 'str': undeclared identifier
  31. D:\Projects\space\space\src\core\Console.h(148): error C3861: 'MultiByteToWideChar': identifier not found
  32. D:\Projects\space\space\src\core\Console.h(154): error C2065: 'CP_THREAD_ACP': undeclared identifier
  33. D:\Projects\space\space\src\core\Console.h(154): error C2065: 'str': undeclared identifier
  34. D:\Projects\space\space\src\core\Console.h(154): error C2065: 'str': undeclared identifier
  35. D:\Projects\space\space\src\core\Console.h(154): error C3861: 'MultiByteToWideChar': identifier not found
  36. 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 &)'
  37. D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::Utf16ToUtf8'
  38. D:\Projects\space\space\src\core\Console.h(160): error C2371: 'spc::con::Utf16ToUtf8': redefinition; different basic types
  39. D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::Utf16ToUtf8'
  40. D:\Projects\space\space\src\core\Console.h(164): error C2065: 'CP_THREAD_ACP': undeclared identifier
  41. D:\Projects\space\space\src\core\Console.h(164): error C3861: 'WideCharToMultiByte': identifier not found
  42. D:\Projects\space\space\src\core\Console.h(170): error C2065: 'CP_THREAD_ACP': undeclared identifier
  43. D:\Projects\space\space\src\core\Console.h(170): error C3861: 'WideCharToMultiByte': identifier not found
  44. D:\Projects\space\space\src\core\Console.h(162): warning C4390: ';': empty controlled statement found; is this the intent?
  45. D:\Projects\space\space\src\core\Console.h(165): warning C4390: ';': empty controlled statement found; is this the intent?
  46. D:\Projects\space\space\src\core\Console.h(171): warning C4390: ';': empty controlled statement found; is this the intent?
  47. D:\Projects\space\space\src\core\Console.h(176): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  48. D:\Projects\space\space\src\core\Console.h(176): error C2143: syntax error: missing ',' before '&'
  49. D:\Projects\space\space\src\core\Console.h(178): error C2039: 'wcout': is not a member of 'std'
  50. D:\VisualStudio\IDE\VC\Tools\MSVC\14.40.33807\include\codecvt(20): note: see declaration of 'std'
  51. D:\Projects\space\space\src\core\Console.h(178): error C2065: 'wcout': undeclared identifier
  52. D:\Projects\space\space\src\core\Console.h(178): error C2065: 'str': undeclared identifier
  53. D:\Projects\space\space\src\core\Console.h(181): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  54. D:\Projects\space\space\src\core\Console.h(181): error C2143: syntax error: missing ',' before '&'
  55. D:\Projects\space\space\src\core\Console.h(183): error C2039: 'wcout': is not a member of 'std'
  56. D:\VisualStudio\IDE\VC\Tools\MSVC\14.40.33807\include\codecvt(20): note: see declaration of 'std'
  57. D:\Projects\space\space\src\core\Console.h(183): error C2065: 'wcout': undeclared identifier
  58. D:\Projects\space\space\src\core\Console.h(183): error C2065: 'str': undeclared identifier
  59. D:\Projects\space\space\src\core\Console.h(186): error C2182: 'Input': this use of 'void' is not valid
  60. D:\Projects\space\space\src\core\Console.h(186): error C2374: 'spc::con::Input': redefinition; multiple initialization
  61. D:\Projects\space\space\src\core\Console.h(47): note: see declaration of 'spc::con::Input'
  62. D:\Projects\space\space\src\core\Console.h(186): error C2065: 'str': undeclared identifier
  63. D:\Projects\space\space\src\core\Console.h(187): error C2143: syntax error: missing ';' before '{'
  64. D:\Projects\space\space\src\core\Console.h(187): error C2447: '{': missing function header (old-style formal list?)
  65. D:\Projects\space\space\src\core\Console.h(193): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  66. D:\Projects\space\space\src\core\Console.h(193): error C2086: 'int spc::con::String': redefinition
  67. D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::String'
  68. D:\Projects\space\space\src\core\Console.h(193): error C2146: syntax error: missing ';' before identifier 'SetStringColor'
  69. D:\Projects\space\space\src\core\Console.h(193): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  70. D:\Projects\space\space\src\core\Console.h(193): error C2143: syntax error: missing ',' before '&'
  71. D:\Projects\space\space\src\core\Console.h(193): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  72. D:\Projects\space\space\src\core\Console.h(195): error C2065: 'bgCol': undeclared identifier
  73. D:\Projects\space\space\src\core\Console.h(196): error C2065: 'txtCol': undeclared identifier
  74. D:\Projects\space\space\src\core\Console.h(196): error C2065: 'str': undeclared identifier
  75. D:\Projects\space\space\src\core\Console.h(199): error C2065: 'txtCol': undeclared identifier
  76. D:\Projects\space\space\src\core\Console.h(199): error C2065: 'bgCol': undeclared identifier
  77. D:\Projects\space\space\src\core\Console.h(199): error C2065: 'str': undeclared identifier
  78. D:\Projects\space\space\src\core\Console.h(196): warning C4508: 'spc::con::SetStringColor': function should return a value; 'void' return type assumed
  79. D:\Projects\space\space\src\core\Console.h(198): error C2617: 'spc::con::SetStringColor': inconsistent return statement
  80. D:\Projects\space\space\src\core\Console.h(193): note: see declaration of 'spc::con::SetStringColor'
  81. D:\Projects\space\space\src\core\Console.h(200): error C2617: 'spc::con::SetStringColor': inconsistent return statement
  82. D:\Projects\space\space\src\core\Console.h(193): note: see declaration of 'spc::con::SetStringColor'
  83. [2/4] Building CXX object CMakeFiles\space.dir\src\engine\Engine.cpp.obj
  84. FAILED: CMakeFiles/space.dir/src/engine/Engine.cpp.obj
  85. 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
  86. D:\Projects\space\space\src\core\Console.h(148): error C2065: 'CP_THREAD_ACP': undeclared identifier
  87. D:\Projects\space\space\src\core\Console.h(148): error C3861: 'MultiByteToWideChar': identifier not found
  88. D:\Projects\space\space\src\core\Console.h(154): error C2065: 'CP_THREAD_ACP': undeclared identifier
  89. D:\Projects\space\space\src\core\Console.h(154): error C3861: 'MultiByteToWideChar': identifier not found
  90. D:\Projects\space\space\src\core\Console.h(164): error C2065: 'CP_THREAD_ACP': undeclared identifier
  91. D:\Projects\space\space\src\core\Console.h(164): error C3861: 'WideCharToMultiByte': identifier not found
  92. D:\Projects\space\space\src\core\Console.h(170): error C2065: 'CP_THREAD_ACP': undeclared identifier
  93. D:\Projects\space\space\src\core\Console.h(170): error C3861: 'WideCharToMultiByte': identifier not found
  94. [3/4] Building CXX object CMakeFiles\space.dir\src\Main.cpp.obj
  95. D:\Projects\space\space\src\core\WinDef.h(5): warning C4005: '_WIN32_WINNT': macro redefinition
  96. D:\Windows Kits\10\include\10.0.22621.0\shared\sdkddkver.h(224): note: see previous definition of '_WIN32_WINNT'
  97. D:\Projects\space\space\src\core\WinDef.h(45): warning C4005: 'STRICT': macro redefinition
  98. D:\Windows Kits\10\include\10.0.22621.0\shared\minwindef.h(23): note: see previous definition of 'STRICT'
  99. D:\Projects\space\space\src\core\Console.h(154): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
  100. D:\Projects\space\space\src\core\Console.h(170): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
  101. ninja: build stopped: subcommand failed.
  102.  
  103.  
  104. when including Windows.h directly------------------------------------
  105.  
  106. >------ Build started: Project: CMakeLists, Configuration: Debug ------
  107. [1/2] Building CXX object CMakeFiles\space.dir\src\engine\Render.cpp.obj
  108. FAILED: CMakeFiles/space.dir/src/engine/Render.cpp.obj
  109. 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
  110. D:\Projects\space\space\src\core\Console.h(42): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  111. D:\Projects\space\space\src\core\Console.h(42): error C2143: syntax error: missing ',' before '&'
  112. D:\Projects\space\space\src\core\Console.h(43): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  113. D:\Projects\space\space\src\core\Console.h(43): error C2146: syntax error: missing ';' before identifier 'Utf16ToUtf8'
  114. D:\Projects\space\space\src\core\Console.h(43): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  115. D:\Projects\space\space\src\core\Console.h(45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  116. D:\Projects\space\space\src\core\Console.h(45): error C2143: syntax error: missing ',' before '&'
  117. D:\Projects\space\space\src\core\Console.h(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  118. D:\Projects\space\space\src\core\Console.h(46): error C2143: syntax error: missing ',' before '&'
  119. D:\Projects\space\space\src\core\Console.h(47): error C2182: 'Input': this use of 'void' is not valid
  120. D:\Projects\space\space\src\core\Console.h(47): error C2065: 'str': undeclared identifier
  121. D:\Projects\space\space\src\core\Console.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  122. D:\Projects\space\space\src\core\Console.h(70): error C2086: 'int spc::con::String': redefinition
  123. D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::String'
  124. D:\Projects\space\space\src\core\Console.h(70): error C2146: syntax error: missing ';' before identifier 'SetStringColor'
  125. D:\Projects\space\space\src\core\Console.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  126. D:\Projects\space\space\src\core\Console.h(70): error C2143: syntax error: missing ',' before '&'
  127. D:\Projects\space\space\src\core\Console.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  128. D:\Projects\space\space\src\core\Console.h(144): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  129. D:\Projects\space\space\src\core\Console.h(144): error C2143: syntax error: missing ',' before '&'
  130. D:\Projects\space\space\src\core\Console.h(146): error C2065: 'str': undeclared identifier
  131. D:\Projects\space\space\src\core\Console.h(148): error C2065: 'str': undeclared identifier
  132. D:\Projects\space\space\src\core\Console.h(148): error C2065: 'str': undeclared identifier
  133. D:\Projects\space\space\src\core\Console.h(148): error C2660: 'MultiByteToWideChar': function does not take 4 arguments
  134. D:\Windows Kits\10\include\10.0.22621.0\um\stringapiset.h(120): note: see declaration of 'MultiByteToWideChar'
  135. D:\Projects\space\space\src\core\Console.h(148): note: while trying to match the argument list '(int, int, int, int)'
  136. D:\Projects\space\space\src\core\Console.h(154): error C2065: 'str': undeclared identifier
  137. D:\Projects\space\space\src\core\Console.h(154): error C2065: 'str': undeclared identifier
  138. D:\Projects\space\space\src\core\Console.h(154): error C2660: 'MultiByteToWideChar': function does not take 4 arguments
  139. D:\Windows Kits\10\include\10.0.22621.0\um\stringapiset.h(120): note: see declaration of 'MultiByteToWideChar'
  140. D:\Projects\space\space\src\core\Console.h(154): note: while trying to match the argument list '(int, int, wchar_t *, unsigned __int64)'
  141. 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 &)'
  142. D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::Utf16ToUtf8'
  143. D:\Projects\space\space\src\core\Console.h(160): error C2371: 'spc::con::Utf16ToUtf8': redefinition; different basic types
  144. D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::Utf16ToUtf8'
  145. D:\Projects\space\space\src\core\Console.h(170): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
  146. D:\Projects\space\space\src\core\Console.h(162): warning C4390: ';': empty controlled statement found; is this the intent?
  147. D:\Projects\space\space\src\core\Console.h(165): warning C4390: ';': empty controlled statement found; is this the intent?
  148. D:\Projects\space\space\src\core\Console.h(171): warning C4390: ';': empty controlled statement found; is this the intent?
  149. D:\Projects\space\space\src\core\Console.h(176): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  150. D:\Projects\space\space\src\core\Console.h(176): error C2143: syntax error: missing ',' before '&'
  151. D:\Projects\space\space\src\core\Console.h(178): error C2039: 'wcout': is not a member of 'std'
  152. D:\VisualStudio\IDE\VC\Tools\MSVC\14.40.33807\include\codecvt(20): note: see declaration of 'std'
  153. D:\Projects\space\space\src\core\Console.h(178): error C2065: 'wcout': undeclared identifier
  154. D:\Projects\space\space\src\core\Console.h(178): error C2065: 'str': undeclared identifier
  155. D:\Projects\space\space\src\core\Console.h(181): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  156. D:\Projects\space\space\src\core\Console.h(181): error C2143: syntax error: missing ',' before '&'
  157. D:\Projects\space\space\src\core\Console.h(183): error C2039: 'wcout': is not a member of 'std'
  158. D:\VisualStudio\IDE\VC\Tools\MSVC\14.40.33807\include\codecvt(20): note: see declaration of 'std'
  159. D:\Projects\space\space\src\core\Console.h(183): error C2065: 'wcout': undeclared identifier
  160. D:\Projects\space\space\src\core\Console.h(183): error C2065: 'str': undeclared identifier
  161. D:\Projects\space\space\src\core\Console.h(186): error C2182: 'Input': this use of 'void' is not valid
  162. D:\Projects\space\space\src\core\Console.h(186): error C2374: 'spc::con::Input': redefinition; multiple initialization
  163. D:\Projects\space\space\src\core\Console.h(47): note: see declaration of 'spc::con::Input'
  164. D:\Projects\space\space\src\core\Console.h(186): error C2065: 'str': undeclared identifier
  165. D:\Projects\space\space\src\core\Console.h(187): error C2143: syntax error: missing ';' before '{'
  166. D:\Projects\space\space\src\core\Console.h(187): error C2447: '{': missing function header (old-style formal list?)
  167. D:\Projects\space\space\src\core\Console.h(193): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  168. D:\Projects\space\space\src\core\Console.h(193): error C2086: 'int spc::con::String': redefinition
  169. D:\Projects\space\space\src\core\Console.h(43): note: see declaration of 'spc::con::String'
  170. D:\Projects\space\space\src\core\Console.h(193): error C2146: syntax error: missing ';' before identifier 'SetStringColor'
  171. D:\Projects\space\space\src\core\Console.h(193): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  172. D:\Projects\space\space\src\core\Console.h(193): error C2143: syntax error: missing ',' before '&'
  173. D:\Projects\space\space\src\core\Console.h(193): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  174. D:\Projects\space\space\src\core\Console.h(195): error C2065: 'bgCol': undeclared identifier
  175. D:\Projects\space\space\src\core\Console.h(196): error C2065: 'txtCol': undeclared identifier
  176. D:\Projects\space\space\src\core\Console.h(196): error C2065: 'str': undeclared identifier
  177. D:\Projects\space\space\src\core\Console.h(199): error C2065: 'txtCol': undeclared identifier
  178. D:\Projects\space\space\src\core\Console.h(199): error C2065: 'bgCol': undeclared identifier
  179. D:\Projects\space\space\src\core\Console.h(199): error C2065: 'str': undeclared identifier
  180. D:\Projects\space\space\src\core\Console.h(196): warning C4508: 'spc::con::SetStringColor': function should return a value; 'void' return type assumed
  181. D:\Projects\space\space\src\core\Console.h(198): error C2617: 'spc::con::SetStringColor': inconsistent return statement
  182. D:\Projects\space\space\src\core\Console.h(193): note: see declaration of 'spc::con::SetStringColor'
  183. D:\Projects\space\space\src\core\Console.h(200): error C2617: 'spc::con::SetStringColor': inconsistent return statement
  184. D:\Projects\space\space\src\core\Console.h(193): note: see declaration of 'spc::con::SetStringColor'
  185. ninja: build stopped: subcommand failed.
  186.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement