G++ is the C++ front-end of the Gnu Compiler Collection (GCC)

learn more… | top users | synonyms

0
votes
0answers
8 views

Building and hosting Ubuntu packages using C++11

The full question would be: Is Ubuntu ready to host C++ applications packages, compiled with C++11, and which use a large set of dependencies? Let's say that we have an official Ubuntu package (C++ ...
0
votes
2answers
45 views

Accidently deleted header files in /usr/include/c++

I accidently deleted the folder with all the C++ header files that resides in /usr/include/c++. What do I do to recover the UPDATE I did get the header files back now in /usr/include/c++. However, ...
0
votes
0answers
32 views

Unable to compile C++ Code

Whenever I try to compile a C++ file with IOStream , I get this error.. I've tried reinstalling GCC G++ (both 4.6 and 4.9) AND cpp.. It hasnt helped (or maybe I didnt do it the right way). How do I ...
2
votes
3answers
36 views

what does “you have broken package.” mean? [duplicate]

when I try to install g++ by "sudo apt-get install g++" command line gives me the msg "Unable to install....You have broken packages." How can I fix it??? And what does that "broken package" mean??? ...
0
votes
0answers
13 views

How to remove older versions of gcc and use the latest 4.8 on Ubuntu 12.04? [duplicate]

I have gcc 4.6,4.7 and 4.8 installed. But running gcc uses gcc 4.6 or calling gcc --version return 4.6.2. How can I change it to run gcc 4.8 by default by either removing or not removing the older ...
0
votes
0answers
77 views

HelloWorld doesn't work in Eclipse

I just installed both eclipse and eclipse-cdt and tested it with "HelloWorld" in C++ perspective. It reported "cout wasn't declared in this scope". Then I used a texteditor to write exactly the same ...
0
votes
1answer
78 views

Ubuntu 10.04 update GCC 4.8.1 to GCC 4.8.2

I installed GCC on Ubuntu 10.04 using the following commands: sudo apt-get update sudo apt-get install gcc-4.8 sudo apt-get install g++-4.8 sudo update-alternatives --install /usr/bin/gcc gcc ...
0
votes
1answer
148 views

Ubuntu 14.04 GCC 4.8.2 link dynamically against (older) GLIBC 2.11.1

For the needs of my project I need to use G++ 4.8.2 and GLIBC 2.11.1. Ubuntu 14.04 comes with EGLIBC 2.19. How can I make G++ link dynamically against GLIBC 2.11.1? If there is, how do I go about ...
0
votes
0answers
30 views

Can I get g++-4.2 on Lubuntu 14.04.1

I realize this is a rather odd question. I have some code that was originally written to be compiled with g++-4.2 and I get errors when trying to compile it with newer versions of g++. Is it possible ...
1
vote
1answer
269 views

asm/errno.h: No such file or directory

I'm trying to install gcc 4.8.1 at the moment. Currently 4.8.2 and 4.9.1 are installed. I downloaded an 4.8.1 from here http://gcc.cybermirror.org/releases/gcc-4.8.1/ . After extracting the files I ...
0
votes
2answers
65 views

Upgraded to 14.04 LTS from 12.04 LTS. Now C++ program does not compile [closed]

As the title states, I am having problems compiling my program, and the error is C++11 specific. Is there some way I can go back to the compiler I had on 12.04? Do I need to install another version of ...
-3
votes
2answers
72 views

How do you call g++?

I wanted to use g++. However, when I type in g++ in the terminal, it says, "fatal error no input files". I have asked a similar question before but to avoid extending the discussion in the comments, i ...
1
vote
2answers
24 views

How do locate and use programs that are available on the computer by default?

I wanted to locate g++ on ubuntu. However when I type it in the dash's search, it says that nothing matches my search. Where exactly can I access such programs on ubuntu ?
1
vote
1answer
26 views

Cannot install g++ 4.8 on OpenVZ

I have everything set, but doing apt-get install g++4.8 gives me the following java (!?!?!?) related error. Setting up ca-certificates-java (20110426ubuntu0.10.04.2) ... Error occurred during ...
0
votes
2answers
159 views

fatal error :“python.h” no file or directory?

while looking for the solution of hungarian problem,I found this github link I went through the readme.md file and I performed everything described there, After copying hungarian.so in my directory ...
0
votes
1answer
61 views

Having trouble configuring Code:Blocks to work

I seem to be having trouble in getting Code:Blocks to work properly within Ubuntu 14.04 lts. I simply installed it from the Software center, however everytime I try to build and run my code it does ...
-1
votes
1answer
94 views

How to remove dependency problem? [duplicate]

I'm trying to install offline g++ software on Ubuntu 14.04: $ sudo dpkg -i g++-4.4.4_4.4.3-4ubuntu5.1_i386.deb [sudo] password for ecil: dpkg: error processing archive ...
-1
votes
1answer
78 views

how to install downloaded g++4.8 deb archive in ubuntu 14.04 lts?

I have installed Ubuntu 14.04 LTS. The g++ compiler is missing in it. So, I downloaded g++ 4.8 deb archive. But I am not able to install it. ehn I open the package, ubuntu software center opens up and ...
1
vote
0answers
49 views

I am not able to install c++ compiler [duplicate]

I tried to install g++ with sudo apt-get install g++ then it comes like pulseaudio is already the newest version. gvfs-fuse is already the newest version. xorg-docs-core is already the newest ...
-1
votes
1answer
86 views

g++ compiler absent in ubuntu 14.04 LTS [duplicate]

When I tried to compile a c++ program in Ubuntu 14.04 LTS it said: The program g++ is currently not installed but this package is not available I also checked in /user/bin/ there was no file named ...
0
votes
1answer
37 views

How do I open .cpp file from the github directory? [duplicate]

I'm a total newbie here. How do I open .cpp file from the github directory? what command should I use? I'm in the directory where the .cpp file is stored but I do not know how to open that in the ...
1
vote
1answer
160 views

Problem installing g++ ccompiler on Ubuntu 14.04

I tried to install g++ using packages from another user. offline..but there were errors. After connecting to the net I tried to install using sudo apt-get install g++, but it gave the following ...
4
votes
3answers
663 views

How can I know that I have g++ installed in my ubuntu? [duplicate]

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 ...
0
votes
2answers
92 views

what is exactly object file and how to open it

g++ myCppFile -o myOut I do not know about compiling procedure. But all I want to know is what is the type of myOut? It is not text. It is not like configuration file. So what is it ? And how to ...
0
votes
2answers
168 views

I am not able to compile a simple program using gcc

Wrongly I have install ia32-libs but my host system is 64 bit. Now whenever i try to compile c file i get a message as: unrecognized option '--64' I have uninstall th ia32-libs but I am getting ...
0
votes
1answer
182 views

How to remove g++

I recently installed the g++ complier for c++ coding somehow its messing with my fonts and only a restart fixes the issue. Is there any way to uninstall g++?and is that safe to do?
0
votes
0answers
216 views

RStan installation fails with internal compiler error

I'm trying to install RStan in R 3.1.1 on Ubuntu 14.04 i-386, but get the following error message: $ R > Sys.setenv(MAKEFLAGS = "-j4") > source('http://mc-stan.org/rstan/install.R', echo = ...
0
votes
2answers
43 views

how to know which version of the compiler used to install a program from source among all versions of the that compiler

I installed a program via source code . To do that I downloaded a gcc and g++ appropriate for that. I use this command in order to install that $ export CC=gcc-?? CXX=g++-?? && ./install ...
0
votes
3answers
78 views

How to run g++ output files

I compiled my c++ program with g++ and I can only run the output with ./ProgramName. Is there any way I can just double click the file to run it?
0
votes
2answers
4k views

How to install g++ in Ubuntu 14.04? [duplicate]

I have recently installed ubuntu 14.04 in virtual box. Now I want to install g++ 4.7 in it. I am trying this command in terminal but its not working. sudo apt-get install g++-4.7 Reading package ...
0
votes
0answers
214 views

How can I use C++11's <regex> on Ubuntu?

I normally use the G++ compiler, but I don't have anything against using clang++. Reading about this, I get the idea that G++'s implementation of C++11's regex might not compile, and if it does, it ...
1
vote
0answers
82 views

Why is gdb progfile producing a segmentation fault? [closed]

I have a g++ project and would like to debug it using gdb. Opening gdb with the program as an argument produces the following output: Reading symbols from <my_app_name>...Segmentation fault ...
1
vote
1answer
32 views

Problem with compiling by G++: why 5/18 returns zero?

I have spot an interesting problem in G++: when I use sin(50*3.14/180) I get something about 0.766, however sin(5/18*3.24) gives me 0.000. Isn't it exacly the same thing? Did anyone spot it before? ...
2
votes
1answer
11k views

How to install gcc 4.9 on Ubuntu 14.04? [duplicate]

Now that gcc 4.9 is officially released, is there an easy and convenient way to install it on Ubuntu 14.04 through the package manager (ie. apt-get)? I would also appreciate information on how to ...
0
votes
0answers
292 views

I already have the newest version of g++ but I still get a 127 error what do I do?

I have done the following. I just don't know what to try next. I supposedly have the newest version of gcc by following these directions sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo ...
0
votes
0answers
46 views

Unable to install g++-multilib on Ubuntu 13.10 64 bit [duplicate]

When i open Terminal and write below command it not work to install. sudo apt-get install g++-multilib It give me below Error: > Reading package lists... Done Building dependency tree ...
0
votes
0answers
86 views

Compilation of Logstalgia: compilation - undefined reference to symbol 'glEnd'

I'm trying to build Logstalgia https://github.com/acaudwell/Logstalgia.git CFLAGS="-O2 -Wall -march=native -I/opt/AMDAPP/include" LDFLAGS="-L/opt/AMDAPP/lib/x86_64" ./configure ...
0
votes
3answers
135 views

Problem With g++ [duplicate]

I want to install g++ but i can't do it. I tried installing it from Software center and terminal using apt-get install g++ but it won't work. I'm getting the following error: The following packages ...
0
votes
1answer
198 views

How to create alias with g++?

I'm trying to create an alias on ubuntu for the bellow commands: g++ -lSDL -lSDLmain -lSDL_image -lGL -lGLU src.cpp -o a.out g++ -lGL -lglut `sdl-config --cflags --libs` src.cpp -o a.out When I ...
18
votes
5answers
28k views

Getting + installing gcc/g++ 4.9 on Ubuntu?

How do I install the latest version of gcc and g++? I am using a variety of C++11 and C++1y features; which is why I need this.
0
votes
0answers
121 views

Can not install g++ completely

The following packages have unmet dependencies: g++-4.8 : Depends: libstdc++-4.8-dev (= 4.8.1-10ubuntu9) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no ...
1
vote
1answer
2k views

Error: ‘strlen’ was not declared in this scope

I am trying to compile several third-party software from source code (i.e. zchaff, argosat) and get errors such as: Error: ‘strlen’ was not declared in this scope Error: ‘strcmp’ was not declared in ...
0
votes
1answer
295 views

install gcc and g++

I tried all the commands sudo apt-get build-dep build-essential sudo apt-get install gcc sudo apt-get install g++ But all time I am getting this error. The following packages have unmet ...
1
vote
2answers
3k views

G++ compilation error “cc1plus” not found

I think I accidentally deleted a couple files from my machine, and now G++ won't compile. I tried to apt-get remove it then apt-get install it to see if it would fix it, but it didn't work. Now I have ...
0
votes
1answer
804 views

“undefined reference to `std::ios_base::Init::Init()” while compiling a hello world in netbeans

I am new to ubuntu and I want to code in C++. I intalled g++ through software manager and after I installed netbeans to have a nice IDE to code in C++. Then I write this simple code: #include ...
-1
votes
1answer
156 views

How to run g++-4.7 installed in the machine using g++ command?

I am using Ubuntu 13.10(Saucy). I installed g++-4.7 in my machine. But when I tried to run g++ or tried to check the version it is showing that the package is not installed. $ g++ --version The ...
0
votes
3answers
5k views

Installing gcc 4.8 on 13.10 “The following packages have unmet dependencies” [duplicate]

When i go to install gcc 4.8 using: sudo apt-get update sudo apt-get install gcc-4.8 g++-4.8 I get the error message: Some packages could not be installed. This may mean that you have requested an ...
0
votes
0answers
425 views

Can't install g++ on 13.10 (dependency problem) [duplicate]

I'm a newbie and I'm trying to make some c++ codes. I installed eclipse, but I can't install g++ and really don't know why. My command is this. sudo apt-get install g++ However, it doesn't work. ...
0
votes
0answers
252 views

C++ IDE Problem ubuntu 13.10

I'm installed Eclipse cdt in my OS (ubuntu 13.10) but i cant create C++ project, Im already insalled QT creator but i cant create C++ app in qt too... Im installed g++ 4.8
0
votes
1answer
500 views

“fatal error: GL/glfw.h: No such file or directory #include <GL/glfw.h>” - How to solve it?

I'm trying to install GLFW to develop a OpenGL 3.0+ program and I've followed a few tutorials on how to install GLFW and I keep getting this error. I know I have installed it correctly with cmake, ...