|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
5 D6 `3 D* O9 J4 ` B: G3 J PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);/ T2 A/ J9 U' c) R9 c- p% X, @! y
3 `! ?. W- ~+ N0 S' |7 S报错如下:
, S4 [, K4 R: g8 f9 b'Invoking: C6000 Linker'
5 }+ ?+ J4 H7 H* t% s* y% \' @"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 ?% L' I, K9 N' O+ X) @
<Linking>
7 u* O+ w4 H1 @$ k2 Q" }9 s( q, 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.9 D7 F4 u% [' \: t
' e0 {/ x! O+ \, A% H8 Y
>> Compilation failure
4 s7 N! t) [) u. U& R# M: Swarning #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 j- {, d: g D1 _: y1 i( B, q: o- ]$ } d8 R
undefined first referenced
4 s" s# j' G" `# ` symbol in file
1 k' K( `8 p/ t( T --------- ----------------
& `% K$ R" ?" w& }$ k _PSCModuleControl ./main.obj |
|