|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
: K {) n( u* D# d PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);
4 Z" W" J+ S4 W( D# }, k2 f6 N2 v$ O! O2 Z3 g( `9 l
报错如下:
) `! _; F# j; a' k'Invoking: C6000 Linker'
. {2 f' G m8 U# Q. `( z; b) V"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" 1 @3 U% D7 ^ x0 ~
<Linking>
: S# d9 S r( y$ |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.
8 d1 p& [4 |1 p, E" j6 c, t) \
* v( b# I! _6 N4 p$ d, A8 p5 A>> Compilation failure
& e6 l0 _7 i* U, _0 s3 N$ n) S. G' @) [5 @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 ^7 U4 B0 H* u6 z
' b# m0 Y3 v) s& [, n
undefined first referenced, ^8 u# t1 N% Y4 q6 y* b
symbol in file & M3 N7 Z4 _, v# k' e
--------- ----------------
( m: B3 ?8 Y- B: J$ R _PSCModuleControl ./main.obj |
|