RT-Thread RTThread studio 初使用
RT-Thread Studio 下载https://www.rt-thread.org/studio.html
安装使用
https://bbs.elecfans.com/jishu_2425653_1_1.html
https://i-blog.csdnimg.cn/direct/96599b10330d40ed9b3e2c0fe7a786c4.png
https://i-blog.csdnimg.cn/direct/f9902e6da08943d5bf1dc04c0da52622.png
https://i-blog.csdnimg.cn/direct/4470606883d742248ab0dfb111ebfbd1.png
https://i-blog.csdnimg.cn/direct/4abb042b532747e991269f5a4cafe71d.png
https://i-blog.csdnimg.cn/direct/204f7c3198cd4456a3de13e832f95d08.pnghttps://i-blog.csdnimg.cn/direct/69b2b5d95af44f94a95fe082894cbb55.png
https://i-blog.csdnimg.cn/direct/e1d2a315f93a48efa2f1d93951feef1b.png
4 编译问题办理
问题一:error: unknown type name 'clock_t'
https://i-blog.csdnimg.cn/img_convert/e6127485cf2e7c9c700fee8098a1679b.png
详细的类型值是在sys/_types.h中定义的,需要包罗sys/_types.h 这个头函数,因为在types 中宏定义了这个 #define _SYS_TYPES_H, 导致sys/_types.h这个头文件没有被引用,
在构建配置里面添加_POSIX_C_SOURCE=1 就可以了
https://i-blog.csdnimg.cn/img_convert/e12f6ab7d130cbcf35529f2c6f66923d.png
问题二:error: 'NULL' undeclared (first use in this function)
https://i-blog.csdnimg.cn/img_convert/74397dceef9460285b436fda970831fa.png
缺少相应的头文件导致的。
#include <stddef.h>
在cstdlib.c中添加相应的头文件即可。
https://i-blog.csdnimg.cn/direct/18b724c75cd94421bf8a86630286b006.png
https://i-blog.csdnimg.cn/direct/f0065fc07eeb4b11bcaf600b7b863592.png
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页:
[1]