1. shiftdt.cc(85) : error C2065: 'int32_t' : undeclared identifier
解决方案: 改为int32_T 就对了
2. resize.cc(99) : error C3861: 'round': identifier not found
resize.cc(70) : error C3861: 'bzero': identifier not found
解决方案: 添加 这两个函数的定义:
#define bzero(p, size) (void)memset((p), 0, (size))
inline double round(double d)
{
return floor(d+0.5);
}
3. qp_one_sparse.cc(2) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
解决方法:
去googlecode下载http://msinttypes.googlecode.com/files/msinttypes-r26.zip
解压后会得到三个文件,把inttypes.h和stdint.h放到vc的include目录就可以了。
我安装的是VS2008,安装到的默认位置,因此include的路径就是:
C:\Program Files\Microsoft Visual Studio 9.0\VC\include
通过以上方法,成功解决编译错误。
经验的累积,水滴石穿,要从miss bug 变成 miss debug!!