|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
9 H) `# h/ q. q5 h0 k' F PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
m4 F) N; e- p' `: A4 M
% K- d9 S, _6 n$ x6 E9 t报错如下:
" V7 A4 r& H1 ^" M T'Invoking: C6000 Linker'7 i7 s9 F R" H7 | q5 ~8 i
"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"
, w6 I$ _' T! g C* z; B<Linking>" X; t0 z" f5 N! A8 U
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.
7 q6 k- {" B9 z# L" _3 s' @8 b# z5 ^( w3 s I7 J( S3 A
>> Compilation failure* Q& b) r! }7 \% Z/ L | [
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.! ?4 r6 k+ S0 C8 D2 ?( W8 i" U/ w
; E4 v9 b5 v1 U5 e/ u/ Y
undefined first referenced
! c7 d' [2 Z# s9 x7 i symbol in file : W: c& {- n/ V! H9 p8 N6 T% N
--------- ----------------
+ x7 r& }- M1 Q _PSCModuleControl ./main.obj |
|