(gdb) Exception condition detected on fd 0

I have a very simple C++ program:

#include <iostream>
using namespace std;

int main(){
  int i = 0;
  cout << "Hello world!" << endl;
  i++;
}

When I compile + link with debug using:

---jGRASP exec: C:MinGWbing++.exe -g -o hello-world-debug.exe hello-world-debug.cpp

I get a success message and see the hello-world-debug.exe output file. However, when I try to debug it using:

----jGRASP exec: C:MinGWbingdb.exe --args C:UsersituserDocumentshello-world-debug.exe

I get the following:

GNU gdb (GDB) 7.6.1 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "mingw32". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from C:UsersituserDocumentshello-world-debug.exe...done. (gdb) Exception condition detected on fd 0 error detected on stdin ----jGRASP: operation complete.

This is Windows 7. Any ideas?

链接地址: http://www.djcxy.com/p/49712.html

上一篇: Android Api for Skype?

下一篇: (gdb)在fd 0上检测到异常情况