Reputation: 2514
Using clang to link a program fails like this:
clang
/usr/bin/x86_64-pc-linux-gnu-ld: stackoverflow.o: undefined reference to symbol '__cxa_free_exception@@CXXABI_1.3'
Upvotes: 3
Views: 3892
Like with gcc, you have to use clang++ to link C++ programs
Upvotes: 5