CrazyEngineers
  • Is It Possible To Use More Than One Version Of GCC ?

    Abhishek Rawal

    Abhishek Rawal

    @abhishek-fg9tRh
    Updated: Oct 26, 2024
    Views: 1.0K
    I have currently enabled testing and multilib testing repo and thus my GCC is updated to 5.1.0
    Problem is some of programs can't be compiled with optimizations enabled. Is there anyway to use two versions of GCC in one system (5.1.0 & < 5.0.0) and switch as per my like ? like we do in python ?
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Kaustubh Katdare

    AdministratorJul 1, 2015

    #-Link-Snipped-#
    Are you sure? This action cannot be undone.
    Cancel
  • Abhishek Rawal

    MemberJul 1, 2015

    Never mind, found the solution.
    However, I have to make changes in all my pkgbuild now :/ :/
    Are you sure? This action cannot be undone.
    Cancel
  • rahul69

    MemberJul 2, 2015

    I am guessing, we need to install at different paths manually and set the path each time we want to use, however, please share the solution/link so that other may also be benefited. 😀
    Are you sure? This action cannot be undone.
    Cancel
  • Abhishek Rawal

    MemberJul 2, 2015

    rahul69
    I am guessing, we need to install at different paths manually and set the path each time we want to use, however, please share the solution/link so that other may also be benefited. 😀
    MAN page ftw! <a href="https://gcc.gnu.org/faq.html#multiple" target="_blank" rel="nofollow noopener noreferrer">GCC Frequently Asked Questions- GNU Project</a>
    I hate this method tho, there should be something like 'gcc -select' to switch to other versions, like we do for Java 😛
    Are you sure? This action cannot be undone.
    Cancel
  • simplycoder

    MemberJul 6, 2015

    It seems that I am late to reply here.
    I too came across the same method,
    I agree that it is very cumbersome if you need to switch every time.

    I need to try if this configuration can be a part of make file or similar
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register