News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Code Blocks non compile

Started by dostabile, October 12, 2018, 04:07:25 PM

Previous topic - Next topic

dostabile

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

Miguel Gimenez

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.

oBFusCATed

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!]