This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcov with dynamic c++ libraries
- From: Evan Bigall <evan at whereisevan dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 17 Dec 2003 20:23:29 -0800 (PST)
- Subject: gcov with dynamic c++ libraries
- Reply-to: evan at whereisevan dot com
(GCC) 3.2.2
I've got a dynamic library (.so), generated from c++ code and
instrumented with -ftest-coverage and -fprofile-arcs. In all the ways
I've tried to link it (and they are plentiful) the resulting
executable always fails with:
./a.out: relocation error: foo.so: undefined symbol: __bb_init_func
bb_init_func being part of the gcov instrumentation runtime support.
Is gcov not supported for dynamic c++ libs or am I missing something.
Thanks for the help,
Evan
=====