Hi,
I am trying to compile application code for code coverage but it is
resulting in compilation error. Any help would be appreciated.
I am using gcc 4.1.1 on CentOS.
PerfStatsCli.o(.text+0x26a6): In function `global constructors keyed to
0_main':
/home/nanda/galaxy/tsunami/PerfStats/cli/PerfStatsCli.cpp:664: undefined
reference to `__gcov_init'
PerfStatsCli.o(.data.rel+0x48): undefined reference to
`__gcov_merge_add'
collect2: ld returned 1 exit status
make: *** [perfstats] Error 1
Then I tried linking with -lgcov and now I get below error.
-L/home/nanda/galaxy/lib -lgcov -lPerfStats -L /usr/local/lib -lpthread
-ldl -dynamic
/usr/bin/ld: perfstats: hidden symbol `__gcov_init' in
/usr/local/gcc-411/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/libgcov.a(_gco
v.o) is referenced by DSO
I have tried using gcc 4.2.2 and also latest libtool but could not
resolve the issue.
thanks,
Nanda
-----------------------------------------------------------
The information contained in this transmission may be
confidential. Any disclosure, copying, or further
distribution of confidential information is not permitted
unless such privilege is explicitly granted in writing by
Quantum Corporation. Furthermore, Quantum Corporation is not
responsible for the proper and complete transmission of the
substance of this communication or for any delay in its
receipt.
------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list