Search code examples
clinuxubuntugccgoogle-breakpad

Breakpad test example error on Linux


From this page on Google Breakpad to test brekpad example

I am create a simple project like this:

#include "client/linux/handler/exception_handler.h"

int main(){
   return 0;
}

And prior to that include the header file destination as:

C_INCLUDE_PATH=$HOME/breakpad/src

export C_INCLUDE_PATH

And then compile it simply with:

gcc main.c -o main

But my code fails to find exception_handler. To be precise, it gives me this:

/home/ubuntu/breakpad/src/client/linux/handler/exception_handler.h:33:18: fatal error: string: No such file or directory
compilation terminated.

Why is that?


Solution

  • Google BreakPad uses C++ inside. Check this link if you want to use it in tandem with C:

    https://groups.google.com/forum/#!topic/google-breakpad-discuss/tltR5LJAKlE