|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
/ b( d$ q* `1 U0 x PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);, E5 F& K6 }3 T( H/ R2 a$ d+ v
! a. ]+ t) c& z6 ]- t O( Q报错如下:
, u$ U% A( T! n3 y3 A'Invoking: C6000 Linker'' f- U2 L; d" d: e" ?
"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" ( v6 m; l: s3 V1 |/ j, W7 h+ Y
<Linking>5 m- o) f3 K- e0 I# s
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.1 }& S1 ]8 z0 X# J; l2 L: m
5 H7 y3 f3 ^6 N5 f
>> Compilation failure+ Z2 P6 J' Q/ c- C* l' \
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." c u0 Q- j- u: n2 Q
( t) f) s- \! y0 ?
undefined first referenced
9 |; U/ `) J9 T# u9 H4 }2 \/ C symbol in file , f- j9 o$ B/ X* w e3 R
--------- ----------------# d* o( H/ V" j2 \3 ~2 {$ x- V
_PSCModuleControl ./main.obj |
|