Hi Subrata,

Subrata Modak wrote:
> # make CFLAGS=\ -fprofile-arcs\ -ftest-coverage\ -Wall
[...]
> gcc   ltp-pan.o zoolib.o splitstr.o -lm  -o ltp-pan
> ltp-pan.o: In function `run_child':
> ltp-pan.c:(.text+0x6d54): undefined reference to `__gcov_fork'

we already solved this issue via ST but I'll still post the result here 
for reference: to prevent this particular error, you'll need to also 
provide the additional linker option -coverage.

As not all ltp Makefile work well when specifying CFLAGS and LDFLAGS on 
the make command line, you'll need to specify those during the configure 
step, i.e.

./configure CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="-coverage"
make


Regards,
   Peter


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to