|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决, g1 E" R) o3 @
PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);- b! v3 j% Y% G. N+ l
, V5 b& \& S6 L* e4 o$ Q
报错如下:
/ `1 B" e) m/ a! _$ P'Invoking: C6000 Linker'
6 L; N7 J2 I3 J Y/ m"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"
8 t# Z) R/ J: D' l<Linking>
# Q7 ^. E* l5 m2 e5 O+ ~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.% N( n: T5 u8 \% q' i' j
- x y. |' D+ D+ w( L
>> Compilation failure! I, ^5 [% f9 W9 G. q3 W2 L" ? N
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.
/ R7 d8 }* ^! [( W5 f. P9 R: D) S3 {8 c( `, N* N
undefined first referenced
$ K2 f" R6 {. v& d" A symbol in file
( J, N8 h! S' t7 X --------- ----------------" c1 U7 Q" M# ?0 i5 s8 A
_PSCModuleControl ./main.obj |
|