|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决2 ]6 ] Y! m( M
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
! \. p1 G. r- {* v7 N4 V& o. E3 A9 a3 @1 x0 A6 W2 Q
报错如下:
3 M$ X2 P+ G- Q, _- B1 ~ |& u'Invoking: C6000 Linker'
8 m5 a' j- z# c! H0 a; w! ^' }"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" / O. Z6 Q; u s, H+ M X/ L
<Linking>* K- Y1 }! K+ S) `
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.
! d2 v% v2 T2 g3 c `/ _4 m# ] t* F ?7 X, t+ t
>> Compilation failure
4 f3 G4 i" A. ywarning #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.! b+ W3 u% R7 [" g9 j( g$ b
$ w) V; h5 c3 W undefined first referenced0 j0 D9 M- R L: g3 h, b. V. v8 n
symbol in file
/ m. |; P# d8 D: P/ p' k) ~ --------- ----------------
. \3 g2 X4 M+ n, q- A P+ n _PSCModuleControl ./main.obj |
|