c - #error 将 -D_FILE_OFFSET_BITS-64 添加到您的编译标志中

标签 c linux ubuntu-14.04 fuse

当我编译包含 fusion.h 头文件的 hello.c 程序时,它显示此错误。 - #error 将 -D_FILE_OFFSET_BITS-64 添加到您的编译标志中。访问fuse_common.h时。
之前,我已经从fuse.sourceforge.net 安装了fuse 文件系统,并运行了fuse-2.9.3 中的示例。谁知道如何修复这个错误。我在 oracle 的虚拟机上使用 Ubuntu 14.04 LTS - i386(32 位)。

最佳答案

尝试修改Makefile添加一行:

CFLAGS += -D_FILE_OFFSET_BITS=64

或者,您可以在包含 fuse.h 之前在 hello.c 中添加一行:

#define _FILE_OFFSET_BITS  64
#include <fuse.h>

关于c - #error 将 -D_FILE_OFFSET_BITS-64 添加到您的编译标志中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29189689/

相关文章:

找不到 -lpthread?

linux - Emb Linux 上的 IoT Hub 客户端在 send_event_async 时返回关闭的 SSL channel

python - 安装 Apache Airflow 后出错

python - 找不到文件错误,但文件存在

c++ - Valgrind-libgtk-x11

python - 读取文本文件并将字符串转换为 float

c - GTK+ 程序的段错误

c++ - 在 ‘,’ token { (C++)

python - UnicodeDecodeError : 'utf8' codec can't decode byte 0x9c

c - 此员工数据库中的删除功能不起作用