Build in Visual Studio IDE is broken
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 38/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cmake, cpp
- 领域
- build-system, devtools
调研方向
首先重现 Visual Studio IDE 构建,并将其与正常工作的命令行 CMake 构建进行比较。检查 main.cpp 中的 clang-tidy include-cleaner 警告以及 constexpr 测试中的 cppcheck 失败,然后调查报告的与 lefticus::tools::uint_np8_t 相关的编译器错误。当报告的 Visual Studio IDE 构建检查成功通过且构建成功(包括 #59 中提到的 Debug 问题)时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Building intro.exe using Visual Studio IDE (17.8.5) is broken due to warnings emitted by clang-tidy and cppcheck. There are also compile errors involving lefticus::tools. Building on the command line using CMake seems to work.
- clang-tidy complains about many missing includes (
misc-include-cleaner) inmain.cpp:
- The compiler (both cl and clang-cl) throws an error when attempting to add an int literal to a
lefticus::tools::uint_np8_t:
- cppcheck issues warnings (treated as errors) when checking the constexpr tests:
There are other build issues as well, such as Debug builds being broken due to the use of address sanitizer with the -MDd compiler option (see #59). I realize that perhaps building was intended to be done from the command line with this template (as mentioned before, command line builds seem to work), but when developing on windows being able to make use of Visual Studio for editing and running/debugging my code is important. This template should be made compatible with Visual Studio IDE builds.
- 主要语言
- CMake
- 星标
- 1.8k
- 派生
- 205
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cpp-best-practices/cmake_template 的其他 Issue
-
Put back `-Wsign-conversion` for gcc in CompilerWarnings.cmake可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1 小时以内 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 4/5 3-5 天 新手友好度 45/100
cpp-best-practices/cmake_template#140 · 2 条评论 ·
-
From-scratch clone/build fails on `src/ftxui_sample/CMakeFiles/intro.dir/main.cpp.obj`可能已有人在做 @leftibot 于 195 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 48/100
cpp-best-practices/cmake_template#139 · 2 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
cpp-best-practices/cmake_template#91 · 2 条评论 ·
查看 cpp-best-practices/cmake_template 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
immortalwrt/immortalwrt#2522 ·
-
Font inlining cache is not created or reused可能已有人在做 @nagahara-naoki 今天认领。 未关闭area: @angular/build
难度 2/5 1-3 小时 新手友好度 82/100
angular/angular-cli#34719 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
osaurus-ai/osaurus#3422 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 66/100
-
难度 2/5 1-3 小时 新手友好度 62/100
foundation/foundation-emails#2127 ·