I am not a C++ developer, but I am trying to get a C++ compiler for running my Lua-lsp and linters. I tried to install gcc
with homebrew, but still the version I checked is always 4.2.1
.
I am installing like this:
brew install gcc@7
When I do version check, I get this
gcc -dumpversion
// 4.2.1
Is the version wrong or is the way I install is incorrect?