3

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!.

1 Answers1

1

You forgot the linker flags -fprofile-arcs -ftest-coverage when linking your application/dynamic library.

OlivierM
  • 2,820
  • 24
  • 41