我已添加ucos-ii.h和os_cpu_a.asm,编译时显示如下错误,请大家帮忙看一下问题出在哪里? ucos.axf: Error: L6218E: Undefined symbol OSPrioCur (referred from os_cpu_a.o). ucos.axf: Error: L6218E: Undefined symbol OSPrioHighRdy (referred from os_cpu_a.o). ucos.axf: Error: L6218E: Undefined symbol OSRunning (referred from os_cpu_a.o). ucos.axf: Error: L6218E: Undefined symbol OSTCBCur (referred from os_cpu_a.o). ucos.axf: Error: L6218E: Undefined symbol OSTCBHighRdy (referred from os_cpu_a.o). ucos.axf: Error: L6218E: Undefined symbol OSIntExit (referred from os_cpu_c.o). ucos.axf: Error: L6218E: Undefined symbol OSIntNesting (referred from os_cpu_c.o). ucos.axf: Error: L6218E: Undefined symbol OSTimeTick (referred from os_cpu_c.o). ucos.axf: Error: L6218E: Undefined symbol OS_CPU_SysTickClkFreq (referred from os_cpu_c.o). ucos.axf: Error: L6218E: Undefined symbol OSLockNesting (referred from os_task.o). ucos.axf: Error: L6218E: Undefined symbol OSRdyGrp (referred from os_task.o). ucos.axf: Error: L6218E: Undefined symbol OSRdyTbl (referred from os_task.o). ucos.axf: Error: L6218E: Undefined symbol OSTCBFreeList (referred from os_task.o). ucos.axf: Error: L6218E: Undefined symbol OSTCBList (referred from os_task.o). ucos.axf: Error: L6218E: Undefined symbol OSTCBPrioTbl (referred from os_task.o). ucos.axf: Error: L6218E: Undefined symbol OSTaskCtr (referred from os_task.o). ucos.axf: Error: L6218E: Undefined symbol OS_Dummy (referred from os_task.o). ucos.axf: Error: L6218E: Undefined symbol OS_MemCopy (referred from os_task.o). ucos.axf: Error: L6218E: Undefined symbol OS_Sched (referred from os_task.o). ucos.axf: Error: L6218E: Undefined symbol OS_StrCopy (referred from os_task.o). ucos.axf: Error: L6218E: Undefined symbol OS_StrLen (referred from os_task.o). ucos.axf: Error: L6218E: Undefined symbol OS_TCBInit (referred from os_task.o). ucos.axf: Error: L6218E: Undefined symbol OSTime (referred from os_time.o). Target not created |
该包含的头文件都包含了么
在UCOS_ii.h中定义了 OS_EXT INT8U OSPrioCur;
在os_cpu_a.asm中定义了 EXTERN OSPrioCur
这两个文件我都已添加到工程中
二楼的意思是编译元件中头文件路径有没有设置好
头文件路径已加,要是头文件没有加入,会提示打不开头文件的呀
在哪个文件里添加UCOS_ii.h?