|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
' _/ B# I7 Z, `- S" A+ J/ ]3 \ PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);8 ^: o+ b$ {. b1 F
3 N9 S: t) z8 O ^- k5 G$ N报错如下:
6 F3 A+ i! t9 i'Invoking: C6000 Linker'
0 H1 d$ x& m$ U t2 i 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" 3 n$ j! |$ `/ K/ x4 b- q6 O
<Linking>, u1 B$ o2 e- Y
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 X; Y8 A( {# Q' G
" ?" j% _% t N& z" L
>> Compilation failure
+ Y, {" U3 d0 ]/ }# }& \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 ~% q( S9 T+ F4 i) n
5 U9 V* H' q! l4 N5 T7 P% m; g
undefined first referenced" h5 q( z+ ?; P9 ~
symbol in file
8 ^0 s% f4 M2 K8 X( c --------- ----------------0 F# S- j8 h: _7 P7 ^ S
_PSCModuleControl ./main.obj |
|