Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
RT-Thread一般讨论
小白请教个入门问题
发布于 2013-12-16 21:28:54 浏览:5734
订阅该版
在下电子工程师,以前都裸奔,嵌入式小白一枚,刚接触到RT,感觉相见恨晚,手上有个天嵌2440的板子,想用RT-Thread_1.1.1\bsp\mini2440的工程下进去先练练手,结果出现了一些简单的错误如下。 首先斗胆解释下,我明白这是有几个头文件没找到,手动把这几个头文件复制到系统include目录下就能解决,但我不明白的是: 1、举例#include
应该不是标准库的头文件,为什么用<>而不是""呢? 2、正式版RT-Thread_1.1.1应该是测试正常才发布的,为什么我一下载下来就编译出错了? 3、如果我不想把这几个头文件复制到系统include目录下,该怎么处理呢? 我觉得这一定是个很简单的问题,但我摸索了半天也每个眉目,只能厚着脸皮向各位前辈请教了,还望不吝赐教。 环境:xpsp3+MDK-ARM Standard Version 4.72.1.0 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Rebuild target 'RT-Thread Mini2440' compiling application.c... ..\..\components\dfs\include\dfs_def.h(65): error: #5: cannot open source input file "sys/stat.h": No such file or directory compiling startup.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling board.c... compiling console.c... compiling led.c... compiling sdcard.c... ..\..\components\dfs\include\dfs_def.h(65): error: #5: cannot open source input file "sys/stat.h": No such file or directory compiling dm9000.c... dm9000.c(154): warning: #177-D: variable "eint_pend" was declared but never referenced ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling clock.c... compiling device.c... compiling idle.c... compiling ipc.c... compiling irq.c... compiling kservice.c... compiling mem.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling mempool.c... compiling module.c... ..\..\src\module.c(797): warning: #177-D: variable "stack_size" was declared but never referenced ..\..\src\module.c(798): warning: #177-D: variable "priority" was declared but never referenced ..\..\components\dfs\include\dfs_def.h(65): error: #5: cannot open source input file "sys/stat.h": No such file or directory compiling object.c... compiling scheduler.c... compiling thread.c... compiling timer.c... compiling cpu.c... compiling interrupt.c... compiling mmu.c... compiling rtc.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling serial.c... compiling stack.c... compiling system_clock.c... compiling trap.c... assembling context_rvds.S... assembling start_rvds.S... compiling backtrace.c... compiling div0.c... compiling showmem.c... compiling dfs.c... ..\..\components\dfs\include\dfs_def.h(65): error: #5: cannot open source input file "sys/stat.h": No such file or directory compiling dfs_fs.c... ..\..\components\dfs\include\dfs_def.h(65): error: #5: cannot open source input file "sys/stat.h": No such file or directory compiling dfs_file.c... ..\..\components\dfs\include\dfs_def.h(65): error: #5: cannot open source input file "sys/stat.h": No such file or directory compiling dfs_posix.c... ..\..\components\dfs\include\dfs_def.h(65): error: #5: cannot open source input file "sys/stat.h": No such file or directory compiling dfs_elm.c... ..\..\components\dfs\include\dfs_def.h(65): error: #5: cannot open source input file "sys/stat.h": No such file or directory compiling ff.c... compiling cc936.c... compiling devfs.c... ..\..\components\dfs\include\dfs_def.h(65): error: #5: cannot open source input file "sys/stat.h": No such file or directory compiling devfs_console.c... compiling adler32.c... ..\..\components\external\libz\adler32.c(57): warning: #1294-D: Old-style function adler32 ..\..\components\external\libz\adler32.c(128): warning: #1294-D: Old-style function adler32_combine compiling compress.c... ..\..\components\external\libz\compress.c(22): warning: #1294-D: Old-style function compress2 ..\..\components\external\libz\compress.c(62): warning: #1294-D: Old-style function compress ..\..\components\external\libz\compress.c(75): warning: #1294-D: Old-style function compressBound compiling crc32.c... ..\..\components\external\libz\crc32.c(219): warning: #1294-D: Old-style function crc32 ..\..\components\external\libz\crc32.c(242): warning: #111-D: statement is unreachable ..\..\components\external\libz\crc32.c(262): warning: #1294-D: Old-style function crc32_little ..\..\components\external\libz\crc32.c(302): warning: #1294-D: Old-style function crc32_big ..\..\components\external\libz\crc32.c(342): warning: #1294-D: Old-style function gf2_matrix_times ..\..\components\external\libz\crc32.c(359): warning: #1294-D: Old-style function gf2_matrix_square ..\..\components\external\libz\crc32.c(370): warning: #1294-D: Old-style function crc32_combine compiling deflate.c... ..\..\components\external\libz\deflate.c(204): warning: #1294-D: Old-style function deflateInit_ ..\..\components\external\libz\deflate.c(216): warning: #1294-D: Old-style function deflateInit2_ ..\..\components\external\libz\deflate.c(315): warning: #1294-D: Old-style function deflateSetDictionary ..\..\components\external\libz\deflate.c(357): warning: #1294-D: Old-style function deflateReset ..\..\components\external\libz\deflate.c(393): warning: #1294-D: Old-style function deflateSetHeader ..\..\components\external\libz\deflate.c(404): warning: #1294-D: Old-style function deflatePrime ..\..\components\external\libz\deflate.c(416): warning: #1294-D: Old-style function deflateParams ..\..\components\external\libz\deflate.c(454): warning: #1294-D: Old-style function deflateTune ..\..\components\external\libz\deflate.c(489): warning: #1294-D: Old-style function deflateBound ..\..\components\external\libz\deflate.c(518): warning: #1294-D: Old-style function putShortMSB ..\..\components\external\libz\deflate.c(532): warning: #1294-D: Old-style function flush_pending ..\..\components\external\libz\deflate.c(552): warning: #1294-D: Old-style function deflate ..\..\components\external\libz\deflate.c(859): warning: #1294-D: Old-style function deflateEnd ..\..\components\external\libz\deflate.c(894): warning: #1294-D: Old-style function deflateCopy ..\..\components\external\libz\deflate.c(956): warning: #1294-D: Old-style function read_buf ..\..\components\external\libz\deflate.c(986): warning: #1294-D: Old-style function lm_init ..\..\components\external\libz\deflate.c(1027): warning: #1294-D: Old-style function longest_match ..\..\components\external\libz\deflate.c(1175): warning: #1294-D: Old-style function longest_match_fast ..\..\components\external\libz\deflate.c(1266): warning: #1294-D: Old-style function fill_window ..\..\components\external\libz\deflate.c(1390): warning: #1294-D: Old-style function deflate_stored ..\..\components\external\libz\deflate.c(1448): warning: #1294-D: Old-style function deflate_fast ..\..\components\external\libz\deflate.c(1554): warning: #1294-D: Old-style function deflate_slow compiling infback.c... ..\..\components\external\libz\infback.c(28): warning: #1294-D: Old-style function inflateBackInit_ ..\..\components\external\libz\infback.c(73): warning: #1294-D: Old-style function fixedtables ..\..\components\external\libz\infback.c(241): warning: #1294-D: Old-style function inflateBack ..\..\components\external\libz\infback.c(614): warning: #1294-D: Old-style function inflateBackEnd compiling inffast.c... ..\..\components\external\libz\inffast.c(67): warning: #1294-D: Old-style function inflate_fast compiling inflate.c... ..\..\components\external\libz\inflate.c(103): warning: #1294-D: Old-style function inflateReset ..\..\components\external\libz\inflate.c(128): warning: #1294-D: Old-style function inflatePrime ..\..\components\external\libz\inflate.c(144): warning: #1294-D: Old-style function inflateInit2_ ..\..\components\external\libz\inflate.c(187): warning: #1294-D: Old-style function inflateInit_ ..\..\components\external\libz\inflate.c(205): warning: #1294-D: Old-style function fixedtables ..\..\components\external\libz\inflate.c(323): warning: #1294-D: Old-style function updatewindow ..\..\components\external\libz\inflate.c(554): warning: #1294-D: Old-style function inflate ..\..\components\external\libz\inflate.c(1155): warning: #1294-D: Old-style function inflateEnd ..\..\components\external\libz\inflate.c(1169): warning: #1294-D: Old-style function inflateSetDictionary ..\..\components\external\libz\inflate.c(1211): warning: #1294-D: Old-style function inflateGetHeader ..\..\components\external\libz\inflate.c(1239): warning: #1294-D: Old-style function syncsearch ..\..\components\external\libz\inflate.c(1262): warning: #1294-D: Old-style function inflateSync ..\..\components\external\libz\inflate.c(1313): warning: #1294-D: Old-style function inflateSyncPoint ..\..\components\external\libz\inflate.c(1323): warning: #1294-D: Old-style function inflateCopy compiling inftrees.c... ..\..\components\external\libz\inftrees.c(32): warning: #1294-D: Old-style function inflate_table compiling trees.c... ..\..\components\external\libz\trees.c(382): warning: #1294-D: Old-style function _tr_init ..\..\components\external\libz\trees.c(411): warning: #1294-D: Old-style function init_block ..\..\components\external\libz\trees.c(455): warning: #1294-D: Old-style function pqdownheap ..\..\components\external\libz\trees.c(490): warning: #1294-D: Old-style function gen_bitlen ..\..\components\external\libz\trees.c(577): warning: #1294-D: Old-style function gen_codes ..\..\components\external\libz\trees.c(619): warning: #1294-D: Old-style function build_tree ..\..\components\external\libz\trees.c(707): warning: #1294-D: Old-style function scan_tree ..\..\components\external\libz\trees.c(752): warning: #1294-D: Old-style function send_tree ..\..\components\external\libz\trees.c(803): warning: #1294-D: Old-style function build_bl_tree ..\..\components\external\libz\trees.c(838): warning: #1294-D: Old-style function send_all_trees ..\..\components\external\libz\trees.c(867): warning: #1294-D: Old-style function _tr_stored_block ..\..\components\external\libz\trees.c(892): warning: #1294-D: Old-style function _tr_align ..\..\components\external\libz\trees.c(921): warning: #1294-D: Old-style function _tr_flush_block ..\..\components\external\libz\trees.c(1022): warning: #1294-D: Old-style function _tr_tally ..\..\components\external\libz\trees.c(1072): warning: #1294-D: Old-style function compress_block ..\..\components\external\libz\trees.c(1126): warning: #1294-D: Old-style function set_data_type ..\..\components\external\libz\trees.c(1146): warning: #1294-D: Old-style function bi_reverse ..\..\components\external\libz\trees.c(1161): warning: #1294-D: Old-style function bi_flush ..\..\components\external\libz\trees.c(1178): warning: #1294-D: Old-style function bi_windup ..\..\components\external\libz\trees.c(1197): warning: #1294-D: Old-style function copy_block compiling uncompr.c... ..\..\components\external\libz\uncompr.c(26): warning: #1294-D: Old-style function uncompress compiling zutil.c... ..\..\components\external\libz\zutil.c(133): warning: #1294-D: Old-style function zError ..\..\components\external\libz\zutil.c(317): warning: #1294-D: Old-style function zcalloc ..\..\components\external\libz\zutil.c(323): warning: #223-D: function "rt_malloc" declared implicitly ..\..\components\external\libz\zutil.c(324): warning: #223-D: function "rt_calloc" declared implicitly ..\..\components\external\libz\zutil.c(327): warning: #1294-D: Old-style function zcfree ..\..\components\external\libz\zutil.c(331): warning: #223-D: function "rt_free" declared implicitly compiling cmd.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling finsh_compiler.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling finsh_error.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling finsh_heap.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling finsh_init.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling finsh_node.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling finsh_ops.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling finsh_parser.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling finsh_token.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling finsh_var.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling finsh_vm.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling shell.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling symbol.c... ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling dlclose.c... compiling dlerror.c... compiling dlopen.c... compiling dlsym.c... compiling api_lib.c... compiling api_msg.c... compiling err.c... compiling netbuf.c... compiling netdb.c... compiling netifapi.c... compiling sockets.c... ..\..\components
et\lwip\src\api\sockets.c(138): error: #20: identifier "ENOBUFS" is undefined ..\..\components
et\lwip\src\api\sockets.c(139): error: #20: identifier "EWOULDBLOCK" is undefined ..\..\components
et\lwip\src\api\sockets.c(140): error: #20: identifier "EHOSTUNREACH" is undefined ..\..\components
et\lwip\src\api\sockets.c(141): error: #20: identifier "EINPROGRESS" is undefined ..\..\components
et\lwip\src\api\sockets.c(144): error: #20: identifier "EADDRINUSE" is undefined ..\..\components
et\lwip\src\api\sockets.c(145): error: #20: identifier "EALREADY" is undefined ..\..\components
et\lwip\src\api\sockets.c(146): error: #20: identifier "ECONNABORTED" is undefined ..\..\components
et\lwip\src\api\sockets.c(147): error: #20: identifier "ECONNRESET" is undefined ..\..\components
et\lwip\src\api\sockets.c(148): error: #20: identifier "ENOTCONN" is undefined ..\..\components
et\lwip\src\api\sockets.c(150): error: #20: identifier "EIO" is undefined ..\..\components
et\lwip\src\api\sockets.c(201): error: #20: identifier "EBADF" is undefined ..\..\components
et\lwip\src\api\sockets.c(209): error: #20: identifier "EBADF" is undefined ..\..\components
et\lwip\src\api\sockets.c(375): error: #20: identifier "ENFILE" is undefined ..\..\components
et\lwip\src\api\sockets.c(772): error: #20: identifier "EMSGSIZE" is undefined ..\..\components
et\lwip\src\api\sockets.c(981): error: #20: identifier "ENFILE" is undefined ..\..\components
et\lwip\src\api\sockets.c(1369): error: #20: identifier "EOPNOTSUPP" is undefined ..\..\components
et\lwip\src\api\sockets.c(1370): error: #20: identifier "EOPNOTSUPP" is undefined ..\..\components
et\lwip\src\api\sockets.c(1453): error: #20: identifier "EFAULT" is undefined ..\..\components
et\lwip\src\api\sockets.c(1501): error: #20: identifier "EAFNOSUPPORT" is undefined ..\..\components
et\lwip\src\api\sockets.c(1509): error: #20: identifier "ENOPROTOOPT" is undefined ..\..\components
et\lwip\src\api\sockets.c(1549): error: #20: identifier "ENOPROTOOPT" is undefined ..\..\components
et\lwip\src\api\sockets.c(1578): error: #20: identifier "ENOPROTOOPT" is undefined ..\..\components
et\lwip\src\api\sockets.c(1611): error: #20: identifier "ENOPROTOOPT" is undefined ..\..\components
et\lwip\src\api\sockets.c(1854): error: #20: identifier "EFAULT" is undefined ..\..\components
et\lwip\src\api\sockets.c(1898): error: #20: identifier "EAFNOSUPPORT" is undefined ..\..\components
et\lwip\src\api\sockets.c(1905): error: #20: identifier "ENOPROTOOPT" is undefined ..\..\components
et\lwip\src\api\sockets.c(1959): error: #20: identifier "ENOPROTOOPT" is undefined ..\..\components
et\lwip\src\api\sockets.c(1988): error: #20: identifier "ENOPROTOOPT" is undefined ..\..\components
et\lwip\src\api\sockets.c(2020): error: #20: identifier "ENOPROTOOPT" is undefined ..\..\components
et\lwip\src\api\sockets.c(2310): error: #20: identifier "ENOSYS" is undefined compiling tcpip.c... compiling sys_arch.c... compiling def.c... compiling dhcp.c... compiling dns.c... compiling init.c... compiling memp.c... compiling netif.c... compiling pbuf.c... compiling raw.c... compiling stats.c... compiling sys.c... compiling tcp.c... compiling tcp_in.c... compiling tcp_out.c... compiling timers.c... compiling udp.c... compiling autoip.c... compiling icmp.c... compiling igmp.c... compiling inet.c... compiling inet_chksum.c... compiling ip.c... compiling ip_addr.c... compiling ip_frag.c... compiling etharp.c... compiling ethernetif.c... ..\..\components
et\lwip\src
etif\ethernetif.c(354): warning: #550-D: variable "result" was set but never used ..\..\components\finsh\finsh.h(60): error: #5: cannot open source input file "types.h": No such file or directory compiling slipif.c... compiling clock_time.c... ..\..\components\pthreads\posix_types.h(9): error: #5: cannot open source input file "sys/types.h": No such file or directory compiling mqueue.c... ..\..\components\pthreads\posix_types.h(9): error: #5: cannot open source input file "sys/types.h": No such file or directory compiling pthread.c... ..\..\components\pthreads\posix_types.h(9): error: #5: cannot open source input file "sys/types.h": No such file or directory compiling pthread_attr.c... ..\..\components\pthreads\posix_types.h(9): error: #5: cannot open source input file "sys/types.h": No such file or directory compiling pthread_barrier.c... ..\..\components\pthreads\posix_types.h(9): error: #5: cannot open source input file "sys/types.h": No such file or directory compiling pthread_cond.c... ..\..\components\pthreads\posix_types.h(9): error: #5: cannot open source input file "sys/types.h": No such file or directory compiling pthread_mutex.c... ..\..\components\pthreads\posix_types.h(9): error: #5: cannot open source input file "sys/types.h": No such file or directory compiling pthread_rwlock.c... ..\..\components\pthreads\posix_types.h(9): error: #5: cannot open source input file "sys/types.h": No such file or directory compiling pthread_spin.c... ..\..\components\pthreads\posix_types.h(9): error: #5: cannot open source input file "sys/types.h": No such file or directory compiling pthread_tls.c... ..\..\components\pthreads\posix_types.h(9): error: #5: cannot open source input file "sys/types.h": No such file or directory compiling sched.c... ..\..\components\pthreads\posix_types.h(9): error: #5: cannot open source input file "sys/types.h": No such file or directory compiling semaphore.c... ..\..\components\pthreads\posix_types.h(9): error: #5: cannot open source input file "sys/types.h": No such file or directory Target not created ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
查看更多
5
个回答
默认排序
按发布时间排序
bernard
2013-12-17
这家伙很懒,什么也没写!
很简单,编译器用错了呗,编译器和配置搭配不上。
虫少耶
2013-12-17
这家伙很懒,什么也没写!
哪里用错了?怎么修改?
bernard
2013-12-17
这家伙很懒,什么也没写!
用非GNU GCC编译器时,需要把newlib移除掉。没看scons的提示信息吗?
虫少耶
2014-03-14
这家伙很懒,什么也没写!
我找到问题了:是因为没有配置scons,mini2440工程默认的编译选项不是keil
撰写答案
登录
注册新账号
关注者
0
被浏览
5.7k
关于作者
虫少耶
这家伙很懒,什么也没写!
提问
5
回答
14
被采纳
0
关注TA
发私信
相关问题
1
有关动态模块加载的一篇论文
2
最近的调程序总结
3
晕掉了,这么久都不见layer2的踪影啊
4
继续K9ii的历程
5
[GUI相关] FreeType 2
6
[GUI相关]嵌入式系统中文输入法的设计
7
20081101 RT-Thread开发者聚会总结
8
嵌入式系统基础
9
linux2.4.19在at91rm9200 上的寄存器设置
10
[转]基于嵌入式Linux的通用触摸屏校准程序
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
rt-thread 小内存算法源码分析
2
env中添加lvgl软件包后,keil编译包--c99错误
3
【NXP-MCXA153】 定时器驱动移植
4
GD32F450 看门狗驱动适配
5
【NXP-MCXA153】看门狗驱动移植
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
UART
WIZnet_W5500
ota在线升级
PWM
freemodbus
flash
cubemx
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
编译报错
Debug
rt_mq_消息队列_msg_queue
SFUD
keil_MDK
msh
ulog
C++_cpp
MicroPython
本月问答贡献
踩姑娘的小蘑菇
7
个答案
2
次被采纳
a1012112796
18
个答案
1
次被采纳
红枫
5
个答案
1
次被采纳
Ryan_CW
5
个答案
1
次被采纳
张世争
4
个答案
1
次被采纳
本月文章贡献
YZRD
3
篇文章
6
次点赞
catcatbing
3
篇文章
6
次点赞
lizimu
2
篇文章
11
次点赞
qq1078249029
2
篇文章
2
次点赞
xnosky
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部