• error C3861: 'FreeAddrInfo': identifier not found, ...


        今天在编译MPC的时候,出现了这个错误提示,很奇怪,前段时间编译都是一次性通过的。G了一下,找到了一个解决办法:在项目属性中预处理器定义设“WINVER=0x0502”,查了一下MSDN:

    Minimum system required Macros to define
    Windows Server 2003 family _WIN32_WINNT>=0x0502
    Windows XP _WIN32_WINNT>=0x0501
    Windows 2000 _WIN32_WINNT>=0x0500
    Windows NT 4.0 _WIN32_WINNT>=0x0400
    Windows Me _WIN32_WINDOWS=0x0490
    Windows 98 _WIN32_WINDOWS>=0x0410
    Internet Explorer 6.0 _WIN32_IE>=0x0600
    Internet Explorer 5.01, 5.5 _WIN32_IE>=0x0501
    Internet Explorer 5.0, 5.0a, 5.0b _WIN32_IE>=0x0500
    Internet Explorer 4.01 _WIN32_IE>=0x0401
    Internet Explorer 4.0 _WIN32_IE>=0x0400
    Internet Explorer 3.0, 3.01, 3.02 _WIN32_IE>=0x0300

    也就是说假定当前的环境为Windows 2003,上次编译通过的确也是在Windows 2003下,现在的环境是Windows 2000 SP4,那在执行的时候会不会出问题呢?不知道,如果碰到了再说吧。
  • 相关阅读:
    Spring框架概念
    git stash 用法总结和注意点
    Java虚拟机:对象创建过程与类加载机制、双亲委派模型
    办公软件技巧
    Zookeeper到底是干嘛的
    ANdroid Studio下载
    node.js网络(net)
    显示日期
    打包apk

  • 原文地址:https://www.cnblogs.com/s5689412/p/134131.html
Copyright © 2020-2023  润新知