学习ICE笔记1:遇到错误,no RTTI-data Received.

解决方法:

需要打开Project ->C++>C++ Language->Enable Run-time Type Infomation(RTTI)

其余需要的工程设定:

在Project ->C++>Preprocessor

需要设置附加包含目录:

C:/Ice-3.2.0-VC60/include,C:/Ice-3.2.0-VC60/include/stlport,.  (注意还有个点)

Link需要加上连接库

iced.lib iceutild.lib

Link的Input选项里加上

附加库目录 C:/Ice-3.2.0-VC60/lib

在资源选项里,.ice文件需要设置Custom Build

C:/Ice-3.2.0-VC60/bin/slice2cpp.exe    -I C:/Ice-3.2.0-VC60/slice   ../inc/LoveZz.ice  --output-dir .

Outputs

LoveZz.h
LoveZz.cpp

在stdafx.h里最好加上这一句话,以免出现STL的很多错误

#define WIN32_LEAN_AND_MEAN        // Exclude rarely-used stuff from Windows headers
#if !defined(NDEBUG) && !defined(_STLP_DEBUG)
#   define _STLP_DEBUG
#endif

还有自动生成的CPP文件LoveZz需要预编译头。在预编译头里选择

Automatic use of precompiled headers Though header:stdafx.h

大概就这些吧,都是从Demo的工程里找的。

Rebuild started: Project: RS485-4G-DTU_HAL *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\keil_v5\ARM\ARMCC\Bin' Rebuild target 'RS485-4G-DTU_HAL' compiling stm32f1xx_it.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. assembling startup_stm32f103xe.s... compiling main.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling stm32f1xx_hal_rcc.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling usart.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling stm32f1xx_hal_msp.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling gpio.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling stm32f1xx_hal_gpio.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling stm32f1xx_hal_gpio_ex.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling dma.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling stm32f1xx_hal_cortex.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling stm32f1xx_hal.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling stm32f1xx_hal_dma.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling stm32f1xx_hal_uart.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling stm32f1xx_hal_rcc_ex.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling stm32f1xx_hal_pwr.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling stm32f1xx_hal_flash_ex.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling stm32f1xx_hal_flash.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling stm32f1xx_hal_exti.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. compiling system_stm32f1xx.c... Fatal error: C3900U: Unrecognized option '-no-multibyte-chars'. "RS485-4G-DTU_HAL\RS485-4G-DTU_HAL.axf" - 19 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:01
最新发布
08-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值