[SOLVED] g++: not found

Need help with C, C++, perl, python, etc?

[SOLVED] g++: not found

Postby Grishan Pradhan » 2018-09-30 14:48

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.
Grishan Pradhan
 
Posts: 21
Joined: 2018-09-30 12:46

Re: g++: not found

Postby arochester » 2018-09-30 14:54

Install g++ ?
arochester
 
Posts: 1349
Joined: 2010-12-07 19:55

Re: g++: not found

Postby Grishan Pradhan » 2018-09-30 15:28

arochester wrote:Install g++ ?

WOW bro that really helped :lol:
THANKS
Grishan Pradhan
 
Posts: 21
Joined: 2018-09-30 12:46

Re: g++: not found

Postby reinob » 2018-09-30 17:21

(you should then mark the topic as solved.. as otherwise other people might want to help further..)
reinob
 
Posts: 568
Joined: 2014-06-30 11:42

Re: g++: not found

Postby stevepusser » 2018-09-30 20:58

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
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Flightgear 2018.2.2, 4.19.5 kernel, wine-staging 4.0~rc1, Pale Moon 28.2.2, Mesa 18.2.6, Midori 7.0
User avatar
stevepusser
 
Posts: 10278
Joined: 2009-10-06 05:53

Re: [SOLVED] g++: not found

Postby Grishan Pradhan » 2018-10-01 15:57

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
Grishan Pradhan
 
Posts: 21
Joined: 2018-09-30 12:46


Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable