Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22235

Why do programs detect older version of GCC even though I have installed the latest one?

$
0
0

I have installed gcc 9.2 so if I do

gcc --version 

I get

gcc (GCC) 9.2.0

But whenever I install something I get the following

-- The C compiler identification is GNU 7.4.0

If I do

which gcc

I get

/usr/local/bin/gcc

and

/usr/local/bin/gcc --version

gives me

gcc (GCC) 9.2.0

How can I solve this?


Viewing all articles
Browse latest Browse all 22235

Trending Articles