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 */
————————————————
版權(quán)聲明:本文為CSDN博主「w_tom」的原創(chuàng)文章,遵循 CC 4.0 BY-SA 版權(quán)協(xié)議,轉(zhuǎn)載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/w_tom/article/details/89632308