Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

make: g++: Command not found

Writer Emily Wong

I've checked similar posts and anyone solve my problem. I's very simple but I'm new with eclipse. I'm trying to make a simple example and I'm having this problem.

the make file is just this

all: hello.exe
clean: rm Hello.o Hello.exe
hello.exe: hello.o g++ -g -o hello.exe hello.o
hello.o: g++ -c -g main.cpp

And I get this error "make: g++: Command not found"

Thanks for helping.

7

2 Answers

You need to install the development tools from GNU. I assume you're on windows, in which case you have two options: cygwin and mingw. The former includes g++ out of the box. I'm less familiar with mingw, but the C++ Standard library appears to, also, be available.

See these installation instructions, I'd recommend starting from step 1, if at all possible.

1

"sudo apt install g++" did the trick for on on Ubuntu 20 LTS.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy