今天运行代码过程中解决的几个问题

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!!



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值