Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The execinfo.h header file does not exist

Tags:

c

linux

cygwin

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?

like image 414
St.Antario Avatar asked Feb 23 '15 18:02

St.Antario


1 Answers

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.

like image 182
Yaakov Avatar answered Oct 21 '22 00:10

Yaakov