|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
* K- c. i0 d0 V0 { PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);, a! j0 ~0 ?; B3 n4 |$ l }7 o
f! q! s8 d0 I" _
报错如下:
3 j+ y" v/ E7 {: G( }1 @# I* A M'Invoking: C6000 Linker'4 b- P+ M; @$ U3 O5 x5 k( X
"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" ; W& O/ I: p0 {. w# p
<Linking>
/ N0 `2 `1 K% M7 Awarning #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.; L" Y/ g4 v3 \7 }: f
- e2 W! m. Z/ r7 l1 ?; D4 k
>> Compilation failure9 {0 f0 U/ X) s M4 T
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.
! F) L% c6 h: z) b f- y. K' }) a7 }+ _2 ^7 ~8 y( r
undefined first referenced. M" g* u/ E$ o3 N9 k
symbol in file
. ?% o$ r$ _7 Q& z --------- ----------------
1 m5 `5 S7 w! N. c& a _PSCModuleControl ./main.obj |
|