1

system includes moved on ubuntu, g++ cannot resolve REG_EIP

view story
linux-howto

http://stackoverflow.com – This code consistently fails to build in ubuntu 12.04, 12.10, linux mint 13 and 14, but it compiles correctly on ubuntu maverick 10.10 #include <stdio.h> #include <signal.h> #include <stdio.h> #include <signal.h> #include <execinfo.h> #include <stdlib.h> #include <string.h> //#define __USE_GNU //#include <sys/ucontext.h> #include <ucontext.h> #ifndef __USE_GNU #error "__USE_GNU HAS been undefined" #endif #include <cxxabi.h> #include <iostream> #ifndef _SYS_UCONTEXT_H #error "sys/context HAS NOT BEEN INCLUDED" #endif void p (HowTos)