|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决5 S8 i. Q/ @& ^5 L. _2 m8 W
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
% d+ |, u- J9 D* a- Y p8 o" b9 _+ ^; ^# y* ^
报错如下:
) ^0 S3 U' e! i5 I, U3 L'Invoking: C6000 Linker'6 {* S$ S/ m+ y- H l( H# 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" & A; R( X. k% m( M
<Linking>
; I( v; b0 y6 C. 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.
2 u$ [3 v8 A6 N: D: n, t+ l+ I7 P8 r3 ^" K' r& l% c
>> Compilation failure
' J2 q, z8 v: t4 G; 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. K! F( J4 Z1 V( `# f9 g0 \* D1 s
/ T) T9 {/ U6 N2 x; C* Y8 v' g1 V, x a
undefined first referenced
4 R6 N3 H! Q( ~3 P" Q. z$ i symbol in file , {# c: c) v/ X
--------- ----------------; R i* Z+ h' ]5 ?
_PSCModuleControl ./main.obj |
|