Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Cant compile even hello world(Type Program "make" not found in PATH )
Cant compile even hello world [message #1855465] Sun, 16 October 2022 12:07 Go to next message
apep isfet is currently offline apep isfetFriend
Messages: 1
Registered: October 2022
Junior Member
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 #1855466 is a reply to message #1855465] Sun, 16 October 2022 14:50 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
You could follow this tutorial:

https://www.vogella.com/tutorials/Eclipse/article.html


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Cant compile even hello world [message #1855467 is a reply to message #1855465] Sun, 16 October 2022 18:23 Go to previous message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 743
Registered: August 2014
Senior Member
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.


--

Tauno Voipio
Previous Topic:non-managed c++ projects and scanner
Next Topic:Start GDB with "target extended-remote"
Goto Forum:
  


Current Time: Sun Jan 19 23:28:29 GMT 2025

Powered by FUDForum. Page generated in 0.04290 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top