|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决- q& m0 @! c/ }& l; ?' } l
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
: c& [4 q$ m: Q+ M4 T n- H0 k, j, e& D2 ]
报错如下:0 N ] y- s e& [$ M( t5 I& v8 I
'Invoking: C6000 Linker'
( S2 P2 [9 V5 h( p. m"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" # E* L r+ r3 K* X5 q
<Linking>2 h7 G7 `7 ^" l4 V$ M5 T) T
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.4 D Y* W& g! y- ~9 q' T4 Y2 y( Y
+ I. r, {6 U! ~8 w
>> Compilation failure
4 W" m) I* R2 R+ Q( z' [* {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.
8 D; @) D. a# A+ R$ }! ^1 V) j
& t* H7 @ {& I- {& ` undefined first referenced
9 n c# p3 w- X- _ symbol in file : C/ ?6 `* ]9 W& J3 m2 ?: _' T
--------- ----------------9 U& ~1 u8 b) p1 _
_PSCModuleControl ./main.obj |
|