[HELP] Can´t compile C in Devian 9

Need help with C, C++, perl, python, etc?

[HELP] Can´t compile C in Devian 9

Postby Gubian » 2017-08-17 12:30

Hello mates, recently i started to learn c, i installed Anjuta, but i couldnt compile the programs. When i press "Build" the window closes and the IDE stops.
This is the program:


#include <stdio.h>

int main()
{
printf("Hello World\n");
return 0;
}

THANK YOU
Gubian
 
Posts: 1
Joined: 2017-08-17 12:21

Re: [HELP] Can´t compile C in Devian 9

Postby cronoik » 2017-08-17 15:19

Please launch anjunta from a terminal and post the terminal output after the crash.
Have a nice day!
cronoik
 
Posts: 217
Joined: 2015-05-20 21:17

Re: [HELP] Can´t compile C in Devian 9

Postby runfrodorun » 2017-08-22 13:22

Do a sanity check: open a terminal and go to a directory with the source file in it and use the command

gcc source_file.c -o executable_file

and then run

./executable_file

and see that it works. If not, you may need to install the package build_essential
Much opinionated.
Some abrasive.
No systemd.
Wow.
runfrodorun
 
Posts: 202
Joined: 2013-06-19 05:09


Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable