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

RMStatus 在 GCC13 下无法通过编译 #24

Closed
4 tasks done
zhaoxi-scut opened this issue Oct 13, 2023 · 0 comments · Fixed by #25
Closed
4 tasks done

RMStatus 在 GCC13 下无法通过编译 #24

zhaoxi-scut opened this issue Oct 13, 2023 · 0 comments · Fixed by #25
Assignees
Labels
bug 代码上、功能上存在严重漏洞...
Milestone

Comments

@zhaoxi-scut
Copy link
Member

System Information - 系统配置信息

配置 版本
RMVL 1.1.0-dev
OpenCV 4.7.0
OS / Platform Ubuntu 22.04
Compiler GCC 13.2.0

Detailed description - 问题的详细描述

有如下报错提示

/xxx/cv-rmvl/rmvl/extra/types/include/rmvl/types.hpp:141:79: 错误:‘uint8_t’不是一个类型名
  141 |     static std::string to_string(Tp type) { return std::to_string(static_cast<uint8_t>(type)); }
      |                                                                               ^~~~~~~
/xxx/cv-rmvl/rmvl/extra/types/include/rmvl/types.hpp:15:1: 附注:‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   14 | #include "rmvl/core/util.hpp"
  +++ |+#include <cstdint>
   15 | 
/xxx/cv-rmvl/rmvl/extra/types/src/type_to_string.cpp: 在全局域:
/xxx/cv-rmvl/rmvl/extra/types/src/type_to_string.cpp:14:13: 错误:‘std::string rm::RMStatus::to_string’ is not a static data member of ‘struct rm::RMStatus’
   14 | std::string rm::RMStatus::to_string(rm::RobotType type)
      |             ^~
/xxx/cv-rmvl/rmvl/extra/types/src/type_to_string.cpp:14:41: 错误:‘RobotType’不是‘rm’的成员

Steps to reproduce - 复现步骤

在 GCC 13.2.0 编译器环境下,运行

cd <path/to/rmvl>
rm -rf build
mkdir build && cd build
cmake ..
make rmvl_types

即可出现报错

Issue submission checklist - 工单提交清单

  • I report the issue, it's not a question - 我报告了这个 Bug,但这不是个人疑问
  • I checked the problem with documentation, open issues, etc and have not found any solution - 我用文档、未解决的问题等检查了问题,但没有找到任何解决方案
  • I updated to the latest RMVL version and the issue is still there - 我更新到最新的 RMVL 版本,问题仍然存在
  • There is reproducer code and related data files (videos, images, etc) - 我提供了相关代码和数据文件(视频,图像等)
@zhaoxi-scut zhaoxi-scut added the bug 代码上、功能上存在严重漏洞... label Oct 13, 2023
@zhaoxi-scut zhaoxi-scut added this to the 1.1.0 milestone Oct 13, 2023
@zhaoxi-scut zhaoxi-scut self-assigned this Oct 16, 2023
zhaoxi-scut added a commit that referenced this issue Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 代码上、功能上存在严重漏洞...
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant