|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决; x) D& a$ S# m" Q( G$ y' a
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
- i9 S: r5 ]6 q: I7 A* V- m
2 P% G! v7 L9 b* D6 N报错如下:
/ B) D& B" E; {, u'Invoking: C6000 Linker'
4 |9 S1 z j8 ~1 j1 t1 m- b$ V Y; t8 c1 q"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" ( @$ ?+ w# D3 H% q; j
<Linking>, v! s* f$ g2 b5 `% A
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.
' Q \+ M. ^9 c* f- D! l e- c; Z4 Z- E1 ^) X
>> Compilation failure1 x" Z8 k1 n) h
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.5 F$ K1 T) G- D5 V* y" b6 Z1 O
' d+ q; u( P( @. |3 d undefined first referenced4 R9 O4 U0 _' E6 a- |" ?, {4 v* j
symbol in file
: d' g& B1 h0 U. Q, E. y. s4 f --------- ----------------
6 [2 r- t4 j! l2 m6 U _PSCModuleControl ./main.obj |
|