链接调试符号
我正在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然,libtool 就是问题所在。运行相同的命令而不使用符号构建程序。
Apparently, libtool was the problem. Running the same command without it built the program with symbols.