Chinaunix首页 | 论坛 | 博客
  • 博客访问: 192585
  • 博文数量: 44
  • 博客积分: 1515
  • 博客等级: 上尉
  • 技术积分: 480
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-06 16:39
文章分类

全部博文(44)

文章存档

2013年(3)

2012年(2)

2011年(2)

2009年(20)

2008年(17)

我的朋友

分类: WINDOWS

2009-10-13 10:29:02

What's wrong with VS 2005?
when I using math.h in my cpp file, my code like this:


#include
#include
#include
#include
#include"ratecontrol.h"


there are 3 errors:
c:\program files\microsoft visual studio 8\vc\include\math.h(423) : error C2733: second C linkage of overloaded function 'sqrt' not allowed
1>        c:\program files\microsoft visual studio 8\vc\include\math.h(422) : see declaration of 'sqrt'
1>c:\program files\microsoft visual studio 8\vc\include\math.h(534) : error C2373: 'sqrt' : redefinition; different type modifiers
1>        c:\program files\microsoft visual studio 8\vc\include\math.h(422) : see declaration of 'sqrt'
1>c:\program files\microsoft visual studio 8\vc\include\math.h(534) : error C2264: 'sqrt' : error in function definition or declaration; function not called

But when I change the order of include file, like this :

#include
#include
#include
#include
#include"ratecontrol.h"

It's OK! 

What's wrong?

阅读(2367) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~