|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
% Q) [6 M2 w& B6 s/ l: ]0 G PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
8 O Y' p7 N# _4 U
* ~8 \: P- C' g/ j& R报错如下:! v5 t( ]9 Q- Q6 H# q# M* Z) c
'Invoking: C6000 Linker'2 e# O$ F9 k' e& U
"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"
! }8 n9 Y& s* ?( `( ]<Linking>
7 x1 Q) R) g5 d9 n, M1 cwarning #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 d0 p' q, W( V1 x
) n/ e6 t' @$ `- t* L, X E>> Compilation failure
& Y* a; _4 T3 f0 M$ twarning #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.: s) G+ o& q- B- q- I( A) t; ]$ A
/ ?: G: k) `" a4 Q+ |9 x# u! K
undefined first referenced
7 T1 q( Q* g% h* h: W& ~ symbol in file
5 X4 H2 A' n2 S4 @3 l2 X& L; g --------- ----------------
( |+ C: s+ L F/ V5 s2 A5 r3 m! Y# h _PSCModuleControl ./main.obj |
|