Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to start pty process:

When I build my code in C++ using NetBeans.

"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
 make[1]: Entering directory '/cygdrive/c/Users/Alex/Documents/NetBeansProjects/test'
"make"  -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin_4.x-Windows/test.exe
 make[2]: Entering directory '/cygdrive/c/Users/Alex/Documents/NetBeansProjects/test'
 make[2]: 'dist/Debug/Cygwin_4.x-Windows/test.exe' is up to date.
 make[2]: Leaving directory '/cygdrive/c/Users/Alex/Documents/NetBeansProjects/test'
 make[1]: Leaving directory '/cygdrive/c/Users/Alex/Documents/NetBeansProjects/test'
 BUILD SUCCESSFUL (total time: 652ms)

When I run my code in C++ using NetBeans...

 Unable to start pty process: 
 RUN FAILED (exit value -2, total time: 26ms)

My Code

 #include <iostream>
 using namespace std;
 int main(int argc, const char *argv[]) {
 cout << "Hello, World!\n";
 return 0;
 }

Help appreciated!

like image 796
Alex Webber Avatar asked Nov 26 '25 20:11

Alex Webber


1 Answers

Worked solution for me :

Netbeans :

File-> Project properties -> Run -> Console type -> External Terminal

like image 97
vijay Avatar answered Nov 28 '25 14:11

vijay