Keep getting return code -1 when compiling

CodeLite installation/troubleshooting forum
Frosty
CodeLite Curious
Posts: 3
Joined: Sat Dec 31, 2016 9:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Keep getting return code -1 when compiling

Post by Frosty »

I updated my Codellite from version 9.1.0 to 9.2.0 yesterday on Ubuntu 16.04. Today when compiling I just keep getting "return code -1" when compiling a simple c-program.

Coldelite 9.2.0
Package installed using install instructions on Download site, thus not selfcompiled.
OS Ubuntu 16.04.4 64 bit.
gcc and g++ Ubuntu 5.4.0-6ubuntu16.0.4 5.4.0 20160609

Code (c-language):
------------------------------------------------------------
#include <stdio.h>

int main()
{
printf("hello world\n");
return 0;
}
----------------------------------------------------

Build window:
---------------------------------------------------------
Current working directory: /home/m/Documents/Test_2/tt/Debug
Running program: /usr/lib/codelite/codelite_xterm './tt ' '/bin/sh -f /usr/bin/codelite_exec ./tt'
Program exited with return code: -1
----------------------------------------------------------

Perhaps needless to say that it worked just well with 9.1.0.

What may be wrong
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Keep getting return code -1 when compiling

Post by eranif »

You are not compiling - you are running your code.
To compile, use F7

Please read the "HOW TO POST" (link in my signature)
Make sure you have read the HOW TO POST thread
Frosty
CodeLite Curious
Posts: 3
Joined: Sat Dec 31, 2016 9:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Keep getting return code -1 when compiling

Post by Frosty »

Mixed up the terms, sorry.

I have pressed F7 then Ctrl-F9, and I do get the mentioned.

Any clues?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Keep getting return code -1 when compiling

Post by eranif »

Still, please provide the build log. Read the "HOW TO POST" thread

Eran
Make sure you have read the HOW TO POST thread
Post Reply