|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决4 {1 Y3 K' c9 F
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);* j$ b- g. K8 m& g' R3 T8 \, k3 W
! \# a c$ ]; O( F
报错如下:
. c( r0 a/ o2 f: h% d3 E'Invoking: C6000 Linker'
7 u( c6 G! Q# q! f8 R5 C3 ]"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" : v7 y* H) S3 p# x! p y3 t
<Linking>
% ^( w% u; `9 r Uwarning #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* o* [0 ^3 u. I1 T
W6 W" C% _5 `, p>> Compilation failure4 z2 _- d: p2 }1 p4 @3 \
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.! t0 r. o& [5 ?* q: ^- m# K) J% s- ]
7 T9 f% V! A. S undefined first referenced6 i2 s' p! Z8 a' W9 H
symbol in file 4 X5 {% s5 j5 Z5 }3 `
--------- ----------------- _9 r0 a4 z: i
_PSCModuleControl ./main.obj |
|