Cant compile even hello world [message #1855465] |
Sun, 16 October 2022 08:07  |
Eclipse User |
|
|
|
Hello eclipsers,
I am a beginner and used to visual studio code, where i click on run, and what i wrote will compile and execute.
How in the world can i run my code in eclipse. Any fix i try, any solution i google doesnt work.
Do i need a masters to run hello world with this?
where can i learn to use it from beginning?
Im on Ubuntu 20.
Best regards
|
|
|
|
Re: Cant compile even hello world [message #1855467 is a reply to message #1855465] |
Sun, 16 October 2022 14:23  |
Eclipse User |
|
|
|
On an Ubuntu, you need to install the package build-essential.
Before attempting on Eclipse, try from the console:
nano hello.c
#include <stdio.h>
int main(void)
{
printf("Hello\n");
return 0;
}
Control-O, accept output file name with an Enter
Control-X
gcc -o hello hello.c
If everything works, you know that the basic compilation is OK.
|
|
|
Powered by
FUDForum. Page generated in 0.07276 seconds