SQLite Forum

Compile for Apple Silicon
Login
I get the following with both clang and gcc. Found a post somewhere on The Internet(tm) that suggested trying clang++, which gave me the errors above.

```
sqlite-amalgamation-3370000 % clang -arch arm64 -arch x86_64 -o sqlite_build sqlite3.c 
Undefined symbols for architecture arm64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```