|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
8 |1 b: m2 r6 |" V; p PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);4 g: \. ~! {! o/ P6 G3 Y' P
0 _; ?& Y0 C! {3 b( h: d* e6 W报错如下:
- z. u9 V6 \1 z' ]! p'Invoking: C6000 Linker', a9 C+ W2 i' H! i
"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"
/ |% o- G* i0 }' N- J" P ^. t<Linking> y& m: u9 _! g. G+ A# W
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.
. z2 G/ Q2 J$ x7 G& n, L2 f( T2 t2 Z" v2 t4 H& R! Z: _
>> Compilation failure2 I( u" t/ P) M
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.) e" W B: B. {; I; @7 m# k5 _
4 G0 e; r6 P9 Z$ {
undefined first referenced
! U4 k5 |; h. o1 i5 J- ` symbol in file
; b, V7 S$ d( O* D --------- ----------------
, v" `; [( d$ c& F _PSCModuleControl ./main.obj |
|