|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
4 ~# y; G& W5 @8 ~ h8 v" L. [ PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
3 A8 {5 @6 p" r. z1 F' ?% E2 W0 y4 H2 c1 v7 X: k, {# {( c
报错如下:1 [% [( ` ^; r8 e9 k/ w
'Invoking: C6000 Linker'+ K @! d4 O+ Q7 H2 c
"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" ) @: e# K! o, ]4 O) G p0 m
<Linking>
/ \: o% [) U% C, I) mwarning #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.
+ Y* b i7 Z+ l
% F4 ~1 @4 K/ y8 T! h5 P% I# m8 j>> Compilation failure
9 {" p0 K8 U& F0 o5 y- G, [: t" K# nwarning #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.
2 E2 v' B) j: ^( U" d0 j9 V' a6 E9 u1 f+ J2 p K
undefined first referenced
9 ?0 o3 {, K5 x; x symbol in file b+ ?+ }: Z; Y d4 D# e. {
--------- ----------------; O; T+ [- J3 m, I
_PSCModuleControl ./main.obj |
|