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?
阅读(2388) | 评论(0) | 转发(0) |