|
|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
% Z" P! ^/ r$ S! o" |3 F# e PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);/ h( Z5 w5 v+ j& q# r$ U
* R( _- u d3 p
报错如下:
' o9 Q7 K) a( K1 O9 D N'Invoking: C6000 Linker'2 b: p9 g( R6 \5 K
"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"
$ n& m3 ?% S) O7 x: N<Linking>/ f/ u* b0 w" n8 Y! n& Z
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.
/ z9 r, m2 U% n
9 o- W( C! i* h8 X>> Compilation failure
: T* T; _3 l9 R8 m: ]* 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.0 T" ~& O2 J) O- Z9 _# P6 T$ S
$ M, u; X, R: H* e% ~4 u undefined first referenced
& \9 y9 ~; N3 v. P symbol in file * G* j" b5 K' O9 K" r- N+ z; Z
--------- ----------------4 }: t3 ^& r/ G+ c" ?
_PSCModuleControl ./main.obj |
|