各位开发者:
大家好。我在CCS 5下开发C6748的BIOS下的UART程序,进行编译时,报出以下错误:
Description Resource Path Location Type #10010 errors encountered during linking; "myUart1.out" not built myUart1 C/C++ Problem
Description Resource Path Location Type unresolved symbol _configureUart, first referenced in ./uartSample_main.obj myUart1 C/C++ Problem
Description Resource Path Location Type unresolved symbol _edma3init, first referenced in ./uartSample_main.obj myUart1 C/C++ Problem
Description Resource Path Location Type unresolved symbol _Uart_init, first referenced in ./uartSample_main.obj myUart1 C/C++ Problem
Description Resource Path Location Type unresolved symbol _Uart_PARAMS, first referenced in ./uartSample_main.obj myUart1 C/C++ Problem
请教各位这个问题该如何解决。
shen liu:
上面的问题,我发现如果把定义Uart_init函数的源文件添加进工程就会解决,但同时会出现类似的很多问题,是由于新加入的源文件引起的。我想了解下,这一类的问题该如何来解决。
Hank Zhao:
回复 shen liu:
你需要将包含这些函数的库文件和相应的头文件添加到你的工程中。
shen liu:
回复 Hank Zhao:
你好,Hank Zhao,添加头文件到工程中是采用Add Files的形式来添加吗?添加库文件也是采用Add Files的形式吗?BIOS下,函数的库文件是什么样的啊?后缀名是.lib吗?谢谢。
Hank Zhao:
回复 shen liu:
右击工程文件,选择properties,添加头文件找到include options,将头文件的include文件夹添加上,添加库文件找到file search path,将库文件添加上。.lib后缀名的是库文件。
shen liu:
回复 Hank Zhao:
Hank Zhao,你好。我想在BIOS下开发UART程序,要用的头文件和源文件biospsp_03_00_01_00\drivers\uart 下,我把头文件的文件夹添加好了,但uart文件下的lib目录 下没有.lib库文件,只有bios_psp_uart.ae674和bios_psp_uart.a674两个文件,请问这两个也是库文件吗?我尝试着把bios_psp_uart.a674当做库文件进行添加,结果之前的问题没有了,但报出了类似的其他的问题,是不是又缺了其他库了,还要继续添加。
shen liu:
回复 shen liu:
Hank Zhao,我重新报出的问题似乎和我不添加库文件,而直接把uart目录下的src文件夹下的源文件直接添加到工程中报出的错误差不多。
Hank Zhao:
回复 shen liu:
新的报错内容是什么?
shen liu:
回复 Hank Zhao:
Hank Zhao,你好。新报的错误为:
Description Resource Path Location Type unresolved symbol _Psc_ModuleClkCtrl, first referenced in D:/Program myUart1 C/C++ Problem
Description Resource Path Location Type unresolved symbol _edma3ParamCpy, first referenced in D:/Program myUart1 C/C++ Problem
Description Resource Path Location Type unresolved symbol _edma3OsProtectExit, first referenced in D:/Program myUart1 C/C++ Problem
Description Resource Path Location Type unresolved symbol _edma3OsProtectEntry, first referenced in D:/Program myUart1 C/C++ Problem
Description Resource Path Location Type unresolved symbol _edma3init, first referenced in ./uartSample_main.obj myUart1 C/C++ Problem
Description Resource Path Location Type unresolved symbol _EDMA3_RM_unregisterTccCb, first referenced in D:/Program myUart1 C/C++ Problem
Description Resource Path Location Type unresolved symbol _EDMA3_RM_freeResource, first referenced in D:/Program myUart1 C/C++ Problem
Description Resource Path Location Type unresolved symbol _edma3_qdma_ch_max_val, first referenced in D:/Program myUart1 C/C++ Problem
Description Resource Path Location Type unresolved symbol _edma3_log_ch_max_val, first referenced in D:/Program myUart1 C/C++ Problem
shen liu:
回复 shen liu:
Hank Zhao,你好,edma3_common.h这个头文件对应的源文件在哪里啊?或者其对应的库文件是哪个啊?