I am trying to use the arrow C++ library. So I just
git clone https://github.com/apache/arrow.git
and then I navigate to the cpp/src/
folder. Then I create a file called main.cpp
with he following content
#include "parquet/arrow/writer.h"void main(int argc, char *argv[]) { printf("ok")}
and when I gcc main.cpp
I get
In file included from parquet/arrow/writer.h:24:0, from main.cpp:1:/home/xiaodai/git/arrow/cpp/src/parquet/properties.h:30:10: fatal error: parquet/parquet_version.h: No such file or directory #include "parquet/parquet_version.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~compilation terminated.
So clearly, it found parquet/arrow/writer.h
which is in my script ok, but it can't find parquet/parquet_version.h
? Why is that?
I found somewhere that setting the CPATH or CPLUS_INCLUDE_PATH
would help but setting
export CPLUS_INCLUDE_PATH=/home/USER/git/arrow/cpp/src
didn't help.
Who do I set the include path in C++ correctly?