D
D
DarkByte20152017-01-24 11:57:28
linux
DarkByte2015, 2017-01-24 11:57:28

How to set up Code Blocks on Linux?

I gave up this idea with CodeLite, having once again looked at Code Blocks, I realized that it seems to be no worse. Unless he can’t work with the git out of the box, but oh well, it’s even more convenient from the console. Installed Code Blocks on Linux Mint. I'm trying to compile and run a simple helloworld (the code is the same / everything is right there). So it doesn't start... That's what the garbage doesn't start either in CodeLite or in Code Blocks. Moreover, what is interesting in CodeLite runs on Linux, but does not run on Windows, and in Code Blocks it runs on Windows, but does not run on Linux.
And I found the compiled binary. I also try to run it from the console ". prog" - it says to me "I can not run the binary file." Strange... The file has execution rights.
If someone still does not believe that I am able to write a correct helloworld. :

spoiler
#include <iostream>

using namespace std;

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


PS By the way, is it possible to somehow configure for console applications so that the system console does not open, but is there an output to the application console? Will be comfortable. This is how many IDEs do it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Spetros, 2017-01-24
@Spetros

wiki.codeblocks.org/index.php/Creating_a_new_project

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question