d:\program files\microsoft visual studio\vc98\include\math.h(514) : error C2894: templates cannot be
来源:互联网 发布:淘宝会员修改身份认证 编辑:程序博客网 时间:2024/04/28 23:45
出错:d:\program files\microsoft visual studio\vc98\include\math.h(514) : error C2894: templates cannot be declared to have 'C' linkage
打开d:\program files\microsoft visual studio\vc98\include\math.h
出错点位:
##template<class _Ty> inline _Ty _Pow_int(_Ty _X, int _Y) {unsigned int _N; if (_Y >= 0) _N = _Y; else _N = -_Y; for (_Ty _Z = _Ty(1); ; _X *= _X) {if ((_N & 1) != 0) _Z *= _X; if ((_N >>= 1) == 0) return (_Y < 0 ? _Ty(1) / _Z : _Z); }}
发现直接把这段代码屏蔽就OK了
所以只需
// template<class _Ty> inline// _Ty _Pow_int(_Ty _X, int _Y)// {unsigned int _N;// if (_Y >= 0)// _N = _Y;// else// _N = -_Y;// for (_Ty _Z = _Ty(1); ; _X *= _X)// {if ((_N & 1) != 0)// _Z *= _X;// if ((_N >>= 1) == 0)// return (_Y < 0 ? _Ty(1) / _Z : _Z); }}
- d:\program files\microsoft visual studio\vc98\include\math.h(514) : error C2894: templates cannot be
- C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\transact.h(226) : error C2059: syntax error
- C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\transact.h(226) : error C2059: syntax error
- /program files/microsoft visual studio/vc98/include/crtdbg.h(536) : error C2833: 'operator DEBUG_NEW ' is no
- c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189:
- LINK : fatal error LNK1158: cannot run "D:\Program Files\Microsoft Visual Studio\VC98\BIN\cvtres.exe
- Cannot open source file: 'D:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPMOD
- Cannot open source file: 'D:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPMODUL.CPP': No s
- Cannot open source file: 'C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPMODUL.CPP': No
- Microsoft Visual Studio6.0\VC98\INCLUDE\userenv.h(15) : fatal error C1083: Cannot open include file:
- Cannot open source file: 'C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\APPMODUL.CPP': No su
- 1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(24) : fatal error C1189: #err
- 1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(24) : fatal error C1189: #err
- error C2894: templates cannot be declared to have 'C' linkage
- error C2894: templates cannot be declared to have 'C' linkage
- error C2894: templates cannot be declared to have 'C' linkage
- VS2008 1>c:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(24) : fatal erro
- c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\Microsoft Visual Studio\VC98\MFC\SRC
- gpl pvdriver for windows 下载地址
- 你吃早饭了吗?
- odex转dex和重新打包apk
- 字节对齐详解
- 解析C语言中的sizeof
- d:\program files\microsoft visual studio\vc98\include\math.h(514) : error C2894: templates cannot be
- 爱情
- ORA-00257错误(归档空间不够)
- c++程序设计实验报告(15-1)
- jQuery源码分析 :表单序列化动作
- 打开chm文件并进行定位
- 为什么说设计是一种积淀:9个苹果应用图标背后的故事
- 不同3G模块移植
- Android 游走字幕