|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
; a, n, S3 q9 `- T2 a& b! H PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
0 j( F- L7 }/ W7 ~! \
N& }# ]4 V2 H$ C报错如下:. C4 Q/ Q( Y6 i( R& H, c" C
'Invoking: C6000 Linker'
& e) D3 \8 I6 k- w7 ^2 W4 ^"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 d" t( ~, s" T+ B4 _& v9 C- K<Linking>" u1 [6 _" M( ~0 K/ r \; r( C
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- D% Z. Q6 I
6 R6 C/ m1 H9 `9 X7 v
>> Compilation failure
. Q j r4 K9 l. z( L4 ]* qwarning #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.
3 v8 h e$ S+ Q5 N& o+ `" H2 ^/ I9 [1 x$ {9 H3 o( t. H9 `
undefined first referenced1 C3 W9 e, p7 _# b! W! r. I
symbol in file 3 u2 X8 k5 y6 P9 w) x H w
--------- ----------------
6 c, h6 U2 n9 | _PSCModuleControl ./main.obj |
|