Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22039

How to modify the include path for C++?

$
0
0

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?


Viewing all articles
Browse latest Browse all 22039

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>