LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-05-2007, 04:52 PM   #1
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643

Rep: Reputation: 32
Changing default gcc compiler


I want my gcc compiler to default the the gcc4.2 latest version. I am having trouble to make this change permanent....
 
Old 09-05-2007, 06:14 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
How are you making the change? You might want to try ln -sfn /usr/bin/gcc-4.2 /usr/bin/gcc to change the link or I would just put export CC=/usr/bin/gcc-4.2 in your .bashrc to set the compiler you want used.
 
Old 09-05-2007, 06:44 PM   #3
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by HappyTux View Post
How are you making the change? You might want to try ln -sfn /usr/bin/gcc-4.2 /usr/bin/gcc to change the link or I would just put export CC=/usr/bin/gcc-4.2 in your .bashrc to set the compiler you want used.
ahh yes.....that looks familiar...lol...thanks....i will change to CC=/usr/bin/gcc-4.2

many thanks....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
why is gcc(and not g++) default compiler in debian? ciden Programming 7 06-03-2008 04:44 AM
making old version of GCC your default compiler knobby67 Programming 4 08-01-2006 04:21 PM
default array size for variable in gcc compiler mlaich Programming 13 01-04-2006 05:40 PM
GCC Compiler rr_rr_29 Linux - Software 2 10-17-2005 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration