The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
35 views

Running ubuntu binary on CentOS with all shared libs installed results in ld SIGSEGV

I'm trying to get a binary compiled on Ubuntu to run on CentOS 7 (both 64bit, one host, the other vm). So far I've copied the binary with all the shared libs. I no longer get the missing library ...
1
vote
1answer
39 views

How to set C++11 as my default compiler?

I am using ubuntu. When programming in C++, the nullptr keyword is not recognized by the compiler. It says "it's not declared at this scope". It doesn't work, even though I set the flag -std=c++11
0
votes
3answers
67 views

Do we need to enable G++ on RHEL 6.1

I have RHEL6.1 but I can't compile using g++, when I execute g++, I get the below : -bash: g++: command not found so I assume I don't have g++ but I do have gcc installed. When I run gcc -v. I ...
0
votes
0answers
116 views

Debian wheezy C++11 source package

I'm currently learning debian packaging and I am making a source package for a C++11-based software. Debian wheezy does not have a 4.8+ g++ package, so how could I make a source package on this ...
0
votes
1answer
4k views

linux + g++: command not found

I want to install on my Linux red-hat machine gettext-0.19.1.tar.xz. First I do the following cd gettext-0.19.1 ./configure make During make it fails on g++: command not found libtool: compile: ...
3
votes
1answer
525 views

sudo environment: “g++: command not found”

I have a relatively fresh RHEL 6.5 install, on to which I have installed from source GCCC 4.9. After I installed GCC 4.9, I uninstalled the distro-provided older GCC version via: sudo yum remove gcc ...
0
votes
1answer
315 views

How to install g++ by command line in opensuse 13.1

How can I install g++ by command line in Opensuse? I don't want to use YaST.
2
votes
2answers
5k views

Error in compiling file using gcc: “/bin/sh: g++: command not found”

I want to compile a c++ program in Fedora Linux, but the program isn't compiled correctly. I got the following error: /bin/sh: g++: command not found make[1]: [*.o] Error 127 make[1]: Leaving ...
0
votes
0answers
22 views

Problem with installing mcsima+

I am trying to install mcsima+, but I am facing an issue over step 5 which requires me to compile the program. The instruction I ran for step 5 is, 5. Compile a test program 'stream' - cd ...
3
votes
1answer
2k views

How do I install the latest gcc on FreeBSD?

How do I install the latest gcc on FreeBSD ind set up the system so that this latest version would be used to compile further programs? At the moment of this writing the latest release of gcc is ...
6
votes
1answer
529 views

What does “fno” stand for in g++'s fno-stack-limit compile option?

In the following command: $ g++ -fno-stack-limit what does fno stand for?
0
votes
1answer
40 views

Compilation error on fedora 14

I installed fedora version 14 using virtual box but when I try to compile a program then displayed command not found. After that I tried to install g++ compiler using commands but, the way I followed ...
2
votes
2answers
2k views

Unable to install g++

How to fix this: sahil@sahil-XPS-L501X ~ $ sudo apt-get install g++ Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be ...
3
votes
3answers
553 views

Shortening build command

Is there any way I can shorten this openCV build command? g++ file.cpp -o newFileName `pkg-config --cflags --libs opencv` I tried adding: -o newFileName `pkg-config --cflags --libs opencv` to an ...
0
votes
1answer
307 views

How to make a library linkable with g++ -l argument

How can I make a shared library which is in /usr/lib/some-path linkable with the g++ -l argument when compiling? As far as I know, to do what I want, I need to chmod 0755 the library .so file, create ...
0
votes
2answers
46 views

Where does g++ store compiled sources?

I compiled an application with a Makefile and g++ and it turned out, that g++ doesn't have to recompile the whole application again when I modify the Makefile (I changed to paths to the dynamic link ...
0
votes
1answer
8k views

install g++ on RHEL 6 [duplicate]

I'm trying to install g++ (with gcc already installed) on my Red Hat Enterprise Linux 6. I've tried the following: $ yum install g++ $ yum install c++ $ yum install gcc-g++ $ yum install gcc-c++ ...
1
vote
0answers
116 views

Getting g++ to work on Mac with Xcode

In trying to get g++ to work in terminal I ran a command which I have now learned is outdated. I think this is why running g++ in terminal returns an error but I am unsure. If I try to run any .cpp ...
0
votes
1answer
444 views

How to set g++ 4.8 to be the default after installing? [closed]

After executing the following on Ubuntu 12.10 how do I set 4.8 to be the default C++ compiler? sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install g++-4.8 ...
0
votes
1answer
76 views

Error with g++47 make compilation?

~/cddir>ls hw1 machine.cpp main.o makefile~ report2.txt user.cpp hw11submit.sh machine.h makefile report1.txt report2.txt~ user.h hw12submit.sh ...
3
votes
2answers
18k views

How to install g++ 4.7.2 & c++11 on CentOS 5.x?

I'm trying to install the latest stable g++ and c++11. My host did it through yum install and thought that it was the latest, but it's not, and they are now saying that this is beyond their level of ...
2
votes
1answer
2k views

set default g++ on CentOS?

I'm a linux virgin and have only been programming c++ for 2 weeks, so please bear with me. I'm trying to set the default g++ to 4.7.2 which I'm told by my host is installed (I'm also told that c++11 ...
4
votes
1answer
540 views

Can I use a chroot on my dev machine to build an application to run on embedded linux installation?

I am trying to develop an application to run on an embedded linux installation. It comes with an older version of libc than I have on my development maching. If I were to create a chroot environment ...
2
votes
2answers
1k views

Makefile compiles unchanged files

Made an effort to get the object files in another directory, but that directory would otherwise reflect the source directory tree. Got that to work, but there is a missing piece at the $(OBJ): line ...