|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
9 X$ J; o: m9 a- `& K: ^ PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
/ L( \; M, H/ R4 G% `) @8 q' Q9 `, i& C3 m6 ?: ]1 W1 O
报错如下:
9 C6 ]8 `1 r3 ?: D; u8 x* C'Invoking: C6000 Linker'% j4 J+ T. ]- k
"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"
( C) n! U) S* s5 A. s( C<Linking>
: ]! o* ]7 w8 B+ T& y3 g3 S, uwarning #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./ w, d& m% Y. A( Z$ u
9 S7 K; o; _" z7 W3 j" X$ A>> Compilation failure
; e: ~" ?. l* s7 n3 ]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.
* Y* ~& U9 K+ l- p3 U3 I
8 e) a0 S; A H1 @. l undefined first referenced
: k( q9 @+ {# [; o9 P symbol in file 4 N$ [$ n) Y: `5 C- j) o: E
--------- ----------------
6 X9 ~/ Y# T- f& k _PSCModuleControl ./main.obj |
|