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

learn more… | top users | synonyms

0
votes
3answers
89 views

Problem With g++

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
2answers
781 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
724 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
30 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? ...
1
vote
1answer
803 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
1k 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
481 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
233 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
223 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
143 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
426 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

How to make g++ find my header file?

I tried to compile my .cpp using g++. I wrote this in the terminal: g++ Documents/cpp/demo.cpp -o Documents/cpp/demo I had included conio.h, but somehow it does not recognise it and gives an error. ...
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
vote
0answers
817 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
35 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
0answers
90 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 ...
0
votes
0answers
78 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
16 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
0answers
92 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 ...
0
votes
0answers
237 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
0answers
489 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
41 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
0answers
633 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 ...
0
votes
0answers
542 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
0answers
330 views

cannot find include file “fstream.h”

I need to compile files using makedepend. The command is makedepend -v -I/usr/include/g++-3/ $(IFLAGS) -- $(CFLAGS) -- $(SRCS) which was given as part of the MakeFile (the MakeFile was not created by ...
0
votes
0answers
104 views

Program exits when building in mingw studio in ubuntu

Is anyone here who uses mingw developer studio in ubuntu? I found this arhive: http://www.iit.upcomillas.es/libroc/mingw-devstudio_linux-2.06.tar.gz I launch the program and everything works well ...