Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] g++: not found

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
Grishan Pradhan
Posts: 21
Joined: 2018-09-30 12:46

[SOLVED] g++: not found

#1 Post by Grishan Pradhan »

when I build the program(C) using CodeBlocks there is this thing
/bin/sh: 1: g++: not found

What to do?
Last edited by Grishan Pradhan on 2018-10-01 15:53, edited 1 time in total.

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: g++: not found

#2 Post by arochester »

Install g++ ?

Grishan Pradhan
Posts: 21
Joined: 2018-09-30 12:46

Re: g++: not found

#3 Post by Grishan Pradhan »

arochester wrote:Install g++ ?
WOW bro that really helped :lol:
THANKS

reinob
Posts: 1195
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: g++: not found

#4 Post by reinob »

(you should then mark the topic as solved.. as otherwise other people might want to help further..)

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: g++: not found

#5 Post by stevepusser »

Debian has a metapackage that will install g++ plus whatever else you need for standard gcc compiling, call "build-essential".

Hmm, codeblocks doesn't install it by default, and g++ is only an alternative to gcc, too.

Code: Select all

Recommends: gcc | g++, gdb, xterm
Suggests: libwxgtk3.0-dev, codeblocks-contrib
MX Linux packager and developer

Grishan Pradhan
Posts: 21
Joined: 2018-09-30 12:46

Re: [SOLVED] g++: not found

#6 Post by Grishan Pradhan »

Thank You for Help.
I actually solved this using the following code
first logging in as root using

Code: Select all

su
then entering root password
and

Code: Select all

apt-get install g++
I had to log in as root because I got message "Username is not in the sudoers file.."

NOTE:Fisrt try

Code: Select all

sudo apt-get install g++ 
If you don't get the message "Username is not in the sudoers file.." then work's done
Otherwise login as Root

Post Reply