Trying to compile a c project then encountered error like below
undefined reference to `__llvm_profile_instrument_target'
undefined reference to `llvm_gcda_start_file'
undefined reference to `llvm_gcov_init'
This is due to using the wrong compiler! gcov
is meants to be built with GCC. Therefore switching the compiler to GCC fixed the build
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.