codelite does not find g++

CodeLite installation/troubleshooting forum
pushback
CodeLite Curious
Posts: 7
Joined: Sun Feb 06, 2022 6:46 pm
Genuine User: Yes
IDE Question: C++
Contact:

codelite does not find g++

Post by pushback »

Hello,
I installed codelite on my computer (ubuntu 20/04) by following these step https://docs.codelite.org/downloads/dow ... ntu-debian
But codelite does not find g++ compiler, it only find gcc-7.
When i try to build the example program

Code: Select all

#include <stdio.h>

int main(int argc, char **argv)
{
	printf("hello world\n");
	return 0;
}

Codelite says:

Code: Select all

/bin/sh -c '/usr/bin/make -j4 -e -f  Makefile'
----------Building project:[ wx_comp - Debug ]----------
make[1]: Entering directory '/home/guillaume/Documents/Programmation/codelite/wx_comp/wx_comp'
/usr/bin/g++-7 -o ../build-Debug/bin/wx_comp @../build-Debug/wx_comp/ObjectsList.txt -L.
make[1]: /usr/bin/g++-7: Command not found
make[1]: *** [wx_comp.mk:79: ../build-Debug/bin/wx_comp] Error 127
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/guillaume/Documents/Programmation/codelite/wx_comp/wx_comp'
make: *** [Makefile:5: All] Error 2
====0 errors, 0 warnings====

I try

Code: Select all

 sudo apt-get install build-essential 

but everything is up to date.
I am used to Makefile and vim text editor to code but i want to use wxwidgets so i want to try an IDE. Please help me.

User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: codelite does not find g++

Post by eranif »

You need to install the compiler. build-essential will only install make and like
You need to install g++

one installed setup CodeLite as described in the docs
https://docs.codelite.org/settings/buil ... -detection

Make sure you have read the HOW TO POST thread
pushback
CodeLite Curious
Posts: 7
Joined: Sun Feb 06, 2022 6:46 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: codelite does not find g++

Post by pushback »

Thank you a lot. It was easy. I thought by scanning the computer codelite would have found g++ but i had to manually add it.

Post Reply