|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
9 S" r# f$ M8 E PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
& v$ P$ B6 S' W& o5 ~3 s1 v9 M" s
报错如下:
3 I0 ^6 I" W3 E" W'Invoking: C6000 Linker'
; C8 o f+ l" T"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" 6 w3 ?0 W6 B- }8 O" X8 G8 r/ c
<Linking>& Q R6 |% c) n/ r$ 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.* G% N# e: e& Y3 j
7 W, G3 w6 I5 G- d( b7 R>> Compilation failure
9 m4 Y4 R8 a9 P" Hwarning #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.
6 `( h9 ~8 R! q3 W/ ^1 P1 v; E2 s( @: e
undefined first referenced" s, F/ h& R' _: H. l% Q9 ]& f
symbol in file : z6 o6 x: ~4 I' ~1 S
--------- ----------------
3 {7 I* F& z4 h7 X; @/ l! y _PSCModuleControl ./main.obj |
|