|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决* c! I4 g+ U( c" `1 w4 e- i
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);& ~6 J2 W' Z$ p" P. g
) X( @# w9 C ~ L. ^% b3 Z: a) ]/ [
报错如下:
8 h0 o8 r/ n6 K9 Q'Invoking: C6000 Linker'
& c- T m: T7 \" E: J"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"
1 N7 C# ?! e) a9 W( |' j! U<Linking>8 \& S+ a$ K" \5 y7 W
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.
3 L' e6 N& u1 Z+ c- h% l
, Z2 D$ b% n) ^4 J! b& X>> Compilation failure, t5 p. O3 S6 j2 O. q& _
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.
' w5 R1 ~6 [/ ~2 X" S& H8 M6 {, n
' j$ Z! `# b+ F, v! z! F* i% w undefined first referenced! ?. b5 q9 o4 U, D
symbol in file
8 s, K. J! s! L" x" f --------- ----------------9 S% v5 T% F1 o( \# U
_PSCModuleControl ./main.obj |
|