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

learn more… | top users | synonyms

0
votes
0answers
27 views

g++ not finding linker optimization library

I'm trying to compile a simple c++ program: int main() { } That's it. However, I get a linker error: g++: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found compilation terminated ...
1
vote
0answers
22 views

some users cannot access g++ include directories

I am trying to compile a c++ program using g++. When I do it as root, it's all good. When I do it as another user (who has some fairly restricted access), I get: fatal error: iostream: No such file ...
2
votes
0answers
28 views

G++ cannot find cc1plus for some users

I am trying to run a PHP script to compile C code through a bash script for an online code submission server. When I run the bash script as root, it all works. When I run it as www-data, the user ...
1
vote
1answer
23 views

Where to find core dumps from gcc and g++ compiled code?

I compiled some C code, once with gcc, and then with g++, so I got two output executable files. When executing both files I found that it told me: Segmentation fault (core dumped) But there is no ...
1
vote
0answers
29 views

Can't figure out Cmake [closed]

I don't have much experience with Cmake and setting environment variables/paramaters, mainly because I've never needed to, things usually compile themselves. I'm trying to install heimdall. And i'm ...
4
votes
1answer
40 views

How to build Asterisk 1.8 on Xenial?

Asterisk 13.1.0 is available in the repos for Xenial. But I'm supporting an application that needs Asterisk 1.8 LTS, because we use a custom plugin. We need to keep using Asterisk 1.8 and building ...
1
vote
2answers
55 views

Problems installing on terminal, I keep receiving a “E: sub-process /usr/bin/dpkg returned an error code (1)”

I have recently installed Ubuntu and I am a Linux noob. Initially all was fine and installations worked as instructed in various threads. I have now encountered a problem while trying to download an ...
0
votes
1answer
44 views

system(“pause”) for Linux g++ C++ [closed]

In windows when compiling, system("pause") works, what is the equivalent in linux?
0
votes
0answers
24 views

Error installing cantera 2.0.0b3

I'm trying to install cantera 2.0.0b3 in Ubuntu 14.04 LTS from this website: openfoamwiki. I see this error in this step of installation, after I type make in terminal. g++ flamelet.o StFlow_2.o ...
0
votes
1answer
39 views

I want to compile C file

I want to compile c file. I use g++ <filename> -o <output-filename> Error: ch34x.c:13:24: fatal error: linux/init.h: Directory or file doesnt exist. (here is hash I cant type here)include ...
0
votes
0answers
44 views

compiling gcc-g++ 4.6.0 alongside gcc 5.2.1 on ubuntu 15.10 amd64

I'm trying to compile gcc 4.6.0 alongside gcc 5.2.1 on Ubuntu 15.10, with OS 64bit. I followed the instructions here and here. For the source I use gcc-4.6.0.tar.bz2. I installed all prerequisites and ...
1
vote
2answers
174 views

Unable to install build-essential, held broken packages

So I was trying to set up my computer for development. I installed ubuntu 14.04 LTS. I wanted to write a hello-world-program. However I can not compile it. After some searching, I tried sudo apt-get ...
1
vote
1answer
23 views

G++ ubuntu packaging question

dpkg -s g++ Package: g++ Status: install ok installed Priority: optional Section: devel Installed-Size: 16 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Architecture: ...
0
votes
0answers
108 views

How to install g++-4.4.7 RedHat Compiler

I am trying to install the specific g++ compiler version in my terminal on Ubuntu VM. I am using a server to compile my c++ program and I need the same compiler on Ubuntu. Calling g++ --version on the ...
0
votes
1answer
127 views

How to upgrade g++ to the latest version

Newbie here. I just got an error running from the terminal a C++ program I wrote: error: ‘stoi’ is not a member of ‘std’. They told me the compiler is too old. I'm using Ubuntu 14.04. My g++ version ...
0
votes
0answers
79 views

which gcc version

I have ubuntu 14.04 and I want to install a program that asks enter code here me this What is your C++ compiler? [] so I am wonder how to answer and I used this command to know my version gcc -v ...
0
votes
1answer
50 views

Broken dependencies issue is faced immediately after the first install of Ubuntu 14.04.3?

I followed these steps just to get rid of broken dependencies issue but to no avail. A fresh install of ubuntu 14.04.3 LTS Tried to install g++ by sudo apt-get install g++ BOOM... Broken ...
2
votes
1answer
278 views

sudo apt get-install g++ unmet dependencies

Looked through a few questions with similar issues and none of the solutions have worked. The issue is: $ sudo apt-get Install g++ The following packges have unmet dependencies: g++ : Depends:g++-4.8 ...
1
vote
0answers
22 views

Find how does make call g++ when building

I downloaded a program that in order to install it i have to execute the following commands: cmake .. make sudo make install The problem is that i am trying to customize the building flags without ...
1
vote
1answer
44 views

Newest Mplab software that works with Ubuntu and ICD2

I have an old ICD2, used with an old version of MPLAB Integrated Development Environment (IDE) under Windows. Now I need to use this hardware again for a microcontroller but my OS is nowadays Kubuntu ...
3
votes
2answers
207 views

g++ compiled application doesn't work

I wrote a simulation code with C++ and compiled it into an executable using g++. However, the output file doesn't do anything when double clicked. I checked "allow file to be used as executable" as ...
0
votes
1answer
401 views

How to use gcc 4.9 when it's installed in same directory as newer gcc

I've got installed both gcc 5 and gcc 4.9 in same directory (/usr/bin). Using nvcc with --compiler-bindir is impossible since both gccs are in same directory. I need to run command nvcc --compiler-...
0
votes
1answer
180 views

Why do I get a “Permission denied” error every time I try to execute a C++ program?

Every time I try to execute a program, no matter what program, I get this message: bash: ./filename.cpp: Permission denied When I compile I have no problems, it works fine. But when I want to ...
0
votes
1answer
217 views

14.04.01 32-bit: Missing g++ 64-bit include files when cross-compiling

So, I've got 32-bit Xubuntu 14.04.1 installed. We have some interface code where we intend to release SOs for the various platforms we support, and Windows DLLs. (Yes I know, binary release bad, but ...
0
votes
0answers
84 views

ubuntu 15.10, jsoncpp, and clang++

On upgrading from 15.04 to 15.10, I stopped being able to compile against libjsoncpp using clang++. (Using g++ works fine.) As far as I can tell, it would suffice to recompile libjsoncpp with clang++...
2
votes
1answer
278 views

“ g++ not installed ” even after installing it “ sudo apt-get install g++ ”

i recently installed Ubuntu on a VMware and following a tutorial... gcc works for me, but when i try g++, it says " The program 'g++' is currently not installed. You can install it by typing: sudo ...
0
votes
0answers
81 views

how to install git.zip and g++.zip files in ubuntu 14.04(internet not there in my system but ZIP files there)?

Actually in my system INTERNET is not there,but in another system i have downloaded git and g++ ZIP files, but how to install that zip files tell me?
0
votes
1answer
527 views

C++ header files for HDF5 are missing

I am trying to compile a C++ program using g++ which uses the H5Cpp.h header file. g++ is producing a fatal error saying: fatal error: H5Cpp.h: No such file or directory I have already installed ...
0
votes
1answer
61 views

Can't use g++ compiler

I tried to do this: $ g++ The program 'g++' is currently not installed. You can install it by typing: sudo apt-get install g++ $ sudo apt-get install g++ [sudo] password for user: Reading package ...
0
votes
0answers
57 views

cannot start freefilesycn after update to version 7.6

I updated my FreeFileSync-installation recently to version 7.6. After doing this I'm not able to start FFS anymore with this error ./FreeFileSync: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `...
0
votes
0answers
219 views

G++ Compiling error when making from source?

I am trying to install bitcoin server using this guide https://www.sky-ip.org/configure-bitcoin-node-debian-ubuntu.html However when I make, I see the error g++: internal compiler error: Killed (...
2
votes
1answer
170 views

After updating to 15.10, my scopes projects fail to build for the unity-scope-tool. “error: g++ version must be 4.9!”

I recently upgraded to Ubuntu 15.10. I have been making scopes, and many of my scopes projects stopped building after the upgrade. My work process consists of running the scopes first in the unity-...
0
votes
0answers
13 views

G++ does not install 4.8 [duplicate]

I am using 12.04 and trying to compile a file using -std=c++11 in g++. I need to update to 4.8, but every time I try to it says 4.8 is the most current version, but g++--version tells me I have g++ 4....
2
votes
1answer
321 views

Can't install g++ Ubuntu 14.04.3

I tried "sudo apt-get install g++" I got a long string of qtdeclarative5-qtfeedback-plugin is already the newest version. gnome-power-manager is already the newest version. Ending in: 0 ...
1
vote
1answer
351 views

Install gcc/g++ on Ubuntu Phone

My back is so sore and it hurts to sit. However, I need to do my coding assignment. Will it be possible to install gcc/g++ on my Ubuntu Phone and compile my code on it? I tried running sudo apt-get ...
0
votes
0answers
30 views

iulib - header not found when compiling test cc files

I installed iulib (https://github.com/tmbdev/iulib) by following the instructions in the install file and downloaded the ubuntu-packages, then when I tried to compile and run a cpp file namely: test-...
5
votes
1answer
4k views

Install g++ ubuntu 14.04 Depends: g++-4.8 (>= 4.8.2-5~) but it is not going to be installed

I just typed: sudo apt-get install g++ and got: The following packages have unmet dependencies: g++ : Depends: g++-4.8 (>= 4.8.2-5~) but it is not going to be installed E: Unable to correct ...
0
votes
0answers
30 views

Building OpenGL program: Cannnot find -lGL - but bumblebee, nvidia drivers and libgl1-mesa-dev are installed?

I am trying to compile an open gl program on xubuntu 15.04. I have installed bumblebee, the nvidia driver 304 and the libgl1-mesa-dev library. Inside /usr/lib I have the file libGL.so.1. What's ...
0
votes
0answers
17 views

get URI's of g++ dependencies [duplicate]

I have g++ installed on my computer, I have another computer that doesn't have any connection to the internet. and I need to install g++ on that computer. my question is- how can I get a list of URI'...
0
votes
1answer
91 views

g++4.9 -fvtable-verify link error: cannot find vtv_start.o

I am running g++ 4.9.2.0ubuntu1~14.04 (installed from the toolchain ppa: ppa:ubuntu-toolchain-r/test), and I want to use the Virtual Table Verification (VTV) feature (-fvtable-verify in C++ dialect ...
0
votes
0answers
16 views

Using aliases with command line arguments [duplicate]

I'm using the g++ compiler to compile my c++ code. I've already created an alias g++='g++ -std=c++11 -o' and it works fine. However I want to be able to create an alias such as grun or gr++ that ...
1
vote
1answer
803 views

Ubuntu14.04 can not install g++

My computer environment: Ubuntu 14.04, 64 bit OS; gcc version: gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) I tried to install g++ by executing: sudo apt-get install g++ Then I got this output ...
0
votes
0answers
57 views

Unable to install g++ package

I get the following error, when I'm trying to install the g++ package. The following packages have unmet dependencies: g++ : Depends: g++-4.8 (>= 4.8.2-5~) but it is not going to be installed E: ...
0
votes
1answer
385 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 ...
-2
votes
1answer
55 views

Not able to find out g++

I have installed g++ in Ubuntu 12.04 from Ubuntu software center to write, c and c++ and to complie, but I am not able to find out where is the software gone after installation, please help me how to ...
0
votes
0answers
87 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
117 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
53 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 ppa:...
1
vote
0answers
668 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
40 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 ...