g++4.4 - managed to compile but can't run g++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



DISCLAIMER: I'm not sure if this is the right forum/place to post
this. If there is a more appropriate forum then sorry, but please
direct me to it. END.


I have been wanting to try out some of the features of c++0x that are
being implemented in g++. I'm trying to get g++ 4.4 installed and
going (I want to test/use "ctor() =delete" etc).

After a lot of messing around I finally got g++ to compile and:
"./g++ --version"
reports:
"g++ (GCC) 4.4.0 20080808 (experimental)"

However, when I run
"./g++ test.cpp" (eventually I want "./g++ test.cpp -std=c++0x").
I get:
"g++: error trying to exec 'cc1plus': execvp: No such file or directory"
cc1plus is in the same directory as g++, (.) or current.

Not sure if this is causing problems, but I have the default ubuntu
g++ installed elsewhere.
"which g++"
reports:
"/usr/bin/g++"
And
"g++ --version" (Note no ./)
reports:
g++ (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

If it's necessary/useful, I got and tested g++4.4 by:
Downloaded: "gcc-4.4-20080808.tar.bz2" from
"ftp://gcc.gnu.org/pub/gcc/snapshots/4.4-20080808/"; (I tried using the
svn but couldn't find version 4.4)
Unzipped to: "/make"
"cd /make/gcc-4.4-20080808"
"mkdir target"
"cd target"
"../configure --disable-multilib"
"make" (left overnight - takes many hours)
"cd gcc"
"g++ --version" reports 4.4 as above.
"g++ /make/test/test.cpp" reports the error posted above.

I'm running:
Ubuntu Release 8.04 (hardy) - x86-64 version.
Intel Core2 Duo.

Is there some g++ parameter I need to provide to specify the location
of "cc1plus"?

Thanks for all assistance.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux