当前位置:   article > 正文

limits 错误:宏“min”需要 2 个参数,但只给出了 1 个_应有 2 个参数,但获得 1 个。

应有 2 个参数,但获得 1 个。

出现这个错误的同时,还伴随着一大堆的报错:

/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:282:22: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:284:22: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:312:23: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:314:23: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:366:23: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:368:23: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:417:30: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:419:30: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:468:32: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:470:32: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:519:26: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:521:26: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:571:27: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:573:27: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:622:27: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:624:27: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:674:24: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:676:24: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:725:33: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:727:33: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:776:22: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:778:22: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:827:31: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:829:31: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:878:23: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:880:23: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:929:32: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:931:32: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:980:28: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:982:28: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1031:37: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1033:37: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1082:24: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1084:24: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1139:25: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1141:25: 错误:宏“max”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1196:30: 错误:宏“min”需要 2 个参数,但只给出了 1 个
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1198:30: 错误:宏“max”需要 2 个参数,但只给出了 1 个

/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:282: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:284: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:284: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:287: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:312: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:314: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:314: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:317: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:366: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:368: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:368: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:371: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:417: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:419: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:419: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:422: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:468: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:470: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:470: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:473: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:519: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:521: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:521: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:524: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:571: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:573: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:573: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:576: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:622: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:624: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:624: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:627: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:674: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:676: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:676: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:679: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:725: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:727: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:727: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:730: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:776: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:778: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:778: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:781: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:827: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:829: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:829: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:832: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:878: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:880: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:880: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:883: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:929: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:931: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:931: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:934: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:980: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:982: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:982: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:985: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1031: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1033: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1033: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1036: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1082: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1084: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1084: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1087: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1139: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1141: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1141: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1144: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1196: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1198: 错误:expected ‘;’ before ‘static’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1198: 错误:expected ‘;’ before ‘throw’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/limits:1201: 错误:expected ‘;’ before ‘static’


错误现象很吓人,但其实解决方案很简单,主要是自己定义的min和max宏定义,跟algorithm.h里面的min和max冲突导致的。只需要删掉自己定义的就行了。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/836655
推荐阅读
相关标签
  

闽ICP备14008679号