Open oschonrock opened 3 years ago
I met same problem. There is no problem with single include header file. But when I try to switch to a static library + common header file same error occured in my libraries. The reason I want to do it because single header brings some warnings I have to shut down (my project errors are treated as errors). Same OS, clang-12 (compiled by myself with compiler-rt), linker is lld. Please, disable code coverage flag by default just like you did with CSV_DEVELOPER. Thank you.
Adding link_libraries(gcov)
to CMakeLists.txt apparently fixes the issue.
This is the linker error... googling suggests, it is to do with
--coverage
commenting out this line in
csv-parser/CMakeLists.txt
works around the problem
this is with clang-12 on ubuntu 20.04 and both
ld
andlld