|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
4 a- r/ o4 G! H/ Y1 ^! H- c. L0 i PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);, w! O$ D" j: J' B$ i0 p
3 {3 m# ~* G; M3 s+ q
报错如下:" |* h6 a4 H, k2 M3 ~* v& D! \
'Invoking: C6000 Linker'3 S* Y, D; _0 w" t8 H& F
"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" 9 ?% [! Q1 D0 O, S, ?
<Linking>
, I" m- k" } lwarning #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.: ~/ M( K6 J$ h9 F" P4 o+ M
( W. b/ R3 H7 ^8 ~. `>> Compilation failure
- X/ v- P2 Y* N& D# B7 k0 u( d% K! twarning #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.
, W; K' K I: \2 |' ]8 h2 ?
; B: F. b& ^2 V0 `$ E& S" n undefined first referenced+ p; |' i1 Y0 n3 m( C
symbol in file
G" W9 K, G A1 y F --------- ----------------
. b5 O* j3 B: R* z8 ] _PSCModuleControl ./main.obj |
|