[STM32F4] 未定义的引用

[复制链接]
 楼主| SocialButterfly 发表于 2025-7-7 23:10 | 显示全部楼层 |阅读模式
在STM32CubeIDE中包含lwIP和FreeRTOS
我正在添加新线程(作为新任务),但不成功
/* Definitions for TCPip */
osThreadId_t mtcpConHandle;
const osThreadAttr_t mtcpCon_attributes = {
.name = “mtcpCon“,
.stack_size = 384 * 4,
.priority = (osPriority_t) osPriorityNormal,
};
void mstartTcpCon(void *argument);
int main(void)
{
/* creation of TCPip connection*/
mtcpConHandle = osThreadNew(mstartTcpCon, NULL, &mtcpCon_attributes);
while (1)
{
}
}
void mstarTcpCon(void *argument)
{
....
}
在编译时出现以下make错误:
main.o: in function ‘main’
undefined reference to ‘mstartTcpCon’

LOVEEVER 发表于 2025-7-29 23:51 | 显示全部楼层
未定义的引用了解一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

40

主题

40

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部

40

主题

40

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部