Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
RT-Thread一般讨论
error: #20: fd_set is undefined
发布于 2021-12-23 14:34:34 浏览:1109
订阅该版
用keil 5编译前,已经通过env执行过了,“pkgs --update”和“scons --target=mdk5 -s”,然后用keil打开工程会出现各种问题: ``` packages\webclient-v2.1.2\src\webclient.c(1202): error: #20: identifier "EWOULDBLOCK" is undefined if ( rrno == EWOULDBLOCK || errno == EAGAIN) packages\webclient-v2.1.2\src\webclient.c(1202): error: #20: identifier "EAGAIN" is undefined if ( rrno == EWOULDBLOCK || rrno == EAGAIN) packages\webclient-v2.1.2\src\webclient.c(1263): error: #20: identifier "EWOULDBLOCK" is undefined if ( rrno == EWOULDBLOCK || errno == EAGAIN) packages\webclient-v2.1.2\src\webclient.c(1263): error: #20: identifier "EAGAIN" is undefined if ( rrno == EWOULDBLOCK || rrno == EAGAIN) packages\webclient-v2.1.2\src\webclient.c(1333): error: #20: identifier "EWOULDBLOCK" is undefined if ( rrno == EWOULDBLOCK || errno == EAGAIN) packages\webclient-v2.1.2\src\webclient.c(1333): error: #20: identifier "EAGAIN" is undefined if ( rrno == EWOULDBLOCK || rrno == EAGAIN) packages\webclient-v2.1.2\src\webclient.c: 0 warnings, 6 errors compiling wn_module_auth.c... packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\module\wn_module_auth.c: 0 warnings, 4 errors compiling af_inet_lwip.c... compiling net_sockets.c... compiling webclient_file.c... compiling wn_module_dav.c... packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\module\wn_module_dav.c: 0 warnings, 4 errors compiling wn_request.c... packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\src\wn_request.c: 0 warnings, 4 errors compiling webnet.c... packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\src\webnet.c(38): error: #35: #error directive: The lwIP tcpip thread stack size(RT_LWIP_TCPTHREAD_STACKSIZE) must more than 1408 #error The lwIP tcpip thread stack size(RT_LWIP_TCPTHREAD_STACKSIZE) must more than 1408 packages\webnet-v2.0.2\src\webnet.c: 0 warnings, 5 errors compiling wn_module_upload.c... packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\module\wn_module_upload.c: 0 warnings, 4 errors compiling sal_socket.c... compiling wn_module_asp.c... packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\module\wn_module_asp.c: 0 warnings, 4 errors compiling wn_module_log.c... packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\module\wn_module_log.c: 0 warnings, 4 errors compiling wn_mimetype.c... compiling wn_module_ssi.c... packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\module\wn_module_ssi.c: 0 warnings, 4 errors compiling wn_module_cgi.c... packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\module\wn_module_cgi.c: 0 warnings, 4 errors compiling wn_module_alias.c... packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\module\wn_module_alias.c: 0 warnings, 4 errors compiling wn_session.c... packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\src\wn_session.c(480): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset) packages\webnet-v2.0.2\src\wn_session.c(480): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset) packages\webnet-v2.0.2\src\wn_session.c(490): warning: #223-D: function "FD_SET" declared implicitly FD_SET(session->socket, readset); packages\webnet-v2.0.2\src\wn_session.c(509): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset) packages\webnet-v2.0.2\src\wn_session.c(509): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset) packages\webnet-v2.0.2\src\wn_session.c(519): warning: #223-D: function "FD_ISSET" declared implicitly if (FD_ISSET(session->socket, readset)) packages\webnet-v2.0.2\src\wn_session.c: 2 warnings, 8 errors compiling wn_utils.c... compiling wn_module.c... packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\src\wn_module.c(516): warning: #177-D: variable "fd" was declared but never referenced int result, fd; packages\webnet-v2.0.2\src\wn_module.c: 1 warning, 4 errors compiling wn_module_index.c... packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(102): error: #20: identifier "fd_set" is undefined int webnet_sessions_set_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\inc\wn_session.h(103): error: #20: identifier "fd_set" is undefined void webnet_sessions_handle_fds(fd_set *readset, fd_set *writeset); packages\webnet-v2.0.2\module\wn_module_index.c: 0 warnings, 4 errors ```
查看更多
2
个回答
默认排序
按发布时间排序
mysterywolf
认证专家
2021-12-23
https://github.com/mysterywolf
你是用的最新版本的代码吗?
寻找GUI
2021-12-23
没有最终的成功,也没有致命的失败,可贵的是继续前进的勇气
好家伙,原来是版本问题,找一小时没发现码错哪儿了
撰写答案
登录
注册新账号
关注者
0
被浏览
1.1k
关于作者
Andy082
这家伙很懒,什么也没写!
提问
3
回答
2
被采纳
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
profinet从站主线error open adapt
2
2024 RT-Thread睿赛德开发者大会共探商业共赢的开源生态
3
rt-thread 小内存算法源码分析
4
env中添加lvgl软件包后,keil编译包--c99错误
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
本月问答贡献
a1012112796
20
个答案
3
次被采纳
红枫
8
个答案
2
次被采纳
踩姑娘的小蘑菇
7
个答案
2
次被采纳
三世执戟
7
个答案
1
次被采纳
张世争
6
个答案
1
次被采纳
本月文章贡献
YZRD
3
篇文章
6
次点赞
catcatbing
3
篇文章
6
次点赞
lizimu
2
篇文章
12
次点赞
qq1078249029
2
篇文章
2
次点赞
xnosky
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部