Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CodeLite - Console runs but code is not working

I just installed CodeLite 6.0 in two of my PC's, however in both of these computers I get the same issue: I am able to build and run the project, but when the console starts running all I see is:

screenshot of empty console window

This is my code:

#include <stdio.h>

int main(int argc, char **argv)
{
    printf("hello world\n");
    return 0;
}

and if I try to add some crazy instruction that actually doesn't exist, console will still show up with no errors and the project will build with no errors, too. For example, using the following code:

#include <stdio.h>

int main(int argc, char **argv)
{
    printf("hello world\n");
    notrealcode<<"hi";
    return 0;
}

and cout << "Hello World" isn't working either.

like image 790
Daniel Mejía Avatar asked Oct 20 '22 04:10

Daniel Mejía


1 Answers

I am pretty sure you are not having a compiler installed. See this tutorial to know how to choose and add a compiler: http://codelite.org/AddNewCompiler/AddNewCompiler

like image 191
Divyaraj jhala Avatar answered Oct 27 '22 07:10

Divyaraj jhala