|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
7 m, l2 e- u% g& [. O# F PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
' x0 v) N% v4 m8 Q
9 ^9 E7 p9 k7 R+ C. L7 e报错如下:
! o1 T" _, @# k; ~6 J'Invoking: C6000 Linker'* n; P$ ^! e8 J! P3 ^! Z
"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"
; ~; L, f' S' {* _$ ~& ?7 U<Linking>
" D7 Q* ^# P7 ]) B8 t0 r- F9 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.8 v6 y& g( g _0 c
$ ~( ]$ T4 q4 {! T2 d* Y, T! r>> Compilation failure$ S% f9 m: X' e1 l$ B8 n! \
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.
9 S) a7 y3 _6 _* i" W( q4 e& n" _
undefined first referenced) ?9 E5 R' ?! z9 [7 c( J
symbol in file ! G" i0 `0 t1 y6 m( Z
--------- ----------------0 e+ x O# F- l- ?$ K8 ]
_PSCModuleControl ./main.obj |
|