/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/algorithmfwd.h:353:41: 错误:宏“max”传递了 3 个参数,但只需要 2 个
在包含自 /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_algo.h:61 的文件中,
                 从 /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/algorithm:62,
                 从 /usr/local/include/boost/smart_ptr/shared_ptr.hpp:41,
                 从 /usr/local/include/boost/shared_ptr.hpp:17,
                 从 /usr/local/include/avro/Node.hh:26,
                 从 /usr/local/include/avro/ValidSchema.hh:23,
                 从 /usr/local/include/avro/Encoder.hh:27,
                 从 /root/pwz/HubeiAnquantingDns/build0007_20160125/dns_collect/dns_collect/src/memtofile/putresponsedeal.h:27,
                 从 /root/pwz/HubeiAnquantingDns/build0007_20160125/dns_collect/dns_collect/src/memtofile/memtofile.cpp:17:
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/algorithmfwd.h:353:41: 错误:宏“max”传递了 3 个参数,但只需要 2 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/algorithmfwd.h:364:41: 错误:宏“min”传递了 3 个参数,但只需要 2 个
在包含自 /usr/local/include/boost/limits.hpp:19 的文件中,
                 从 /usr/local/include/boost/format/internals.hpp:21,
                 从 /usr/local/include/boost/format.hpp:38,
                 从 /usr/local/include/avro/Exception.hh:24,
                 从 /usr/local/include/avro/Node.hh:28,
                 从 /usr/local/include/avro/ValidSchema.hh:23,
                 从 /usr/local/include/avro/Encoder.hh:27,
                 从 /root/pwz/HubeiAnquantingDns/build0007_20160125/dns_collect/dns_collect/src/memtofile/putresponsedeal.h:27,
                 从 /root/pwz/HubeiAnquantingDns/build0007_20160125/dns_collect/dns_collect/src/memtofile/memtofile.cpp:17:
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:282:22: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:284:22: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:312:23: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:314:23: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:366:23: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:368:23: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:417:30: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:419:30: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:468:32: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:470:32: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:519:26: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:521:26: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:674:24: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:676:24: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:725:33: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:727:33: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:776:22: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:778:22: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:827:31: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:829:31: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:878:23: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:880:23: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:929:32: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:931:32: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:980:28: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:982:28: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:1031:37: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:1033:37: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:1082:24: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:1084:24: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:1139:25: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:1141:25: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:1196:30: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/limits:1198:30: 错误:宏“max”需要 2 个参数,但只给出了 1 个
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/fstream:42,


使用到了boost库的sharp_ptr,编译报错

解决办法:

调换使用boost库头文件的位置,将include <boost/***.h>放在第一行,使其调用我们编写模块时,第一个include的文件就是boost库的头文件,即可解决编译问题。

不知道描述清楚了没。

希望能帮到大家!



Logo

更多推荐