LinuxQuestions.org
Review your favorite Linux distribution.
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 04-13-2004, 12:09 AM   #1
mu664life
LQ Newbie
 
Registered: Dec 2003
Posts: 9

Rep: Reputation: 0
how to compile with gcc 2.95


hi all, i just installed knoppix 3.3
i'm very new at this so please forgive me for asking stupid questions...

one of my projects need to use the gcc 2.95 version, now when i look in the kpackage, it said that version 2.95 is already installed, but when i check it with gcc -v, it said it's version 3.3.3

so is 2.95 really already installed?
if so, how can i use it?

i'm new at this so please show me some examples

thank you
 
Old 04-13-2004, 04:11 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: how to compile with gcc 2.95

Quote:
Originally posted by mu664life
hi all, i just installed knoppix 3.3
i'm very new at this so please forgive me for asking stupid questions...

one of my projects need to use the gcc 2.95 version, now when i look in the kpackage, it said that version 2.95 is already installed, but when i check it with gcc -v, it said it's version 3.3.3

so is 2.95 really already installed?
if so, how can i use it?

i'm new at this so please show me some examples

thank you
In the shell where you will compile type in and then enter export CC=/usr/bin/gcc-2.95 if the application complains it still cannot find the compiler then as root ln -sf /usr/bin/gcc-2.95 /usr/bin/gcc to have the symbolic link point to the 2.95 compiler.

Last edited by HappyTux; 04-13-2004 at 04:12 AM.
 
Old 04-14-2004, 12:08 AM   #3
mu664life
LQ Newbie
 
Registered: Dec 2003
Posts: 9

Original Poster
Rep: Reputation: 0
wow....thanx for the quick reply

i set it as a link...call gc
and when i type:
./gc -v
it said that it's version 2.95.4
so it works......but when i use the make command, it still uses the 3.3.3 version
is there anyways that i can just disable the version 3.3.3???

also, when i just try to compile the maintest.c file with the 2.95 version, it said none of the include files exits......

my program work in our school's account.....but just not in my own linux machine.....

maintest.c:1: iostream.h: No such file or directory
maintest.c:2: string: No such file or directory
maintest.c:3: iomanip: No such file or directory
maintest.c:4: cstring: No such file or directory
maintest.c:5: cstdioh: No such file or directory
In file included from maintest.c:9:
GeneralList.h:4: stdexcept: No such file or directory
GeneralList.h:5: string: No such file or directory


any idea???
 
  


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
compile C++ with GCC phongnh0211k Linux - Software 3 01-13-2005 01:40 AM
Compile with GCC occ Solaris / OpenSolaris 6 10-29-2004 10:19 AM
gcc can't compile zionz Linux - Newbie 2 09-02-2004 11:34 PM
How to compile GCC if you don't have GCC? khermans Linux - Software 13 05-12-2004 06:42 PM
Can't compile GCC Mikessu Linux - Software 2 05-05-2004 03:59 PM

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

All times are GMT -5. The time now is 07:18 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