pavan kumar
pavan kumar

Reputation: 41

Loading a shared library failed with undefined symbol: __gcov_merge_add error

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

Answers (1)

OlivierM
OlivierM

Reputation: 3212

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

Upvotes: 1

Related Questions