Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many mistakes #80

Open
Achiyun opened this issue Mar 12, 2024 · 0 comments
Open

Many mistakes #80

Achiyun opened this issue Mar 12, 2024 · 0 comments

Comments

@Achiyun
Copy link

Achiyun commented Mar 12, 2024

hi, Today is 2024,I am trying to build ,use premake5 vs2022 , that There are over 100 errors,Missing file ,Undefined variables, class , What should I do
严重性 代码 说明 项目 文件 行 禁止显示状态 详细信息
错误 C4430 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Block_Database.cpp 48
错误(活动) E0135 类 "Display" 没有成员 "pushGLStates" hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Renderer\RSFML.cpp 23
错误(活动) E0135 类 "Display" 没有成员 "resetGLStates" hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Renderer\RSFML.cpp 24
错误(活动) E0245 非静态成员引用必须与特定对象相对 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Renderer\RSFML.cpp 29
错误(活动) E0135 类 "Display" 没有成员 "popGLStates" hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Renderer\RSFML.cpp 32
错误 C2079 “Block::Database::m_textures”使用未定义的 class“Texture::Atlas” hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\BlockDatabase.h 30
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C2079 “Block::Database::m_textures”使用未定义的 class“Texture::Atlas” hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\BlockDatabase.h 30
错误 C2653 “BlockDatabase”: 不是类或命名空间名称 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Renderer\MasterRenderer.cpp 15
错误 C3861 “get”: 找不到标识符 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Renderer\MasterRenderer.cpp 15
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C2039 "pushGLStates": 不是 "Display" 的成员 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Renderer\RSFML.cpp 23
错误 C2039 "resetGLStates": 不是 "Display" 的成员 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Renderer\RSFML.cpp 24
错误 C2352 “Display::sfDraw”: 调用非静态成员函数需要一个对象 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Renderer\RSFML.cpp 29
错误 C2039 "popGLStates": 不是 "Display" 的成员 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Renderer\RSFML.cpp 32
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C2653 “Texture”: 不是类或命名空间名称 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\BlockDatabase.h 25
错误 C4430 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\BlockDatabase.h 25
错误 C2143 语法错误: 缺少“;”(在“&”的前面) hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\BlockDatabase.h 25
错误 C2238 意外的标记位于“;”之前 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\BlockDatabase.h 25
错误 C2653 “Texture”: 不是类或命名空间名称 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\BlockDatabase.h 30
错误 C3646 “m_textures”: 未知重写说明符 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\BlockDatabase.h 30
错误 C4430 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\BlockDatabase.h 30
错误 C2653 “BlockDatabase”: 不是类或命名空间名称 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Renderer\SimpleRenderer.cpp 26
错误 C3861 “get”: 找不到标识符 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Renderer\SimpleRenderer.cpp 26
错误 C2530 “textureAtlas”: 必须初始化引用 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Renderer\SimpleRenderer.cpp 26
错误 C3536 “textureAtlas”: 初始化之前无法使用 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Renderer\SimpleRenderer.cpp 27
错误 C2143 语法错误: 缺少“;”(在“&”的前面) hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Application.h 41
错误 C4430 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Application.h 41
错误 C2238 意外的标记位于“;”之前 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Application.h 41
错误 C2065 “StateBase”: 未声明的标识符 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Application.h 43
错误 C2923 "std::unique_ptr": "StateBase" 不是参数 "_Ty" 的有效 模板 类型参数 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Application.h 43
错误 C2976 “std::unique_ptr'”: 模板 参数太少 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Application.h 43
错误 C3203 "unique_ptr": 未指定的 类 模板 不能用作 模板 参数 "_Ty" 的 模板 参数,应为真实类型 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Application.h 43
错误 C1189 #error: gl.h included before glew.h hopsoncraft C:\environment\CPPDependencies\GLEW\include\GL\glew.h 85
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1083 无法打开包括文件: “Toggle_Option_Button.h”: No such file or directory hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\GUI\GUI.h 11
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1083 无法打开包括文件: “Toggle_Option_Button.h”: No such file or directory hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\GUI\GUI.h 11
错误 C2143 语法错误: 缺少“;”(在“&”的前面) hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Application.h 41
错误 C4430 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Application.h 41
错误 C2238 意外的标记位于“;”之前 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Application.h 41
错误 C2065 “StateBase”: 未声明的标识符 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Application.h 43
错误 C2923 "std::unique_ptr": "StateBase" 不是参数 "_Ty" 的有效 模板 类型参数 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Application.h 43
错误 C2976 “std::unique_ptr'”: 模板 参数太少 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Application.h 43
错误 C3203 "unique_ptr": 未指定的 类 模板 不能用作 模板 参数 "_Ty" 的 模板 参数,应为真实类型 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\Application.h 43
错误 C1189 #error: gl.h included before glew.h hopsoncraft C:\environment\CPPDependencies\GLEW\include\GL\glew.h 85
错误 C1189 #error: gl.h included before glew.h hopsoncraft C:\environment\CPPDependencies\GLEW\include\GL\glew.h 85
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: gl.h included before glew.h hopsoncraft C:\environment\CPPDependencies\GLEW\include\GL\glew.h 85
错误 C2665 “std::basic_string<char,std::char_traits,std::allocator>::basic_string”: 没有重载函数可以转换所有参数类型 hopsoncraft C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xmemory 727
错误 C2079 “Block::Database::m_textures”使用未定义的 class“Texture::Atlas” hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\BlockDatabase.h 30
错误 C2440 “初始化”: 无法从“initializer list”转换为“int” hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\BlockDatabase.cpp 21
错误 C2439 “Block::Database::m_textures”: 未能初始化成员 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\BlockDatabase.cpp 22
错误 C2440 “return”: 无法从“const int”转换为“const Texture::Atlas &” hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\BlockDatabase.cpp 50
错误 C2653 “Texture”: 不是类或命名空间名称 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Block_Database.cpp 48
错误 C2143 语法错误: 缺少“;”(在“&”的前面) hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Block_Database.cpp 48
错误 C2761 “const TextureAtlas &Block::Database::getTextureAtlas(void) const”: 不允许重新声明成员 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Block_Database.cpp 49
错误 C2059 语法错误:“{” hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Block_Database.cpp 49
错误 C2143 语法错误: 缺少“;”(在“{”的前面) hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Block_Database.cpp 49
错误 C2447 “{”: 缺少函数标题(是否是老式的形式表?) hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Block_Database.cpp 49
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C2504 “BlockType”: 未定义基类 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Types\DefaultBlock.h 6
错误 C2371 “Block::Position”: 重定义;不同的基类型 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Block_Position.h 12
错误 C2011 “Block::ID”:“unsigned enum”类型重定义 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Block_ID.h 11
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C2504 “BlockType”: 未定义基类 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Types\PlantBlock.h 7
错误 C4430 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Types\PlantBlock.h 11
错误 C2143 语法错误: 缺少“,”(在“&”的前面) hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Types\PlantBlock.h 11
错误 C3668 “PlantBlock::trigger”: 包含重写说明符“override”的方法没有重写任何基类方法 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Types\PlantBlock.h 11
错误 C2371 “Block::Position”: 重定义;不同的基类型 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Block_Position.h 12
错误 C2011 “Block::ID”:“unsigned enum”类型重定义 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Block_ID.h 11
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C2371 “Block::Position”: 重定义;不同的基类型 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Block_Position.h 12
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26
错误 C2653 “Maths”: 不是类或命名空间名称 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Generators\GenerationType.cpp 17
错误 C2398 元素“1”: 从“uint64_t”转换为“int”需要收缩转换 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Generators\GenerationType.cpp 85
错误 C2398 元素“2”: 从“uint64_t”转换为“int”需要收缩转换 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Generators\GenerationType.cpp 85
错误 C2398 元素“5”: 从“uint64_t”转换为“int”需要收缩转换 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Generators\GenerationType.cpp 85
错误 C1083 无法打开包括文件: “../../Maths/General_Maths.h”: No such file or directory hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Generators\Generation_Type.cpp 4
错误 C2011 “Block::ID”:“unsigned enum”类型重定义 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Block_ID.h 11
错误 C2371 “Block::Position”: 重定义;不同的基类型 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Block\Block_Position.h 12
错误 C2371 “anonymous-namespace'::CHUNK_SIZE”: 重定义;不同的基类型 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\World_Constants.h 8 错误 C2371 “anonymous-namespace'::CHUNK_VOLUME”: 重定义;不同的基类型 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\World_Constants.h 10
错误 C2371 “anonymous-namespace'::CHUNK_AREA”: 重定义;不同的基类型 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\World_Constants.h 11 错误 C2371 “anonymous-namespace'::WATER_LEVEL”: 重定义;不同的基类型 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\World_Constants.h 13
错误 C2371 “anonymous-namespace'::BEACH_LEVEL”: 重定义;不同的基类型 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\World_Constants.h 14 错误 C2374 “anonymous-namespace'::MAX_LIGHT”: 重定义;多次初始化 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\World_Constants.h 16
错误 C2374 “`anonymous-namespace'::BLOCK_SIZE”: 重定义;多次初始化 hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\World_Constants.h 18
错误 C1083 无法打开包括文件: “../../Maths/General_Maths.h”: No such file or directory hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\World\Generators\Terrain_Generator.cpp 6
错误 C1189 #error: OpenGL header already included, remove this include, glad already provides it hopsoncraft C:\Users\13680\source\repos\HopsonCraft\Source\glad\glad.h 26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant