|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
* y$ X, k9 Y1 C0 |& ~2 k7 s2 \+ C PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
! |( a% l" n/ g a' N1 r! @! e& z8 s5 p
报错如下:% `0 Q: ~* a9 k( t, t! o: A
'Invoking: C6000 Linker'& t1 V8 z6 G$ n3 C7 q1 o) l
"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" - V9 J% T# K* ^' v
<Linking>! h. r# |* x* w+ w# j1 @
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.' M8 F0 J5 C/ y
; K, K4 V( H( D% e- [
>> Compilation failure5 v" u% J! l5 c% K% H6 c
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. e, c; H, ?9 B
; Q1 t. R! p7 t5 m undefined first referenced
: q! I; v( I/ _# C% v/ Q+ k symbol in file
0 n4 S; f/ T" l$ o --------- ----------------
4 [) C$ a6 r( K' n) n5 C- {- T _PSCModuleControl ./main.obj |
|