|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决# {( r1 o/ W; m- m! n
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
( A2 }! R d% c' @/ @% r. |! |$ Q' P. O% _% g" i* D
报错如下:
, t: w8 A" ?3 @" {'Invoking: C6000 Linker'
M& K$ K* R, d# C- u- M" W"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" + N+ ~! |4 a6 Q$ P( ?2 [' ?, i5 `
<Linking>0 Y& o4 Y4 I* X) G; c0 R2 ^
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. x& [! N2 k2 X/ `7 D$ X7 H
4 I `8 ^/ A9 \# T6 h
>> Compilation failure; u7 _6 Z, p$ R' p6 U$ `7 \
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.9 @! l0 _5 W* L, n! |7 f
* u- u4 x( n) v6 k! h2 X
undefined first referenced% I0 B; n6 `' f9 B7 i: I
symbol in file + `, w+ K- H/ N% L1 \% W& A
--------- ----------------
. `7 g# [" E' Q# a0 ~- a _PSCModuleControl ./main.obj |
|