简体   繁体   English

execinfo.h头文件不存在

[英]The execinfo.h header file does not exist

I'm using the latest cygwin 1.7.34(0.285/5/3) full version. 我正在使用最新的cygwin 1.7.34(0.285/5/3)完整版。 The issue I came across is that there was no execinfo.h , so a compiler prints error messages about absence of the file. 我遇到的问题是没有execinfo.h ,因此编译器会打印有关文件缺失的错误消息。 How can I fix that problem? 我该如何解决这个问题? Has someone already faced that issue? 有人已经遇到过这个问题吗?

This header is Linux specific. 此标头是特定于Linux的。 If the functionality is optional, you should #ifdef __linux__ the #include <execinfo.h> as well as any code chunks requiring backtrace or backtrace_symbols . 如果功能是可选的,你应该#ifdef __linux__ #include <execinfo.h>以及需要backtracebacktrace_symbols任何代码块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM