Closed zhujintao closed 1 year ago
DESKTOP-PJ27IM8:~/ossfs# make make all-recursive make[1]: Entering directory '/root/ossfs' Making all in src make[2]: Entering directory '/root/ossfs/src' g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -DUSE_OPENSSL_30 -g -O2 -Wall -fno-exceptions -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -MT s3fs_help.o -MD -MP -MF .deps/s3fs_help.Tpo -c -o s3fs_help.o s3fs_help.cpp In file included from s3fs_help.cpp:26: common.h:34:14: error: 'int64_t' does not name a type 34 | static const int64_t FIVE_GB = 5LL 1024LL 1024LL * 1024LL; | ^~~ common.h:29:1: note: 'int64_t' is defined in header ''; did you forget to '#include '? 28 | #include "s3fs_logger.h" +++ |+#include 29 | make[2]: [Makefile:726: s3fs_help.o] Error 1 make[2]: Leaving directory '/root/ossfs/src' make[1]: [Makefile:416: all-recursive] Error 1 make[1]: Leaving directory '/root/ossfs' make: *** [Makefile:355: all] Error 2
common.h 添加 #include <stdint.h> 后编译成功。
#include <stdint.h>
DESKTOP-PJ27IM8:~/ossfs# make make all-recursive make[1]: Entering directory '/root/ossfs' Making all in src make[2]: Entering directory '/root/ossfs/src' g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -DUSE_OPENSSL_30 -g -O2 -Wall -fno-exceptions -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -MT s3fs_help.o -MD -MP -MF .deps/s3fs_help.Tpo -c -o s3fs_help.o s3fs_help.cpp In file included from s3fs_help.cpp:26: common.h:34:14: error: 'int64_t' does not name a type 34 | static const int64_t FIVE_GB = 5LL 1024LL 1024LL * 1024LL; | ^'; did you forget to '#include '?
28 | #include "s3fs_logger.h"
+++ |+#include
29 |
make[2]: [Makefile:726: s3fs_help.o] Error 1
make[2]: Leaving directory '/root/ossfs/src'
make[1]: [Makefile:416: all-recursive] Error 1
make[1]: Leaving directory '/root/ossfs'
make: *** [Makefile:355: all] Error 2
~~ common.h:29:1: note: 'int64_t' is defined in header '