| 
 | 
 
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决 
# U" P8 n6 V" e  Z  PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);5 N' E" p, j0 z 
9 _. m* r. s( r' J( u 
报错如下: 
  b  D# v4 @0 o9 a  r! q3 ?  R'Invoking: C6000 Linker'0 t6 J' w& y) m" h' 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"  
* P2 u# M, z3 M- w, D- }<Linking>5 t5 T/ O" {4 q2 @7 F 
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.# j2 M" u4 z: R# M/ K3 B 
, F! t/ e0 b6 c. Y# P+ `; ~& m8 f 
>> Compilation failure1 G$ M3 g# w) F. _1 @8 |$ 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.9 u* t3 w0 _5 j2 K8 U" u/ H* U 
 
# U! i9 r1 k! t! ?0 I3 `( a undefined         first referenced6 E4 P$ q3 Z0 w 
  symbol               in file     : `- h' q% @3 g% n$ f& G4 | 
 ---------         ----------------! Y  K" a" ?& {" v( @ 
 _PSCModuleControl ./main.obj       |   
 
 
 
 |