尝试将 CoverStory 与 iPhone 应用程序一起使用时出现未定义的符号:_vproc_transaction_end、_vproc_transaction_begin
按照这些步骤设置 iPhone 后使用 CoverStory 进行项目时,我的构建因两个链接器错误而失败。
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
我在 Snow Leopard 上使用 Xcode 3.2、GCC 4.2。我有什么想法吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下是如何在 Snow Leopard 上使用 Xcode 3.2.2、GCC 4.2 运行 gcov:
http: //code.google.com/p/coverstory/wiki/SnowLeopardGCov
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
您是否按照网页指示将“-lgcov”添加到“其他链接器标志”?
MACOSX_DEPLOYMENT_TARGET 设置的值是多少? 此页面和此页面建议该值需要设置为 10.6。
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.