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]

Re: hidden symbol `__gcov_merge_add' in /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.1/libgcov.a


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


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