Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
server
tcpserver
请教TCP SERVER编译报错!!!!!!!!!!!
发布于 2022-11-23 11:27:12 浏览:494
订阅该版
TCP SERVER编译报错,加入以下头文件还是报错. ```c #include
#include
#include
#include
#include
#include
#include
``` ``` 14:27:23 **** Build of configuration Debug for project led **** make -j2 all arm-none-eabi-gcc "../rt-thread/src/clock.c" arm-none-eabi-gcc "../rt-thread/src/components.c" arm-none-eabi-gcc "../rt-thread/src/device.c" arm-none-eabi-gcc "../rt-thread/src/idle.c" arm-none-eabi-gcc "../rt-thread/src/ipc.c" arm-none-eabi-gcc "../rt-thread/src/irq.c" arm-none-eabi-gcc "../rt-thread/src/kservice.c" arm-none-eabi-gcc "../rt-thread/src/mem.c" arm-none-eabi-gcc "../rt-thread/src/memheap.c" arm-none-eabi-gcc "../rt-thread/src/mempool.c" arm-none-eabi-gcc "../rt-thread/src/object.c" arm-none-eabi-gcc "../rt-thread/src/scheduler.c" arm-none-eabi-gcc "../rt-thread/src/thread.c" arm-none-eabi-gcc "../rt-thread/src/timer.c" arm-none-eabi-gcc "../rt-thread/libcpu/arm/cortex-m4/context_gcc.S" arm-none-eabi-gcc "../rt-thread/libcpu/arm/cortex-m4/cpuport.c" arm-none-eabi-gcc "../rt-thread/libcpu/arm/common/backtrace.c" arm-none-eabi-gcc "../rt-thread/libcpu/arm/common/div0.c" arm-none-eabi-gcc "../rt-thread/libcpu/arm/common/showmem.c" arm-none-eabi-gcc "../rt-thread/components/utilities/ulog/backend/console_be.c" arm-none-eabi-gcc "../rt-thread/components/utilities/ulog/ulog.c" arm-none-eabi-gcc "../rt-thread/components/net/sal/src/sal_socket.c" arm-none-eabi-gcc "../rt-thread/components/net/sal/socket/net_netdb.c" arm-none-eabi-gcc "../rt-thread/components/net/sal/socket/net_sockets.c" arm-none-eabi-gcc "../rt-thread/components/net/sal/impl/af_inet_lwip.c" arm-none-eabi-gcc "../rt-thread/components/net/sal/dfs_net/dfs_net.c" arm-none-eabi-gcc "../rt-thread/components/net/netdev/src/netdev.c" arm-none-eabi-gcc "../rt-thread/components/net/netdev/src/netdev_ipaddr.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/port/ethernetif.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/port/sys_arch.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/netif/ethernet.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/netif/lowpan6.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/autoip.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/dhcp.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/etharp.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/icmp.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/igmp.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/ip4.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/ip4_addr.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/ip4_frag.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/def.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/dns.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/inet_chksum.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/init.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/ip.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/memp.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/netif.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/pbuf.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/raw.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/stats.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/sys.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/tcp.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/tcp_in.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/tcp_out.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/timeouts.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/core/udp.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/apps/ping/ping.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/api/api_lib.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/api/api_msg.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/api/err.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/api/netbuf.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/api/netdb.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/api/netifapi.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/api/sockets.c" arm-none-eabi-gcc "../rt-thread/components/net/lwip/lwip-2.0.3/src/api/tcpip.c" arm-none-eabi-gcc "../rt-thread/components/libc/posix/io/poll/poll.c" arm-none-eabi-gcc "../rt-thread/components/libc/posix/io/poll/select.c" arm-none-eabi-gcc "../rt-thread/components/libc/compilers/newlib/syscalls.c" arm-none-eabi-gcc "../rt-thread/components/libc/compilers/common/stdlib.c" arm-none-eabi-gcc "../rt-thread/components/libc/compilers/common/time.c" arm-none-eabi-gcc "../rt-thread/components/finsh/cmd.c" arm-none-eabi-gcc "../rt-thread/components/finsh/msh.c" arm-none-eabi-gcc "../rt-thread/components/finsh/msh_file.c" arm-none-eabi-gcc "../rt-thread/components/finsh/shell.c" arm-none-eabi-gcc "../rt-thread/components/drivers/serial/serial.c" arm-none-eabi-gcc "../rt-thread/components/drivers/rtc/alarm.c" arm-none-eabi-gcc "../rt-thread/components/drivers/rtc/rtc.c" arm-none-eabi-gcc "../rt-thread/components/drivers/misc/pin.c" arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/completion.c" arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/dataqueue.c" arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/pipe.c" arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/ringblk_buf.c" arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/ringbuffer.c" arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/waitqueue.c" arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/workqueue.c" arm-none-eabi-gcc "../rt-thread/components/dfs/src/dfs.c" arm-none-eabi-gcc "../rt-thread/components/dfs/src/dfs_file.c" arm-none-eabi-gcc "../rt-thread/components/dfs/src/dfs_fs.c" arm-none-eabi-gcc "../rt-thread/components/dfs/src/dfs_posix.c" arm-none-eabi-gcc "../packages/tcpserver-latest/tcpserver.c" ../packages/tcpserver-latest/tcpserver.c: In function 'tcpserver_recv': ../packages/tcpserver-latest/tcpserver.c:238:32: error: 'EINTR' undeclared (first use in this function) if (!(recv_size == EINTR || recv_size == EWOULDBLOCK || recv_size == EAGAIN)) ^ ../packages/tcpserver-latest/tcpserver.c:238:32: note: each undeclared identifier is reported only once for each function it appears in ../packages/tcpserver-latest/tcpserver.c:238:54: error: 'EWOULDBLOCK' undeclared (first use in this function) if (!(recv_size == EINTR || recv_size == EWOULDBLOCK || recv_size == EAGAIN)) ^ ../packages/tcpserver-latest/tcpserver.c:238:82: error: 'EAGAIN' undeclared (first use in this function) if (!(recv_size == EINTR || recv_size == EWOULDBLOCK || recv_size == EAGAIN)) ^ make: *** [packages/tcpserver-latest/subdir.mk:21: packages/tcpserver-latest/tcpserver.o] Error 1 make: *** Waiting for unfinished jobs.... "make -j2 all" terminated with exit code 2. Build might be incomplete. 14:27:32 Build Failed. 5 errors, 0 warnings. (took 9s.547ms) ``` ![1111.png](https://oss-club.rt-thread.org/uploads/20221123/76dd8be19bab225e11f0dca5e55dfbeb.png.webp "1111.png")
查看更多
2
个回答
默认排序
按发布时间排序
RT-Thread小师弟
2022-11-23
微信:rtthread2020
楼主啊,可不可以,不要这么多!!!!!!!!!!!!!!!!!!! 代码请记得加代码标签哦!!!!🐵 🐵 报问题,贴出报错日志的有效关键信息就行了。 关键日志信息最好是文本的,发之前可以先搜索一下。
xienan
2024-06-06
这家伙很懒,什么也没写!
想问下楼主这个问题解决了吗,今天我也遇到了
撰写答案
登录
注册新账号
关注者
1
被浏览
494
关于作者
r59461900
这家伙很懒,什么也没写!
提问
31
回答
13
被采纳
0
关注TA
发私信
相关问题
1
tcpserver_start中无法监听
2
lwip 同时开启不同端口的tcp server不能同时连接
3
STM32F407+Webnet+TCPServer的问题
4
lwip tcpserver 在没有数据发送的时候,接收数据会很慢很卡
5
esp8266使用tcpserver软件包开启tcp服务器时报错
6
rtthread使用官网TCPSERVER例程问题
7
accept connection failed! errno = 113
8
请教TCP Server数据量较大时接收不完整的问题
9
RT-Thread Studio中使用WIZnet软件包挂载W5500芯片,初始化需要等待20秒左右,才能ping通主机为什么?
10
RT-Thread项目,stm32F103添加freemodbus、tcpserver、w5500编译报错
推荐文章
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 2024开发者大会议程正式发布!
2
【24嵌入式设计大赛】基于RT-Thread星火一号的智慧家居系统
3
RT-Thread EtherKit开源以太网硬件正式发布
4
如何在master上的BSP中添加配置yml文件
5
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
热门标签
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
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
MicroPython
ulog
C++_cpp
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
19
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
6
个答案
2
次被采纳
用户名由3_15位
13
个答案
1
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
RTT_逍遥
1
篇文章
5
次点赞
大龄码农
1
篇文章
5
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部