|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
: t* R0 E/ Y7 S8 t c; P PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
7 C8 S/ J( m# N
( o8 D, j, Q9 v$ ~0 d0 ~报错如下:% z. U2 D5 U0 j6 a5 d/ y% p
'Invoking: C6000 Linker'
+ Z% y8 u3 k! V5 ?* V"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"
! F" u- G& Y! W- p" G<Linking>
, Y9 V) I2 Q) f! \) `) R& N4 Bwarning #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.- v3 @. m/ e; r3 n o
* @8 H7 D# s3 g1 e. U
>> Compilation failure
# ^* B% m& D9 Y% k1 t" U, Q& s5 ewarning #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.
0 E1 p) j- X3 a% T* g. j5 T7 j- o. d* H
undefined first referenced6 b; M' b, j5 ?
symbol in file ; o$ m3 V/ o) a- ~$ _
--------- ----------------, d# \/ s! R- C8 p7 j
_PSCModuleControl ./main.obj |
|