If you do the export in a shell it will only apply to that process. If you 
want, you can also have a "gem5_env" or similar that you source every time you 
do gem5 work. Lastly, you can add the CXX=g++44 and CC=gcc44 on the command 
line.

Hope that helps.

Andreas

From: "SHARAN MORA (RIT Student)" <sxm5...@rit.edu<mailto:sxm5...@rit.edu>>
Reply-To: gem5 users mailing list 
<gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Date: Sunday, 27 January 2013 14:46
To: gem5 users mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] (no subject)

I want to specify gem5 which g++ compiler to use (in this case g++44), not 
change default compiler of bash. In which file can I set the compiler path
Thanks


On Sat, Jan 26, 2013 at 9:50 PM, Fangfei Liu 
<fangf...@princeton.edu<mailto:fangf...@princeton.edu>> wrote:

Hi, you can add an environment variable CXX. For example, if you use bash, you 
can add a line in your .bashrc file:



export CXX=g++44



Hope it helps.

________________________________
From: gem5-users-boun...@gem5.org<mailto:gem5-users-boun...@gem5.org> 
[gem5-users-boun...@gem5.org<mailto:gem5-users-boun...@gem5.org>] on behalf of 
SHARAN MORA (RIT Student) [sxm5...@rit.edu<mailto:sxm5...@rit.edu>]
Sent: Saturday, January 26, 2013 9:43 PM
To: gem5-users@gem5.org<mailto:gem5-users@gem5.org>
Subject: [gem5-users] (no subject)

Hi Everyone,
How do I set gem5 to use g++44 compiler instead of g++ compiler. I cannot 
directly upgrade my gcc version 4.1.2 as I use Centos 5.
Thanks,

_______________________________________________
gem5-users mailing list
gem5-users@gem5.org<mailto:gem5-users@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to