gpt4 book ai didi

c++ - autoconf & C++ & 过时的头文件

转载 作者:塔克拉玛干 更新时间:2023-11-03 07:34:56 26 4
gpt4 key购买 nike

我在现代 C++ 中遇到的一些代码如下。当然,在现代 C++ 中有更好的表达方式。问题是,如何使用 automake 设置 CPP 宏进行条件化?

In file included from /usr/include/c++/4.4/ext/hash_map:60,
from grapes.hpp:54,
from broadmerger.hpp:22,
from broadmerger.cpp:16:
/usr/include/c++/4.4/backward/backward_warning.h:28: error: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.

最佳答案

libstdc++ 手册中有一节是关于这个主题的 ("Extension headers hash_map, hash_set moved to ext or backwards")

关于c++ - autoconf & C++ & 过时的头文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6311979/

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