Author Topic: Code Blocks non compile  (Read 4299 times)

Offline dostabile

  • Single posting newcomer
  • *
  • Posts: 2
Code Blocks non compile
« on: October 12, 2018, 04:07:25 pm »
Ciao a tutti ho appena installato codeblock e il compilatore su Linux usando le diciture che sono sulla guida.
sudo apt-get install built-essential
e
sudo apt-get install codeblocks.

Ma quando apro codeblocsk e provo ad compilare ed avviare il programma main.c che trovo gia scritto con printf("hello world"); mi esce questo :

Checking for existence: /home/mimmo/Scrivania/Esercizi C/prova/bin/Debug/prova
Executing: xterm -T prova -e /usr/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. /home/mimmo/Scrivania/Esercizi\ C/prova/bin/Debug/prova  (in /home/mimmo/Scrivania/Esercizi C/prova/.)
Process terminated with status -1 (0 minute(s), 0 second(s))

e non mi apre la schermata con hello world. come risolvo??
Grazie

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1549
Re: Code Blocks non compile
« Reply #1 on: October 12, 2018, 05:38:46 pm »
The file is already compiled, probably you don't have xterm installed. Try opening a console, go to the bin/Debug folder and write ./prova to see if it runs. If yes, do sudo apt-get install xterm.

Next tiime try writing in english.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code Blocks non compile
« Reply #2 on: October 12, 2018, 06:42:04 pm »
Please post in English! It is one of the rules of this forum.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]