完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
求助,我现在要用RTThread的C++功能,我用env工具进行配置开启的,用的bsp是stm32h743-atk-apollo,
用env scons —target=mdk5进行构建编译正常。
但是用keil IDE软件打开编译报错,就是找不到一些符号, ..\components\libc\cplusplus\cpp11\thread_local_impl.cpp(21): error: #20: identifier “abort” is undefind ..\components\libc\cplusplus\cpp11\emutls.c(135): error: #20: identifier “__ATOMIC_ACQUIRE” is undefind 不知有没有朋友们碰到过这个问题吗?想知道怎么解决的,感谢!!!
|
|
相关推荐
4个回答
|
|
|
建议使用RT Studio,我一直在这上面写C++
|
|
|
|
|
|
我现在试了 RT-Thread studio ,但是我开启C++ 11的时候也报了好多错误,不知道你用的时候碰到没有,如果有的话是怎么解决的,感谢。
In file included from ../rt-thread/components/libc/cplusplus/cpp11/gcc/mutex:9:0, from ../rt-thread/components/libc/cplusplus/cpp11/gcc/mutex.cpp:11: D:RT-ThreadStudioworkspacetestrt-threadcomponentslibcposixpthreads/pthread.h:27:43: error: could not convert '0' from 'int' to 'rt_mutex' #define PTHREAD_MUTEX_INITIALIZER {-1, 0} ^ ../rt-thread/components/libc/cplusplus/cpp11/gcc/mutex:28:38: note: in expansion of macro 'PTHREAD_MUTEX_INITIALIZER' __native_type _m_mutex = PTHREAD_MUTEX_INITIALIZER; ^ In file included from ../rt-thread/components/libc/cplusplus/cpp11/gcc/mutex.cpp:11:0: ../rt-thread/components/libc/cplusplus/cpp11/gcc/mutex:39:23: error: explicitly defaulted function 'constexpr std::mutex::mutex()' cannot be declared as constexpr because the implicit declaration is not constexpr: constexpr mutex() = default; ^ ../rt-thread/components/libc/cplusplus/cpp11/gcc/mutex:36:11: error: use of deleted function 'constexpr std::__mutex_base::__mutex_base()' class mutex : private __mutex_base ^ ../rt-thread/components/libc/cplusplus/cpp11/gcc/mutex:30:23: note: 'constexpr std::__mutex_base::__mutex_base() noexcept' is implicitly deleted because its exception-specification does not match the implicit exception-specification 'noexcept (false)' constexpr __mutex_base() noexcept = default; ^ |
|
|
|
|
|
重复的错误内容不要重复贴啊,数据库都被你塞爆了。
|
|
|
|
|
|
当时网络卡了,我还以为没有提交成功呢,多点了几次就重复了,不过我已经删除了,谢谢
|
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1033 浏览 0 评论
2877 浏览 0 评论
图腾柱PFC无法上升至400V,且电感电流为正弦波形,但是幅值极小
9386 浏览 0 评论
飞凌嵌入式ElfBoard-Vim编辑器之静态链接和动态链接
2898 浏览 0 评论
使用 LinkBoy 将程序导出为 C 语言代码并烧录至 Arduino ESP32 开发板
2302 浏览 1 评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 00:12 , Processed in 0.924276 second(s), Total 79, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
3078