|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决0 W# U% A: h$ ?, J0 K
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE); G5 S5 q. ]& u2 I. h# A" }
" ~3 l( k4 H* J& q7 F# g
报错如下:
5 a, N3 Q8 M3 g2 n, q' _! K: p: N'Invoking: C6000 Linker'
" E8 x2 ~7 o$ G. q" T& x. U& j3 ?"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" : i; I9 m. o. _& x# R2 j
<Linking>- Y& \% G" n0 U/ @: q0 D
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. X7 a! q7 @3 O9 q
2 y( S$ h# W# a
>> Compilation failure0 s/ y& W& Y9 N0 _, a
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.
1 h" ^9 \: J1 m% c$ U
$ B- K3 \, |- p" k undefined first referenced# W' a8 M `" x$ _/ G; |: x
symbol in file 1 V- Q# K" M* }1 P$ g$ r8 L
--------- ----------------
2 Z# O7 s( N8 N3 j2 b _PSCModuleControl ./main.obj |
|