链接调试符号

发布于 2024-11-17 16:43:07 字数 162 浏览 3 评论 0原文

我正在 Windows 7 上的 Cygwin 下构建 thrift 0.2.0。所有编译选项都显示“-g -O2”,并且编译的目标文件包含调试符号。然而,正如 gdb 和 nm 所证实的那样,最终的可执行文件缺少它们。输出中没有错误消息、警告或可疑标志。链接标志中没有“-s”。可能会发生什么?我如何诊断它?

I am building thrift 0.2.0 on Windows 7 under Cygwin. All compilation options say "-g -O2" and the compiled object files contain debug symbols. However, the final executable is missing them, as confirmed by both gdb and nm. There are no error messages, warnings, or suspicious flags in the output. There is no "-s" among link flags. What could be happening? How do I even diagnose it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

青朷 2024-11-24 16:43:07

显然,libtool 就是问题所在。运行相同的命令而不使用符号构建程序。

Apparently, libtool was the problem. Running the same command without it built the program with symbols.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文