我在Code :: Blocks中调试时遇到奇怪的错误,并且它们显示为我声明非常量大小的数组。问题涉及在调试器控制台中逐个显示错误10次,然后在退出程序之前再显示7个错误。他们只会在使用"进入"来自调试器的命令。
#include <iostream>
using namespace std;
int main()
{
int arrSize = 3; // can be anything, any value will display the same error message exactly 10 times!
int arr[arrSize];
// here I get exactly 10 errors from debugger console while doing "step into" command
// and it is showing me those errors until display it 10 times (one by one), then goes further..
cout << "program finished";
return 0; // and seven different errors here before exiting the program
}
来自顶行的错误消息(当声明数组时),大约10个类似的错误在这里..
Cannot open file: ../../../../../src/gcc-4.8.1/libgcc/config/i386/cygwin.S
At ../../../../../src/gcc-4.8.1/libgcc/config/i386/cygwin.S:168 (here it changes S value while displaying similar errors)
[debug]> info locals
[debug]No locals.
[debug]>>>>>>cb_gdb:
[debug]> info args
[debug]No symbol table info available.
[debug]>>>>>>cb_gdb:
[debug]> bt 30
[debug]#0 __chkstk_ms () at ../../../../../src/gcc-4.8.1/libgcc/config/i386/cygwin.S:168
[debug]#1 0x004013c1 in main () at C:\Users\******\Desktop\seepp\aaa\main.cpp:8
[debug]>>>>>>cb_gdb: