|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
. ?& r W i5 `. [2 h8 `8 o PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
4 ^3 l2 i/ Y3 G% b3 o6 T/ e, y) Z9 k/ P0 h% A
报错如下:
' n- A9 O. G2 n+ p) I; w/ ?* \'Invoking: C6000 Linker'
1 |# V4 n- U/ g9 r) o9 {/ r# v"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" 2 k/ f& A9 y) E# l5 j- p# h
<Linking>
6 @. G% |- @! O3 Dwarning #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.
/ w2 p5 e5 W. \$ f: v5 k
# I/ T" W9 \* y8 k6 B>> Compilation failure1 i* `" m% w& {! n# I" S9 ^
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./ u' S; ?# H; l" [
$ ]; m6 p [ }) ]: x! }0 t undefined first referenced& H& a* ?+ F. e5 {, P
symbol in file ( R3 T1 v2 w3 }' b8 k/ h( f
--------- ----------------
) w% F. S7 e1 a/ ], {, B* M _PSCModuleControl ./main.obj |
|