The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
11 views

Error building nodejs from source on Debian

I keep getting the same error when running make on nodejs source code. I've looked and some common problems seem to be lack of a c compilier or install g++. I have these and have double checked. Here ...
0
votes
1answer
26 views

Link libraries when compiling g++

This might seem elementary but I am new to Linux and Unix. I am trying to link some libraries my g++ code and I am getting the following error: $ g++ -O myprob.o -o myprob -Wl,-rpath $PATH/lib ...
0
votes
0answers
31 views

Weird G++/AR Compilation issue

I'm working a patch-set to compile dpkg and APT onto Cygwin. I've almost got everything working, but I'm encountering some weird behavior with ar/g++ that I can't explain. APT's stock Makefile uses ...
0
votes
0answers
60 views

custom gcc install include files

I have a custom installation of g++ 4.8.1 in my home directory. However the include files in that installation have no extensions! (except for tgmath.h, fenv.h, complex.h, and cxxabi.h) Thus even if ...
0
votes
1answer
42 views

gdb displays not all variables in KDevelop [closed]

Hoping, the image describes the issue much better than I can do. Generally, I'm debugging a multithreaded application in KDevelop with gdb. I'm debugging the app step by step (F11 shortcut) and have ...
2
votes
1answer
156 views

ld cannot find existing 32-bit libm

I'm only posting after exhausting all other answers I could find on google. I still can't figure out my problem. I try to use g++ to compile in 32-bit on a Red Hat machine. This is my command: ...
3
votes
1answer
135 views

Install gcc4.9 on openSuse 13.1

I need to download and install g++4.9 in order to work with regex in c++11 for a school project. I downloaded the source but it seems it does not work .. I searched for the rpm and 1-ClickInstall and ...
0
votes
1answer
148 views

How do i write a shell script so that when i compile my c++ program it will put the binary into the Binary Directory

I have a directory called Binary and bunch of source files: ./ ├── Binary/ ├── lesson02.cpp ├── lesson04.cpp └── lesson06.cpp when I compile the source code g++ lesson01.cpp -o lesson01 I want ...
1
vote
2answers
204 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
610 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
179 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
1answer
12k 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
730 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
2k 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.
3
votes
2answers
13k 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 ...
4
votes
1answer
7k views

How do I install the latest gcc on FreeBSD?

How do I install the latest gcc on FreeBSD and 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 ...
7
votes
1answer
608 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
60 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
3k 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
907 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
609 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
54 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
20k 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
160 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
938 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
132 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 ...
5
votes
2answers
29k 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 ...
3
votes
1answer
3k 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
682 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
2k 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 ...