Results 1 to 7 of 7
  1. #1
    Member snowmobile74's Avatar
    Join Date
    Oct 2001
    Location
    Iowa
    Posts
    257

    Gcc question . . .

    can someone direct me where I found out how to install 2 versions of gcc and how I take advantage of them.

    ex gcc 2.95 default
    and gcc 3.22 secondary
    Last edited by snowmobile74; 04-10-03 at 07:11 PM.

  2. #2
    Senior Member Titan386's Avatar
    Join Date
    Jun 2002
    Posts
    2,294
    Does this answer your question:
    http://gcc.gnu.org/fom_serv/cache/14.html

    If not, maybe I'm unclear on what your trying to do.

  3. #3
    Senior Member XWRed1's Avatar
    Join Date
    Oct 2001
    Posts
    4,464
    What are you writing that necessitates two gcc versions? Must be pretty hardcore.

  4. #4
    Member moorcito's Avatar
    Join Date
    Sep 2002
    Location
    Chicago, IL
    Posts
    980
    Maybe he's going to compile something that won't work with the newer version of gcc?

  5. #5
    Member snowmobile74's Avatar
    Join Date
    Oct 2001
    Location
    Iowa
    Posts
    257
    I was told by my freind (a comp sci major) that he seems to think that some programs are not tested with all versions of gcc wich seems logical enough. He recomended that if I update gcc that I make 2 installs. because slackware is supposed to be good about getting the right gcc version that is supposed to work with just about all programs. well I just finished a messy update to slackware 9 (it was a learning experience ) and looks like it comes with gcc 3.22 so im kinda doubting its really necessary to have 2.95 (8.1 standard gcc) around but idk. can anyone shed some light on this issue?

  6. #6
    Member moorcito's Avatar
    Join Date
    Sep 2002
    Location
    Chicago, IL
    Posts
    980
    For some reason, I could have swore that Slackware 9 came with both versions, but I just checked my laptop and was wrong. I've been using 9 for a week or two now, and have compiled most of it by hand, and so far I haven't had any problems. I am willing to bet that unless you are trying to compile a really old program, most everything should work just fine, and since you updated to Slackware 9, everything that that you installed was compiled with 3.22, so anything new that you compile will interact with out any problems.

    So, all in all you should be ok.

  7. #7
    Senior Member XWRed1's Avatar
    Join Date
    Oct 2001
    Posts
    4,464
    2.95 is older and more compatible, but most everything works fine on 3.x. Everything on my system is built with gcc 3.x.

    I think you'll be fine with just one version.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •