Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 59651  / 1 Year ago, sat, february 18, 2023, 5:34:39

I have recently installed ubuntu 14.04 . I tried to run a c++ code by a command like this:



g++ first.cpp -o first


Then it said:



The program 'g++' is currently not installed. You can install it by typing:
sudo apt-get install g++


And then I did. After typing it and pressing enter it showed a message like this:



gedit is already the newest version.
libgrail6 is already the newest version.
xserver-xorg-core is already the newest version.
libgdata13 is already the newest version
...


(and many more lines like this)



Then I tried to run the same command given above again. But the terminal said again that I don't have g++ installed. What am I missing here? How to run the C++ code now?


More From » 14.04

 Answers
3

To find out what compilers are installed, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:



dpkg --list | grep compiler



enter image description here


[#23575] Sunday, February 19, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
scrubuz

Total Points: 194
Total Questions: 96
Total Answers: 127

Location: Monaco
Member since Fri, Sep 24, 2021
3 Years ago
;