This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: hidden symbol `__gcov_merge_add' in /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.1/libgcov.a
- From: Daniel Neuberger <daniel dot neuberger+bah at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 7 Oct 2010 17:25:53 +0000
- Subject: Re: hidden symbol `__gcov_merge_add' in /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.1/libgcov.a
- References: <AANLkTin=L8P4Wye4zewUq6=s3avcGWCp6ZjSZvXCUjwE@mail.gmail.com>
Solved it. The problem was that I was using -lgcov with some of the
libraries that I was linking to, but not all of them even though they
had all been compiled with the --coverage option. I guess each
individual library needs to be linked with -lgcov since it's a static
library. Simply linking the final DSO won't work.
Feel free to correct me if I've said something wrong, but that's what
seemed to work to me.
Thanks.
- Daniel