|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决+ C" T/ F: V$ m' u" U6 r, h
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
. W4 q2 [% v) l/ c: b' T- Z+ p8 a0 ]0 t% S5 c5 ?4 x" e/ i
报错如下:
: C1 j* \; F; ?0 @) ['Invoking: C6000 Linker'
* w1 \$ d9 J1 B"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"
, Q* q" { \4 I# T<Linking>
% B# K2 W6 O; L9 j* {6 zwarning #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.
5 `) l) N8 A; L7 p8 Q8 [& L/ B# t8 h7 _2 q
>> Compilation failure/ g9 [) o1 V3 r
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.
7 v$ @, X0 F4 |/ F4 Y/ y0 s$ y# Q) h' Y3 R7 G/ H9 `
undefined first referenced- Z N! E- @% q6 s" ? S
symbol in file
. o5 ^/ E* ]" ?+ P, S ]/ s3 B3 K --------- ----------------
% ^" h5 d. ]9 D0 m$ I, l3 M: { _PSCModuleControl ./main.obj |
|