|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
4 h4 r, w" H. ^3 d0 v0 n I PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
' w9 E5 k% x' [6 K2 s
. g6 L' e, w2 L$ c: }5 S报错如下:
5 S) j" ]0 B* k. ]& L* T& @'Invoking: C6000 Linker'
F2 \/ t/ s0 x' J# @# l# B$ J, R# H"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" ! z) W+ z5 O4 I% y' |$ x& B( a2 b
<Linking>2 j: d9 s3 a$ Q* {, }
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.
0 d6 R5 E2 k4 W4 i# n4 u% d1 Q5 d4 V; x5 n* T
>> Compilation failure r! s, T- z, E7 t0 @
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.! V8 [6 g4 }# g7 ^- _8 g$ I
& t3 v1 y* {' Z( l' C" S+ I undefined first referenced
9 N& B& J G! ~2 _* a symbol in file " @9 S, R4 P8 P) L' S
--------- ----------------
& y- h7 i! r2 J( j5 ?. [! }4 S L _PSCModuleControl ./main.obj |
|