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: libgcov issue in GCC_3.23


Hi
Thanks for the reply. It was my mistake, the version is gcc-3.2.3.
Even the gcc documentations do not mention about -lgcov option
(Atleast in the gcov section).
However, I read elsewhere that while linking, gcov would need the -lgcov option.

My problem is that, I need to run lcov on the same code to get
coverage information in html.
However lcov reads a header in each gcov file to get the source filename etc.
This is missing for some reason in my case. So I had thought
(mistakenly) that it could
be because of the missing libgcov library. Would you have any idea on
why gcov is not adding
the header?

On Fri, Sep 7, 2012 at 7:37 PM, Ian Lance Taylor <iant@google.com> wrote:
> On Thu, Sep 6, 2012 at 11:21 PM, Georgy Sebastian Pullolickal
> <georgysebastian@gmail.com> wrote:
>>
>> I am trying to do a code coverage analysis on a code. For some reasons
>> I am still using gcc-3.23 (I don't have an option to upgrade it
>> currently).
>> Now, when I try to link the code with -lgcov option, I am getting a
>> "cannot find -lgcov option".
>> I have already found that I don't have the libgcov.a in my /usr/lib.
>> I had tried compiling gcc-3.23 source directly, but even there I was
>> unable to find it.
>>
>> Could someone please direct me to where I could find this library.
>
> There was never a GCC 3.23 release.  I assume you mean GCC 3.2.3,
> which was released in 2003.
>
> The libgcov library was added in GCC 3.4.  There is no -lgcov in GCC
> 3.2.3.  But, then, you shouldn't need it.  Why are you trying to use
> -lgcov with GCC 3.2.3?  In order to get coverage information with GCC
> 3.2.3, you should follow the GCC 3.2.3 documentation.
>
> Ian



-- 
Regards
Georgy Sebastian
09650822209


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