Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[HELP] Can´t compile C in Devian 9

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
Gubian
Posts: 1
Joined: 2017-08-17 12:21

[HELP] Can´t compile C in Devian 9

#1 Post by Gubian »

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

cronoik
Posts: 310
Joined: 2015-05-20 21:17

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

#2 Post by cronoik »

Please launch anjunta from a terminal and post the terminal output after the crash.
Have a nice day!

runfrodorun
Posts: 202
Joined: 2013-06-19 05:09

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

#3 Post by runfrodorun »

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.

Post Reply