Undefined symbols when attempting to use CoverStory with iPhone app: _vproc_transaction_end, _vproc_transaction_begin

StackOverflow https://stackoverflow.com/questions/2457726

Question

After following these steps to set up an iphone project with CoverStory, my build fails with two linker errors.

Undefined symbols:
  "_vproc_transaction_end", referenced from:
      _gcov_exit in libgcov.a(_gcov.o)
      _vproc_transaction_end$non_lazy_ptr in libgcov.a(_gcov.o)
     (maybe you meant: _vproc_transaction_end$non_lazy_ptr)
  "_vproc_transaction_begin", referenced from:
      ___gcov_init in libgcov.a(_gcov.o)
      _vproc_transaction_begin$non_lazy_ptr in libgcov.a(_gcov.o)
     (maybe you meant: _vproc_transaction_begin$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status

I'm using Xcode 3.2, GCC 4.2 on Snow Leopard. Any ideas what I'm missing?

Was it helpful?

Solution

Here's how to get gcov running with Xcode 3.2.2, GCC 4.2 on Snow Leopard:

http://code.google.com/p/coverstory/wiki/SnowLeopardGCov

OTHER TIPS

Did you add "-lgcov" to Other Linker Flags as the Web page directs?

What is the value of the MACOSX_DEPLOYMENT_TARGET setting? This page and this page suggests the value needs to be set to 10.6.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top