The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
14 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
293 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
151 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
120 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
30 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
658 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
74 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
123 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
617 views

Debian 7: Add repository for gcc-4.8 and g++-4.8

I want to be able to sudo apt-add-repository with a ppa for gcc-4.8 and g++-4.8. I was able to do this on Ubuntu using (after adding the ppa) sudo apt-get install g++-4.8. So far I have been able to ...
0
votes
1answer
40 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
10k 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
1k 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
396 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
641 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 ...