步骤:
1.安装Ice-3.3.1-ThirdParty-VC90
2.安装Ice-3.3.1-VC90
3.设置path环境变量:
添加:
C:/Ice-3.3.1-VC90/bin;C:/Ice-3.3.1-VC90/lib;C:/Ice-3.3.1-ThirdParty-VC90/bin;C:/Ice-3.3.1-ThirdParty-VC90/lib
4.vc options中设置目录
include files:
添加:C:/Ice-3.3.1-ThirdParty-VC90/INCLUDE到第一行
然后添加: C:/Ice-3.3.1-VC90/INCLUDE
.(在此项中填入一个点".",表示根目录,不然不能include<...ice.h>)
library files:
添加: C:/Ice-3.3.1-ThirdParty-VC90/LIB到第一行
添加: C:/Ice-3.3.1-VC90/LIB
5.
在vc中Project Settings >> C/C++ >> Code Generation >> Runtime Library:Multi-threaded Debug DLL(/MDd)
6.
Project Settings >> C/C++ >> Language >> Enable Run-Time Type Info:Yes
7.
Project Settings >> Link >> Input>> Additional Dependencies: "iced.lib"和"iceutild.lib"
或者:
#ifdef _DEBUG
#pragma comment(lib, "iced.lib")
#pragma comment(lib, "iceutild.lib")
#else
#pragma comment(lib, " ice.lib ")
#pragma comment(lib, " iceutil.lib ")
#endif