|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决7 q* U7 T1 _% @: V+ H: W$ s/ Y
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);* d* p! T' B, W: b! N7 H
" v6 z& ~- b- E5 P. R报错如下:! d9 {7 P/ S% |1 m
'Invoking: C6000 Linker'
7 f8 U, K) h \7 w* d# M- x1 q' K"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 _1 O! S9 u0 s3 i' K<Linking>
6 Q4 T5 Y$ J1 Y! rwarning #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.
* }# K5 o q* ?; @% g. ^- j! _2 i7 Y: M8 O3 b% T9 c: C G( z
>> Compilation failure
$ _9 h: b8 `0 e. d1 r% c7 Q6 Iwarning #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.
& H/ U5 \$ f A# ~9 t1 ?: T* |4 l( a2 ^
undefined first referenced
) O9 g9 r: W( `% w4 J% k9 a4 u+ a symbol in file
3 H: A# N9 g$ A% x& F6 y, E --------- ----------------4 b: F9 ]. B5 I; u
_PSCModuleControl ./main.obj |
|