|
|||||||||||
| 技術交流 | 電路欣賞 | 工控天地 | 數字廣電 | 通信技術 | 電源技術 | 測控之家 | EMC技術 | ARM技術 | EDA技術 | PCB技術 | 嵌入式系統 驅動編程 | 集成電路 | 器件替換 | 模擬技術 | 新手園地 | 單 片 機 | DSP技術 | MCU技術 | IC 設計 | IC 產業(yè) | CAN-bus/DeviceNe |
這樣的L6200E錯誤該如何解決 |
| 作者:socitiac 欄目:ARM技術 |
在編譯工程文件中,顯示如下的錯誤信息 Error: L6200E: Symbol _sys_close multiply defined (by sys_io.o and target.0) 還有_sys_write,_sys_read等幾個,這幾個可以在tagart.c中解決(增加該部分內容目的是什么呢?); 但是對這個錯誤 Error: L6200E: Symbol __semihosting_swi_guard multiply defined (by use_semi.o and use_no_semi.o),這個錯誤該如何消除呢,因為我找不到這兩個文件的源文件呀! 在網上查了一下,可以通過如下措施解決,但還是不行呀,各位誰遇到過該現象嗎,如何解決的呀,也請周工幫看看呀 #pragma import(__use_no_semihosting_swi) |
| 2樓: | >>參與討論 |
| 作者: gyf2000 于 2005/5/6 15:29:00 發(fā)布:
re Symbol __semihosting_swi_guard multiply defined (by use_semi.o and use_no_semi.o). This error is reported when functions that use semihosting SWIs are linked in from the C library, in the presence of the __use_no_semihosting_swi guard. See the ADS 1.2 Compilers and Libraries Guide, section 4.2.2, "Building an application for a nonsemihosted environment" and ADS 1.2 Developer Guide, Section 6.10.1, "LINKer error __semihosting_swi_guard". To resolve this, you must provide your own implementations of these C library functions. The ADS 1.2 \Examples\embedded directory contains examples of how to re-implement some of the more common SWI-using functions - see the file retarget.c. To identify which SWI-using functions are being linked-in from the C libraries: 1. LINK with 'armlink -verbose -errors err.txt' 2. Search err.txt for occurrences of '__I_use_semihosting_swi' For example: : Loading member sys_exit.o from c_a__un.l. reference : __I_use_semihosting_swi definition: _sys_exit : This shows that the SWI-using function _sys_exit is being linked-in from the C library. To prevent this, you will need to provide your own implementation of this function. |
|
|
|
| 免費注冊為維庫電子開發(fā)網會員,參與電子工程師社區(qū)討論,點此進入 |
Copyright © 1998-2006 m.58mhw.cn 浙ICP證030469號 |