|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
3 N. E, k8 Y- n- v4 [: V PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);7 I/ c7 e) I2 K4 |# ~ M
* A8 m2 ~3 e0 o6 X" m F: N8 |. ~9 D9 B
报错如下:
2 F+ i5 E, F* A% t7 x'Invoking: C6000 Linker'- C# \& v9 a/ D2 p
"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6740 --abi=coffabi -g --define=omapl138 --display_error_number --diag_warning=225 --diag_wrap=off -z --stack_size=0x800 -m"HelloWorld.map" --heap_size=0x800 -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/lib" -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --reread_libs --define=DSP_CORE=1 --warn_sections --display_error_number --diag_wrap=off --xml_link_info="HelloWorld_linkInfo.xml" --rom_model -o "HelloWorld.out" -l"./configPkg/linker.cmd" "./main.obj" "../OMAPL138.cmd" -l"C:\ti\OMAPL138_StarterWare_1_10_04_01\binary\c674x\cgt\omapl138\drivers\Debug\drivers.lib" -l"libc.a" / d% d/ v% x( v8 h! x+ e
<Linking>
* ?* K8 {; T3 W/ N! D0 b$ Twarning #10373-D: library "C:\ti\OMAPL138_StarterWare_1_10_04_01\binary\c674x\cgt\omapl138\drivers\Debug\drivers.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library.; p5 O/ [: f; P( m
/ B U% a; W e) {/ g$ k
>> Compilation failure/ A" o' ]+ l% D& Q& p/ o
warning #10373-D: library "C:\ti\OMAPL138_StarterWare_1_10_04_01\binary\c674x\cgt\omapl138\drivers\Debug\drivers.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library.
' f7 u% e6 E/ p, s' z& B
8 `& h$ H3 I; v- U; @: B% E6 z3 [ undefined first referenced
5 ~" }1 O! Q! f% _. c symbol in file ; a+ D9 k T# \" t* [; W% O( y
--------- ----------------7 B3 L/ Q; J9 g; s4 `
_PSCModuleControl ./main.obj |
|