libgcov.a missing in gcc 3.23
문제
For some reasons I have to use an older version of gcc, gcc2.96 or gcc 3.23 Using the same, I need to perform a code coverage analysis on some code.
However when I try to perform linking with -lgcov
option, I get
/usr/bin/ld: cannot find -lgcov
I have found that I do not have libgcov.a
in /usr/lib. However my understanding was that libgcov is normally installed automatically while installing gcc.
Any suggestion on how I can fix this issue would be greatly appreciated
해결책
libgcov.a was added only from gcc 3.4. For earlier versions of gcc, this option is not needed for linking.
제휴하지 않습니다 StackOverflow