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

learn more… | top users | synonyms

0
votes
1answer
29 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 ...
0
votes
1answer
46 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 ...
3
votes
2answers
406 views

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

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
38 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
66 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
45 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
76 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
33 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
34 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
637 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
120 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
60 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
31 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
8k 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
108 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
31 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
102 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
117 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 ...
12
votes
4answers
11k 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
104 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
1k 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
241 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
2k 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
561 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
140 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
4k 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
424 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
240 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
252 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
0answers
563 views

How do I compile with GL/glew.h?

Whenever I try to compile a C++ file using: g++ cgaTOH.cpp I keep getting the following error: fatal error: GL/glew.h: No such file or directory Could someone advise on how to get GL/glew.h ...
0
votes
0answers
44 views

Alter Netbeans Debug options

I would start with specifications first. 1)Ubuntu 12.04 x86 2)NetBeans IDE 7.3.1 3)fuzzylite 3.1 My Query: The image in the above link the order of the debug option is incorrect as flag ...
0
votes
1answer
74 views

what is the command for compiling a 32-bit binary in Ubuntu 13.10?

I am trying to compile my program. Normally I just put the command gcc example.c -o example . So this compiles the .run file into 64-bit. But I want it as 32-bit. What is the command? I have installed ...
0
votes
1answer
154 views

Unable to include libv8 in a c++ app

I was trying to use the libv8-3.8.9.20 package in my c++ script. The package is installed in /usr/lib/ as supposed but if I try to compile my script using g++ script.cpp -Iv8 command, nothing happens. ...
0
votes
1answer
1k views

How to install boost 1.53 or 1.54 from terminal?

I'd like to install boost 1.53 or 1.54 from terminal in Ubuntu 12.04. How do I do this? I used the libboost command and it gave me 1.48, whereas I need a more recent version. Thanks in advance
8
votes
3answers
3k views

Downloaded g++ 4.8 from the PPA but can't set it as default?

I have downloaded g++ 4.8 on Ubuntu 12.10 by doing: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install g++-4.8 but when I do: sudo update-alternatives ...
0
votes
1answer
3k views

Terminal commands for installing g++ 4.8?

Could somebody please advise how I could install g++ 4.8 ? I understand its not an official release yet (and that I would need to manually download a file) but I get internal compiler bug issues with ...
0
votes
1answer
865 views

“The program 'g++' can be found in the following packages”

I have g++ 4.6, 4.7 and 4.8 installed, but not g++ itself. I am using Ubuntu 12.04. If I do: g++ --version it says: The program 'g++' can be found in the following packages: * g++ * ...
0
votes
0answers
809 views

Get latest G++ (4.7) for C++11?

Netbeans is complaining because I selected C++11 and my G++ version is 4.6 (4.7 supports C++11). However, I have tried: sudo apt-get install build-essential But g++ --version tells me I have ...
1
vote
2answers
769 views

Where or what are the instructions for installing FMOD Ex for Linux to use in g++?

I'm looking for the instructions on how to install FMOD. I want to do extra credit for my computer graphics assignment - sound effects. A teammate wants me to go with something simple, and he ...
0
votes
1answer
149 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
0answers
582 views

g++ v 4.8.1 doesn't compile simple code, using thread header

I have ubuntu 13.10 64bit. The use of thread with the g++ v 4.8.1 compiler gives an error message : terminate called after throwing an instance of 'std::system_error' what(): Enable ...
0
votes
1answer
155 views

Problem with function fpos_t and fgetpos [closed]

when I try to use those functions it sends this error: main.cpp: In function ‘int main()’: main.cpp:11:17: error: conversion from ‘int’ to non-scalar type ‘fpos_t {aka _G_fpos_t}’ requested ...
-1
votes
1answer
736 views

How do I compile lbflow 1.1?

After using "sh ./configure" command, I encountered another error during lbflow package installation (a scientific one). The sequence of operations is here with error: ./configure --disable-gts ...
0
votes
1answer
481 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" ...
4
votes
1answer
37k views

How to install g++ compiler?

I have tried the following: sudo apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest ...
0
votes
1answer
535 views

g++ installation unmet dependencies error [duplicate]

I am trying to install g++.But not able to do it. amol@amol-System-Product-Name:~$ sudo apt-get install g++ [sudo] password for amol: Reading package lists... Done Building dependency tree ...
0
votes
2answers
204 views

not able to install g++

This is what I get when I run sudo apt-get install g++: libgtksourceview-3.0-0 is already the newest version. libgconf-2-4 is already the newest version. ibus-gtk is already the newest version. ...
0
votes
1answer
500 views

can't install g++ (worked fine before?)

Came back to my machine today, g++ won't run from the command line. output from sudo apt-get install g++: The following packages have unmet dependencies: fglrx : Depends: dkms but it is not ...
1
vote
0answers
874 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 ...