ubuntu 18.04 lz4 编译冲突
error: conflicting declaration ‘typedef struct LZ4_streamDecode_t LZ4_streamDecode_t’
typedef struct { unsigned long long table[LZ4_STREAMDECODESIZE_U64]; } LZ4_streamDecode_t;
解决办法:
https://github.com/mariusmuja/flann/issues/307
将文件: /usr/include/lz4.h 和 /usr/include/flann/ext/lz4.h 下的 #pragma once
替换为:
#ifndef LZ4_H_2983827168210
#define LZ4_H_2983827168210
…
#endif /* LZ4_H_2983827168210 */