This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcov support for shared library
- From: "Neuberger, Daniel [USA]" <neuberger_daniel at bah dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Tue, 14 Sep 2010 20:28:07 -0400
- Subject: gcov support for shared library
Hi,
Does gcov support shared libraries now? I'm using gcc 4.5.1. I've found conflicting reports elsewhere.
gcov data files (.gcda) are produced for my test program, but not for the shared library it is testing. Everything compiles fine though and the .gcno files are produced for both the test program and the shared library. Also, if I compile all of the source files (those from the library and those from the test program) into one executable, the .gcda files are produced correctly. Is there any way to make it work with a shared library?
Thanks.
- Daniel