|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决! q( \& d/ i, E( I! Z9 J) O
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
9 q" i; A' _$ t2 f# s- |! o& ]8 c* R# n$ L1 P3 P
报错如下:
9 W1 g) M% I1 I8 F% }: ^9 S1 f'Invoking: C6000 Linker'
9 f* _# `6 D2 l! x$ \8 `"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" . [/ G& J# {* G) n. s X1 w: a }$ r) @
<Linking>: t% u. d, ^& j! n2 k
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.. @$ H7 A H* x0 G$ h/ H, Z
: P9 R- { t4 b9 Y) {9 i$ h>> Compilation failure
4 S5 f' @& z# w+ B3 Cwarning #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.
" X0 I3 [5 Y( D- `) |+ [. ?3 n
4 d" z' W$ W5 | ] undefined first referenced
8 \8 J4 w; i/ x8 c symbol in file , U9 `2 ^2 ~2 N3 X; V
--------- ----------------
& d- x6 O6 C% S9 C+ F; R; G* R _PSCModuleControl ./main.obj |
|