This is the mail archive of the gcc@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]

gcov with dynamic c++ libraries


(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

=====


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