This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]