|
用CCS编程序 想使用以下函数,库连接报不识别, ELF与TI-COFF 不兼容 如何解决
0 e6 r% O+ [3 Y* H PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);8 Q9 S2 @0 o% k2 N5 H
! w5 R9 V( D5 W2 o
报错如下:
! L# y2 T' h T" ?'Invoking: C6000 Linker'
3 ], Y9 ~$ V6 p1 V- 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"
7 q% [7 R8 @+ O% C- x<Linking>3 d8 f2 w2 G* l/ ?/ v2 @
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.
: S1 J5 e' Z' `5 b
2 H- d/ H6 t* Y>> Compilation failure
* U- r1 D' A0 R1 S) {1 nwarning #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.
: \& S6 m* S$ P2 R& e" c$ f! v4 H- i3 F: P$ v' f4 R
undefined first referenced
: C n, ~5 ~/ O t. S8 V symbol in file 4 w6 x+ i8 A% j6 K( f
--------- ----------------
8 N5 n3 W6 f" S m! \' Q2 y _PSCModuleControl ./main.obj |
|