c - Linux 上的 Breakpad 测试示例错误

标签 c linux ubuntu gcc google-breakpad

从这里page在 Google Breakpad 上测试 brekpad 示例

我正在创建一个像这样的简单项目:

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

int main(){
   return 0;
}

在此之前,将头文件目标包含为:

C_INCLUDE_PATH=$HOME/breakpad/src

export C_INCLUDE_PATH

然后简单地编译它:

gcc main.c -o main

但是我的代码找不到exception_handler。准确地说,它给了我这个:

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

这是为什么?

最佳答案

Google BreakPad 内部使用 C++。如果您想与 C 一起使用它,请检查此链接:

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

关于c - Linux 上的 Breakpad 测试示例错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19394891/

相关文章:

c - 确保字符串与 c 中的特定格式匹配

linux - Traceroute : target doesn't acknowledge packet just from a specific host. 来自其他主机的 Traceroute 工作正常。 Ping 在所有主机上都能正常工作

c - 如何在 C 中以正确的方式从二进制结构中打印位域?

linux - 如何使用深度级别 2 或 maxdepth 作为下面我的 bash 脚本的输出文本文件

c - 使用 Linux 进行实时编程

ubuntu - 用cuda的时候用desktop或者gui界面可以吗?

linux - 我从 .profile 和 .bashrc 中删除了路径,但仍然存在于 $PATH 中

python - 错误 : Unable to find py4j, 您的 SPARK_HOME 可能未正确配置

c - 查找字符串中最常见的一对字符

c++ - -O3 打开时 SSE 中的段错误