Closed liuqun closed 5 years ago
No need to switch specifically to Clang. Looks like GCC now explicitly requires linking against libatomic, so it just needs another compiler flag. It's pretty irritating when the C / POSIX standard library is spread out such that users must know its structure for each particular system (-lm, -lsocket, -lnsl, -lrt, and now -latomic) but whatever.
make CC=clang
successGCC-7.4 and GCC-8 with /usr/bin/ld error message: