PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

how to compile with g++44

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mhasumi



Joined: 05 Jun 2013
Posts: 2

PostPosted: Wed Jun 05, 2013 11:44 pm    Post subject: how to compile with g++44 Reply with quote

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
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6213
Location: The Portland Group Inc.

PostPosted: Thu Jun 06, 2013 11:27 am    Post subject: Reply with quote

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
View user's profile
mhasumi



Joined: 05 Jun 2013
Posts: 2

PostPosted: Thu Jun 06, 2013 6:55 pm    Post subject: Reply with quote

Thank you, Mat.

I will negotiate it to our administrator with your information.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group