Reputation: 41
I am trying to integrate gcov for an existing build environment. Adding -fprofile-arcs and -ftest-coverage to CXXFlags got me through building and generating .gcno static files with out any issues. But once I start to deploy this package I am running into this below error failing to load a shared library
Error message undefined symbol: __gcov_merge_add
Can some one please help me with debugging why this symbol definition is missing.
Thanks in advance!.
Upvotes: 3
Views: 811
Reputation: 3212
You forgot the linker flags -fprofile-arcs -ftest-coverage
when linking your application/dynamic library.
Upvotes: 1