Author Topic: Can't Run, Process terminated with status -1 on Linux Mint 18  (Read 4822 times)

rpgiqbal

  • Guest
Can't Run, Process terminated with status -1 on Linux Mint 18
« on: August 28, 2016, 02:50:29 pm »
Hi there, I'm a complete newbie in Programming and coding, as of right now I'm using Mint 18 and I install the compiler and Code::Blocks. By the way, I'm using Dummies guide to learn C++ but unfortunately it gave me an error when I tried to run it after building it.

My code
#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}

When Building
-------------- Build: Debug in Ujian 5 (compiler: GNU GCC Compiler)---------------

g++ -Wall -fexceptions -g -std=c++11 -Wextra -Wall  -c "/home/kaisora/Documents/Coding Tutorial Dummies/Ujian 5/main.cpp" -o obj/Debug/main.o
g++  -o "bin/Debug/Ujian 5" obj/Debug/main.o   
Output file is bin/Debug/Ujian 5 with size 27.05 KB
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))


Trying to Run
-------------- Run: Debug in Ujian 5 (compiler: GNU GCC Compiler)---------------

Checking for existence: /home/kaisora/Documents/Coding Tutorial Dummies/Ujian 5/bin/Debug/Ujian 5
Executing: xterm -T Ujian\ 5 -e /usr/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. /home/kaisora/Documents/Coding\ Tutorial\ Dummies/Ujian\ 5/bin/Debug/Ujian\ 5  (in /home/kaisora/Documents/Coding Tutorial Dummies/Ujian 5/.)
Process terminated with status -1 (0 minute(s), 0 second(s))
 

please someone I need help. ( TT ___ TT )
« Last Edit: August 28, 2016, 02:55:27 pm by rpgiqbal »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Can't Run, Process terminated with status -1 on Linux Mint 18
« Reply #1 on: August 28, 2016, 03:24:16 pm »
Do you have xterm installed ?
If not, either install it or try one of the other terminals in "Settings -> Environment -> Terminal to launch ...", if you prefer it.