|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决# R+ ~; N$ @) {7 w% k( l+ g
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);/ a/ [& I( t7 S1 i8 W8 z
, T* f6 v! ^9 d5 i$ P# @, |. ~+ v
报错如下:
6 K: K3 e, u% q- X9 d'Invoking: C6000 Linker'
( w+ V5 {- t8 e: z$ J"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"
1 `3 m7 A3 F1 ^<Linking>- Q6 W @$ Y# V ~$ R
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 j$ @1 {4 L+ D% V, J. x5 M2 k& b& C, M2 q: Y
>> Compilation failure
8 j; x7 w/ H, R, z: _% 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.
2 w% y" v x+ n7 k3 P' l" N8 ?$ s$ \6 B* M/ V$ z. q' ?) R
undefined first referenced
3 K$ N, r r7 L+ Y4 D! C symbol in file ( p# @0 P, h) Y- B8 J
--------- ----------------
9 o! H9 |. X4 i; h3 }7 }9 v B _PSCModuleControl ./main.obj |
|