Glam Prestige Journal

Bright entertainment trends with youth appeal.

I have installed Eclipse via System Workbench for STM32. Meaning I have an icon now named System Workbench for STM32, and when I open it Eclipse opens.

With that IDE I can successfully create programs for the microicontroller STM32.

However, I want to make unit tests which I can run on a PC, and while after installing google test/mock I get the error:

/usr/bin/sh: g++: command not found

I get the same problem when I make a generic C++ project (either with GNU auto toolchain or using a G++ Cross compiler, or using the default C++ Hello World project).

Also, I do not see an Includes folder.

However, when I check in Help/About Eclipse, I see that Eclipse CDT is installed (version 9.2.1.201704050...)

How can I compile C++ application for PC only? Should I install something more, and from where/how?

1 Answer

This may happen when gcc is not installed or not configured correctly.

Do a

sudo apt update

And also a

sudo apt install gcc

If this works, great!

3

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