|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
( @" Y7 c8 r7 M6 z$ g. c PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
; ]. T" Q' j! |1 n3 B
( r3 }6 U+ J3 Q8 ^报错如下:
4 S7 s Z0 ]& R3 @3 H'Invoking: C6000 Linker'6 f, L. ~2 F& s+ o8 k4 s
"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"
8 m: M! ^! |2 t/ K, L7 D2 r<Linking>* `5 L" _( G1 s6 [" a+ A# Y- m+ ?
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.
, C {6 c9 n6 l5 v' e* R
6 M" V6 Z# a) b' |>> Compilation failure
$ P S7 O0 m2 P7 i6 O2 Lwarning #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.
Z% Z$ P, l( a
6 r: t+ }8 ~' i3 c6 }3 F undefined first referenced- e4 n4 S0 b% I
symbol in file
2 l. A( m4 p+ B5 K8 [- z! V, Q4 ?9 U --------- ----------------% ?/ s/ P7 L) u9 u/ T
_PSCModuleControl ./main.obj |
|