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

learn more… | top users | synonyms

0
votes
0answers
7 views

Error message: ./configure CC=gcc CXX=g++

Can I please have some help with this? I'm trying to install a bioinformatics tool called Trinity but this error message appears (below). What does it mean and how can I resolve it? Thanks! cd ...
0
votes
0answers
17 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.
2
votes
1answer
18 views

Why is g++ installed at usr/bin and not in usr/local/bin

I'm trying to understand the file structure of Linux systems.(At least basic parts). Now, according to this answer, /usr/local - directory is for read-only files installed by the local administrator ...
0
votes
0answers
14 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
34 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
10 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
11 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
1answer
22 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* ...
1
vote
1answer
30 views

Process terminated with status 127 while compiling in code blocks

I installed codeblock in ubuntu and try with a helloworld c++ program with the following code: #include <iostream> using namespace std; int main() { cout << "Hello world!" << ...
0
votes
2answers
117 views

shall i need to install g++ to compile c++ files in Ubuntu 14.04.1

I am using Ubuntu 14.04.1 I want to know, Do I need to install g++ from the Ubuntu Software Center to compile the c++ files? Is GCC(GNU Compiler Collection) able to accomplish this instead? if the ...
1
vote
1answer
52 views

Use g++-4.8 with Qt

I am trying to compile a Qt project that uses the "override" keyword, and thus needs GCC 4.8. I have installed GCC 4.8 on my Ubuntu 12.04 machine already, and it lives in /usr/bin as gcc-4.8 and ...
0
votes
1answer
29 views

Runing a program appears to not work [closed]

I do not know what the problem is or what happened but when I want to run a program compiled with g++ not working. I starts like this: gabi@gabi-work:~/Desktop/comp$ ./a.out and receive this: ...
0
votes
1answer
57 views

Compile error, g++ and c++11 [closed]

Im trying to compile this code via g++, #include <iostream> #include <set> using namespace std; std::set<int> s; int main(){ for(int i=0;i<10;i++) s.insert(i); for(auto ...
0
votes
0answers
43 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, ...
1
vote
1answer
89 views

Can't compile a simple C++ program using g++

When I try to compile any c++ program using g++ I get the following error, the stack trace is really long, this is just a sample: ........... /usr/include/x86_64-linux-gnu/bits/byteswap.h:47:2: ...
0
votes
1answer
60 views

how to read gcc input from external file

I'm trying to read the input for a c++ file y.cpp from the file file.in and save the result in file.out but I can't figure how to do it. for example, if the following code was in y.cpp ...
0
votes
0answers
54 views

Error in Installation of Qt5.x 32 bit on Ubuntu 12.04 64 bit

I want to install Qt5.x on Ubuntu 12.04 64 bit. But while installation I faced the problem of libsm6 missing. I learned Ubuntu needs 32 bit libraries for functioning. I followed this link and tried to ...
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. ...
7
votes
1answer
3k views

How to install the latest g++(currently 5.1) in Ubuntu(currently 14.04)?

This question always bothers me! Last time for 4.9 I tried the commands mentioned in this answer for g++4.9. The same trick doesn't work now: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo ...
2
votes
0answers
29 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?
0
votes
1answer
177 views

g++:error: `pkg-config --cflags --libs opencv`: No such file or directory

I run a program like this: g++ begueradj.cpp -o begueradj`pkg-config --cflags --libs opencv` I want to run the above command line from a Python file test.py: import subprocess ...
0
votes
0answers
67 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
1answer
197 views

g++: error trying to exec 'as': execvp: No such file or directory

In a script this error appears: g++: error trying to exec 'as': execvp: No such file or directory the line that compiles: /usr/bin/g++ -o $PATH/calc/calc $PATH/calc/calc.cpp Edit: The script: ...
0
votes
1answer
47 views

g++ command not found in sh script

I don't know, maybe this is a duplicate, but I didn't find any help. So, the problem. I have a simple problem - I made a script to automate C++ compiling a bit. Well, there's the script. #!/bin/bash ...
-1
votes
2answers
85 views

Unable to install g++ on Ubuntu 14.04 (x64) [duplicate]

I'm new to Ubuntu and trying to install g++ for development but every time I try to install g++ using sudo apt-get install g++ I get the following error. Kindly help me in resolving this issue. ...
-1
votes
1answer
222 views

How to configure netbeans 8.0.2 for C++ in ubuntu 14.04?

I am new to programming, netbeans and ubuntu. I have installed the netbeans ide with the c/c++ bundle from https://netbeans.org/downloads/ . I have no idea what else to install. Please help me in ...
-1
votes
1answer
58 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: ...
0
votes
0answers
108 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
63 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
24 views

Installing gcc4.9 on Ubuntu 14.04 LTS [duplicate]

I tried the following but I get the errors at the end. In order to make sure that 4.8.2 was not interfering, I removed it. Any suggestions would be great! sudo add-apt-repository ...
0
votes
1answer
198 views

Installing g++-dev on ubuntu 14.04

when I try to install g++-dev on a newely installed Ubuntu 14.04, I get this error : Les paquets suivants contiennent des dépendances non satisfaites : xserver-xorg-dev-lts-utopic : Est en conflit ...
0
votes
0answers
141 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
46 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
1answer
33 views

Use new version of mingw-g++

My machine currently runs on Ubuntu 12.04 (64bit version). I tried installing mingw-g++ for it, however, it installs an older version of g++, from the 4.6 series. Is there anyway I could download ...
2
votes
1answer
123 views

compiling g++ programs

I have the gcc installed. I can compile C programs. But I cannot compile C++ programs. If I write g++ on comd line, it says program not installed. I tried sudo apt-get install g++ It gives me a very ...
0
votes
0answers
102 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
1answer
552 views

Unable to run g++ after upgrading to Ubuntu 14.10

I did the update from Ubuntu 14.04 to Ubuntu 14.10 yesterday. Today I tried to run g++-4.8 as I normally do, but I have the following error: make: g++-4.8: Command not found I have the same error ...
1
vote
1answer
534 views

g++ not working… need to change PATH variable

am working on Ubuntu machine. I have been trying to run make try to compile try.cpp. I am not able to make it work. I have tried all the solutions online. apt-get is what I am using. I have tried ...
0
votes
0answers
129 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
35 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
373 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, ...
1
vote
0answers
418 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
105 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
263 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
498 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
2answers
461 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
54 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 ...
2
votes
1answer
2k 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 ...