gpt4 book ai didi

c++ - xmath.h 是做什么用的?

转载 作者:太空宇宙 更新时间:2023-11-04 13:21:34 26 4
gpt4 key购买 nike

在尝试构建一些较旧的代码(可能是 2001-2005 年左右)时,我遇到了以下条件包括:

#if _MSC_VER >= 1300
#include <xmath.h>
#endif

我目前正在使用 Visual Studio 2012 进行构建:

Microsoft (R) C/C++ Optimizing Compiler Version 17.00.61030 for x86

这给出了一个 fatal error 包括:

fatal error C1083: Cannot open include file: 'xmath.h': No such file or directory

所以对我来说,这看起来像是从 _MSC_VER 1300 (MSVC++ 7.0) 开始支持的非标准 Microsoft 特定 header ,但目前不再受支持。我的问题是:

  1. 我的假设是否正确?如果"is",从哪个版本的 MSVC++ 开始不再支持此 header ?

  2. 包含xmath.h header 的目的是什么?如果没有它,我的代码编译得很好,所以我可以把它去掉吗?

  3. xmath.h 是否在某处记录?我似乎无法使用简单的 Google 搜索找到任何像样的文档。

最佳答案

xmath.h 是 Microsoft 标准 C++ 库的内部实现的一部分。您的代码没有理由使用它。如果你的代码在没有它的情况下编译得很好,转储它。

关于c++ - xmath.h 是做什么用的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35081679/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com