How do I change gcc version in Linux?

Thảo Justin

New member
How do I change gcc version in Linux?
Answer
Direct link to this answer
  1. Open the terminal window in LINUX and execute the command:
  2. $ which gcc.
  3. This will provide the symbolic link (softlink) to the default version of GCC.
  4. Navigate to the directory which has this softlink.
  5. Change the softlink to point to the version of GCC that you want to use.
 

Tìm kiếm

Back
Top