Hello,
I am facing a similar error with clang, I am also using the M1 macbook
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
my code is
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!!!" << endl;
int v = 10;
return 0;
};
I tried what was suggested by eskimo.
His code runs fine for me and I get
file a.out
a.out: Mach-O 64-bit executable arm64
but I am unable to run the simple Hello World program.
I am a beginner at C++
Could someone please help?
Thanks in advance