|
-
May 24th, 2010, 03:09 PM
#1
Trouble installing gcc 4.5
I'm trying to install gcc 4.5 on a Linux box (Redhat 5.5) so that I can begin playing around with the C++0x features it offers. However, I don't have admin on the server, so I'm trying to install it locally. (I've contacted the admin about this, but who knows how long it'll take to get anything done that way.)
I convinced it to build from source just fine, but when I try to build with it, the standard library appears to be inaccessible.
My attempted solution was to use the "alias" command like so:
alias g++0x="/u1/public/gcc-4.5.0/host-x86_64-unknown-linux-gnu/gcc/g++ -I/u1/public/gcc-4.5.0/libstdc++-v3/include/ -I/u1/public/gcc-4.5.0/libstdc++-v3/include/std/ -I/u1/public/gcc-4.5.0/libstdc++-v3/include/c/ -I/u1/public/gcc-4.5.0/libstdc++-v3/include/c_compatibility/ -I/u1/public/gcc-4.5.0/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/ -I/u1/public/gcc-4.5.0/libstdc++-v3/libsupc++/ -std=c++0x"
As you can see, I've been adding directories for a while trying to convince things to start working, but it seems like there's always another one required......I'd like to skip to the end and somehow get a complete list of what I need, and/or convince g++ to simply know where the headers are by default.
Any suggestions?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|