<mailto:[email protected]>Hi David,

I am Sandeep, a Graduate Student at NC State University, trying to use libunwind with PIN binary instrumentation tool. When integrated, there are some compilation errors
due to multiple/ambiguous definitions of enums.

*memtrace.cpp:790: error: reference to âREG_RBPâ is ambiguous
/usr/include/sys/ucontext.h:65: error: candidates are: <anonymous enum> REG_RBP ../../../source/include/gen/reg_ia32.PH:64: error: LEVEL_BASE::REG LEVEL_BASE::REG_RBP

memtrace.cpp:807: error: reference to âREG_RBPâ is ambiguous
/usr/include/sys/ucontext.h:65: error: candidates are: <anonymous enum> REG_RBP ../../../source/include/gen/reg_ia32.PH:64: error: LEVEL_BASE::REG LEVEL_BASE::REG_RBP
*
Please let me know if there is any way to fix this. Your help will be greatly appreciated.

regards,
Sandeep

Reply via email to