|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
) M5 I4 K) m/ i2 p9 ] PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
& ]5 ~! G. G% r }# W( y& R8 r. ]
: t0 V3 Q& _0 n9 m& ?报错如下:
4 o+ l+ D G) t: f1 d'Invoking: C6000 Linker'
% T5 p1 v3 a+ ^4 P" m"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"
! _/ {2 w# Y' ~5 u<Linking>
2 a4 w$ H6 h) A/ t$ t1 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.8 u" s. Y& P$ u5 L _) E% y A
6 {) K' N/ ]% N- I3 G
>> Compilation failure
$ l1 ], y+ w3 i8 p' Q" M/ V& ~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.5 ?$ o0 [! P0 L) x; T; k, Q/ `
9 A7 V0 z; D8 m5 a% o6 q undefined first referenced
" ^0 y5 ~8 f6 f" R symbol in file
1 }& {: [7 i: s+ b) [) M --------- ----------------5 Y$ S% y0 K4 X8 Q
_PSCModuleControl ./main.obj |
|