title: Stacktrace for C on Android
body: <p>I have C code in my Android app and would like to catch crashes and print them to a log file. I saw <a href="https://stackoverflow.com/questions/77005/how-to-generate-a-stacktrace-when-my-gcc-c-app-crashes">this post</a>, and tried, but I can't find the execinfo lib. 
  I'm working with Ubuntu 11.10 and using NDK for compiling to Android. 
  Does anyone know how to find execinfo lib for NDK/ARM, or have another simple solution?</p>