|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
. k# H/ F) e- ^: t PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
/ b( Y' j1 B/ H' |- a! s% u( F& R" I. g" w4 Y2 ?0 Z9 J
报错如下:. v3 R" T$ v( V$ d4 n
'Invoking: C6000 Linker', T9 m2 o P( ~
"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" " V5 b& _ u8 k9 t H
<Linking>$ S+ X; _% I* p" q0 _( p7 b
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.
1 q( D: K+ s& ^, E( {# ?& g; V+ G: B) w0 C8 \" Z% I; z2 ]2 i
>> Compilation failure
. ~) l* `7 A( W2 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.9 w& v4 k. ?6 {9 V! v
$ p+ n3 u7 |/ y5 ]* I/ F3 \ undefined first referenced3 D" X5 M* {! E; G- l
symbol in file $ \, M# P3 w* c* c5 X
--------- ----------------0 t) U. U' j$ N1 e+ u+ Z5 u
_PSCModuleControl ./main.obj |
|