The execinfo.h header file does not exist

c, cygwin, linux

Solution

This header is Linux specific. If the functionality is optional, you should `#ifdef __linux__` the `#include <execinfo.h>` as well as any code chunks requiring `backtrace` or `backtrace_symbols`.

Problem

I'm using the latest `cygwin 1.7.34(0.285/5/3)` full version. The issue I came across is that there was no `execinfo.h`, so a compiler prints error messages about absence of the file. How can I fix that problem? Has someone already faced that issue?

Original source