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

learn more… | top users | synonyms

1
vote
2answers
30 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 ?
0
votes
2answers
503 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
2answers
2k views

How to install gcc/g++ 4.4 and make links

Because I cannot compile some code by gcc/g++ 4.7, I want to install gcc/g++ 4.4. I searched the Internet and found some different way. I don't know what is the best solution. Is it possible to ...
2
votes
1answer
887 views

When will GCC support C++11 regex_token_iterator?

When will GCC support for C++11 regex_token_iterator? Some of regex seems to be implemented, but the token iterator is not supported yet in my 32-bit Ubuntu/Linaro (version 4.7.2-4precise1) ...
1
vote
1answer
41 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 ...
1
vote
1answer
2k views

Trying to compile code results in error: make[1]: g++-3: Command not found

I am trying to compile a program on Ubuntu 12.04 (LTS), but the following error keeps resulting: evensteven@pc:~/Desktop/MimoComplexLdpc$ make all cd ./src; make; make[1]: Entering directory ...
1
vote
1answer
1k views

Eclipse and the g++ - how is it work

I am using ubuntu 12.04. I have eclipse juno. I wrote test.cpp : #include <iostream> using namespace std; int main() { cout << "!!!Hello World!!!" << endl; // prints !!!Hello ...
1
vote
1answer
3k views

How to compile a c++11 program using future in Ubuntu 12.04?

I'm trying to compile a c++ program in Ubuntu 12.04. I'm using g++ 4.7 (installed from a ppa). I'm using std::future, but I have an error. The code: $ cat main.cpp #include <iostream> ...
1
vote
1answer
702 views

Problem Compiling with link -lstdc++

I'm new using Linux (Ubuntu 12.04 LTS, 64-bit). I am trying to learn how to create binary files for a program called Tecplot. I've been trying to compile the example file simtest.f90, using this: $ ...
0
votes
1answer
10 views

Problem in installing g++

I want to install g++ on my laptop(ubutu 14.04 LTS), however it shows the following errors- maddman@MADDY-PC:~/Desktop$ sudo apt-get install g++ Reading package lists... Done Building ...
0
votes
1answer
32 views

Error: ‘is_same’ is not a member of ‘std’ when build c++ project in ubuntu?

I have a small project and i get an error ‘is_same’ is not a member of ‘std’ when building. this is some code: template <class T> T* UcmExportFactory::Unwrap (T* ptr) { Utils::IUcmWrapper* ...
0
votes
1answer
550 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
480 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 ...
0
votes
1answer
1k 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, ...
0
votes
1answer
294 views

ld error while linking to SDL2

i'm struggling in the attept to compile c++ with SDL2. I've done as always: checkout the code (both from mercurial and libsdl.org) ./configure, make, sudo make install But it keeps to say: ...
0
votes
1answer
1k views

Compiling c++ script with external libraries, not working

I can't seem to get this working. I have a c++ script that i haven't written myself, that i need to compile with g++. The start of the script looks like this: #include "x.hh" #include "y.hh" ...
0
votes
1answer
2k views

GLIBCXX 3.4.14 on Ubuntu 10.04

Is there a way of getting GLIBCXX 3.4.14 on Ubuntu 10.04? I am trying to use the Z3 solver from Microsoft in my research but it requires at least GLIBCXX 3.4.14 which is not available in my setup. ...
-1
votes
1answer
65 views

libc6 for g++ is installed but it says: NO!

It is one week that i have a problem in installing g++ in my Ubuntu 14.04.1 server. It wants about 5 dependencies, but the last one is libc6, and when I try to install it, this massage will appear: ...
2
votes
0answers
30 views

Error in statically linking libSDL

I am trying to statically link libsdl on a test I wrote. What I did is: g++ test.cpp -Wl,-Bstatic $(sdl-config --static-libs) -Wl,-Bdynamic which gave me the error: ...
1
vote
0answers
28 views

Use package without declaring its version

I have installed g++ from here. When I want to compile a program, I have to use g++-4.9 myle.cpp. How can I set it to use without declaring its version g++ myle.cpp?
1
vote
0answers
451 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 ...
1
vote
0answers
1k views

gcc without g++?

I run Ubuntu 13.04 (x86_64 if it matters) which I recently installed. Before, when using 12.10, I had both gcc and g++ from the beginning. However, with 13.04 after I downloaded gcc-4.8.1 sources I ...
0
votes
0answers
30 views

g++ and vim on Ubuntu phone

Can i install g++ and vim on my ubuntu phone? I have tried running sudo apt-get install vim g++ from the terminal app, but neither were in the repositories.
0
votes
0answers
16 views

Error in installation of MeTA (meta requires a compiler with at least C++0x support)

I followed procedure from https://meta-toolkit.org/setup-guide.html Steps==> sudo apt-get update sudo apt-get install software-properties-common add the ppa for cmake sudo add-apt-repository ...
0
votes
0answers
85 views

Problem installing g++

I typed sudo apt-get install g++ then got the output: g++ depends on g++-4.8 (>=4.8.2-5~) but it will not be installed Then I continued sudo apt-get install g++-4.8 then got g++-4.8 ...
0
votes
0answers
13 views

Using migw32 to compile for windows

I have been writing a program that requires C++ 11, so I had been using the -std=c++11 to compile with g++. That worked, until I wanted to use mingw32, I ran into the same problems (such as stod and ...
0
votes
0answers
15 views

open3: exec of /usr/bin/gcc -v failed at /usr/local/bin/gcc

short version: I have been trying to downgrade my gcc and g++ and now it says open3: exec of /usr/bin/gcc -v failed at /usr/local/bin/gcc" even with a simple version check. Or it says - not found ...
0
votes
0answers
56 views

Make Error while building LDV for ubuntu 14.04

I am trying to build LDV project by following this.While running make console-tools , i am getting the following error. In file included from ../../aspectator/gcc/lto-streamer.h:27:0, ...
0
votes
0answers
21 views

Using GNU compiler and JRE in Wine applications

There is a .exe application that I want to run and it needs JRE, to making sense, it is an IDE based on Eclipse but it is not Eclipse itself. Also in this IDE for compiling, it uses g++ as compiler. ...
0
votes
0answers
75 views

gcc command and g++ command does not work

What should I do if my gcc command and g++ command does not work? I have installed opencv from github.com but when I write the code in nano compiler and try to run the same using g++ command,I get ...
0
votes
0answers
154 views

g++ and build-essential refuse to install on ubuntu server

I have still problem in running the make command of a program (in my Ubuntu server 14.0.4.1 with gnome graphic interface) about the g++ as below: checking for g++... no checking for c++... no ...
0
votes
0answers
81 views

installing the g++ dependencies

I am trying to install a bioinfornatic tools and some were it wants the "make" command for activating its plugins but after the "make plugins" command is says: checking for a BSD-compatible ...
0
votes
0answers
148 views

No targets specified and no makefile found

What dependency am I missing? I am stuck on this one since hours. Any help is very appreciated. ./configure output http://pastebin.com/yEZ7snWp
0
votes
0answers
50 views

cc1plus error despite updated version of g++

I have g++ 4.8.1. The output of g++ --version is : g++ (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1 The error thrown is : cc1plus: error: unrecognized command line option ‘-std=c++11’ The error is ...
0
votes
0answers
110 views

g++ and gcc do not work in ubuntu 14.04

After last sudo atp-get upgrade my gcc and g++ don't work and I'm trying to install g++ in my ubuntu 14.04 and I have this error: g++: gcc: What is the problem? sudo apt-get install -f
0
votes
0answers
137 views

can't install capybara-webkit

When I bundle install I get: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby2.1 extconf.rb Command 'qmake -spec linux-g++ ' not available Makefile not found ...
0
votes
0answers
36 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
0answers
290 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
0answers
56 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 ...