Page 1 of 1

Display return code

Posted: Mon Mar 30, 2020 9:02 pm
by Andreze
Hello,
I'm as student learning C and this is my first time using codelite.
I am using CodeLite 14.0.0 on a windows 10 pc and MinGw64 to compile the project.
I was trying to run a simple hello world program:

Code: Select all

#include <stdio.h>

int main()
{
	printf("hello world\n");
	
	return 0;
}
and saw that the output pane doesn't display the return value
as displayed bellow:

Code: Select all

Working directory is set to: E:\Work\build-Debug\lib
Executing: cmd /C  call E:\Work\build-Debug\bin\Work.exe && pause
Program exited
Is there a way to display the return code like (Program exited with return 0)?
Thanks for the help.