1

My situation

  • Mac OS Monterey 12.1 (M1, 2020)
  • Visual Studio Code v1.64.2

Everytime I try to compile cpp file, the warning below is shown in terminal.

ld: warning: dylib (/usr/local/Cellar/gcc/11.2.0/lib/gcc/11/libstdc++.dylib) was built for newer macOS version (11.3) than being linked (11.1)

I have no idea how to fix this.
I read this stackoverflow, and tried the below command, but did not change the situation.

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
ktakehi
  • 119
  • 1
  • 1
  • 8

0 Answers0