Porting Linux app to QNX - <execinfo.h> not found - backtrace() functions

Hi,

I’m trying to port my Linux app to QNX. Cross-compilation with qcc fails due to execinfo.h not being found. It’s a linux specific header that declares the backtrace(), backtrace_symbols() and backtrace_symbols_fd() functions.

How to enable this functionality for QNX? Is there a header or library I should include for backtraces in QNX?

I think your porting to QNX 7.

https://www.qnx.com/developers/docs/7.1/index.html#com.qnx.doc.neutrino.technotes/topic/backtrace.html

Tim

Yes, I’m porting to QNX 7.1.

Thanks Tim!