c - Must the main() executable program be compiled and linked with gcov options to use gcov on shared library -


is there way gcov provide coverage analysis of shared library without building main() program uses shared library?

i have external users of shared library have own executable programs use library , need test code coverage programs not have access source code.

surely else has encountered problem gcov.

the main() , shared library written in c. main() program have source code able use gcov fine execution trace of calls placed shared library.

i have not seen examples gcov used without compiling , linking main() program. never less asking question hope else has found work around solution.

a similar question has been posted on gcc-help.

  • warren ferguson


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -