This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Using gcov with dynamic libs
- From: "Larry Martell" <larry dot martell at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 29 Apr 2008 13:57:48 -0600
- Subject: Using gcov with dynamic libs
I am trying to use gcov with a C++ program that is dynamically linked.
I am using g++ version 4.2.1, and I have built my app with the
-ftest-coverage -fprofile-arcs options. When I try to run my program
it fails with:
ld.so.1: foo fatal: libgcc_s.so.1: version `GCC_3.3' not found
(required by file /usr/local/pkg/gcc-4.2.1/lib/libstdc++.so.6)
ld.so.1: foo fatal: libgcc_s.so.1: open failed: No such file or directory
Killed
Can gcov be made to work with dynamic libs? If so, how?
TIA!
-larry