【发布时间】:2015-05-09 00:10:24
【问题描述】:
我的代码编译得很好,直到最近我开始使用一对用于 stl 映射,然后它们出现了一些问题。
每次我编译任何之前编译得很好的文件时,我都会收到错误
无论其功能如何,每个文件都会出现相同的错误。它是一些内部错误。 每次我尝试编译代码时,这个文件 stl_functions.h 都会自动打开。
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include\c++\bits\stl_function.h|143|error: declaration of 'class _Tp'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include\c++\bits\stl_function.h|134|error: shadows template parm 'class _Tp'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
我得到了大约 50 个重复错误,但我只展示了几个。 我到处搜索这种错误,但似乎找不到解决方案。 任何帮助将不胜感激。
【问题讨论】:
-
没有看到代码的人应该如何提供帮助?
-
您是否偶然尝试编辑标准标题?重新安装 MinGW/Code::Blocks,它应该可以再次工作。
-
好的,我会重新安装看看它是否有效。
-
@tux3 你能把文件给我,这样我就不用重新安装整个东西了。
-
@user3692108 我没有,我在 Linux 上。另外,我不知道您使用的是哪个版本的 MinGW。
标签: c++ c c++11 gcc codeblocks