launch: program '/Users/steve_dir/Documents/All_Code/C++_code/c++_vscode/test1' does not exist
04:53 27 Dec 2025

I recently changed to use mac. I just want to run a simple cpp file in vscode for macos, and I have installed c/c++, c/c++ extension, code runner. I could not understand how this error happen

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

my code:

#include
using namespace std;

int main()
{
    cout<<"ham"<<'\012';
    return 0;
}
c++ macos clang