| View previous topic :: View next topic |
| Author |
Message |
mhasumi
Joined: 05 Jun 2013 Posts: 2
|
Posted: Wed Jun 05, 2013 11:44 pm Post subject: how to compile with g++44 |
|
|
Hi,
I am using PGI 12.10 on CentOS 5.8 .
There is two version of GCC 4.1.2 and 4.4.7 . The default is 4.1.2.
I am looking for compiling with g++44( secondary GCC 4.4.7) .
Are there any suggestions to switch the secondary GCC (excluding to upgrade OS, to uninstall GCC 4.1.2, or to reinstall PGI) ?
Thanks in advance.
| Code: |
$ cat /etc/redhat-release
CentOS release 5.8 (Final)
$ g++ --version
g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++44 --version
g++44 (GCC) 4.4.7 20120313 (Red Hat 4.4.7-1)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Thu Jun 06, 2013 11:27 am Post subject: |
|
|
Hi mhasumi,
The quick method is to edit your installation's "localrc" file to point to the new GCC installation. The caveat is that for compatibility reasons, we provide some system header files which can change depending upon the GCC version. Also, older PGI versions may not be compatable with newer GCC installations.
Hence, the preferred method is to re-install after you have switched to using GCC 4.4.7 by default. We don't have a method to switch between GCC installation on a single host.
- Mat |
|
| Back to top |
|
 |
mhasumi
Joined: 05 Jun 2013 Posts: 2
|
Posted: Thu Jun 06, 2013 6:55 pm Post subject: |
|
|
Thank you, Mat.
I will negotiate it to our administrator with your information. |
|
| Back to top |
|
 |
|