|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
* R J/ L0 _& a) A PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
- p) I& c+ d7 ^+ Y& s1 o. n8 K0 |( ~* p! s
报错如下:
! C5 K9 b$ Q1 {. o! V1 L' _'Invoking: C6000 Linker'
6 A% ]1 ~5 c0 `6 d1 u4 O4 d1 ?; g"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: w' j# n3 _
<Linking>
1 f6 K+ b ?9 |) H) Awarning #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.) g4 f# L. N( p3 `" D! ^! j
4 e8 j# d3 K; ^0 z! X, p* r2 N. J>> Compilation failure9 w" w9 [* [' t& u" Z
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.
- j$ U) s; g: L6 B" A$ F& p. I6 _9 s1 c9 t# K
undefined first referenced
1 P: Z& f$ j# q8 _2 x& J symbol in file
" e P- r' @* w% g2 _ --------- ----------------8 J' _1 M5 ?$ T9 ~+ k! Y7 v+ y9 M
_PSCModuleControl ./main.obj |
|