[ 
https://issues.apache.org/jira/browse/PARQUET-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16048206#comment-16048206
 ] 

Wes McKinney edited comment on PARQUET-1029 at 6/13/17 6:25 PM:
----------------------------------------------------------------

in 

{code}
g++ -std=c++11 -Wall test.cpp -I /home/saatvik/repos/parquet-cpp/include/ -I 
/home/saatvik/repos/arrow/include/ -L 
/home/saatvik/repos/arrow/cpp/build/release/ -larrow -L 
/home/saatvik/repos/parquet-cpp/build/release/ -lparquet
{code}

The include paths and the linker paths do not match

* {{/home/saatvik/repos/arrow/include/}}
* {{/home/saatvik/repos/arrow/cpp/build/release/}}

You need to use the same root path for both. You can also try starting over and 
installing in your system paths (with {{sudo make install}} and skipping the 
{{-DCMAKE_INSTALL_PREFIX}}).

Since this isn't a Parquet or Arrow problem, I suggest you seek further 
assistance in more general purpose C++ development venues. 


was (Author: wesmckinn):
in 

{code}
g++ -std=c++11 -Wall test.cpp -I /home/saatvik/repos/parquet-cpp/include/ -I 
/home/saatvik/repos/arrow/include/ -L 
/home/saatvik/repos/arrow/cpp/build/release/ -larrow -L 
/home/saatvik/repos/parquet-cpp/build/release/ -lparquet
{code}

The include directory and the install directory do not match

* {{/home/saatvik/repos/arrow/include/}}
* {{/home/saatvik/repos/arrow/cpp/build/release/}}

You need to use the same root path for both. You can also try starting over and 
installing in your system paths (with {{sudo make install}} and skipping the 
{{-DCMAKE_INSTALL_PREFIX}}).

Since this isn't a Parquet or Arrow problem, I suggest you seek further 
assistance in more general purpose C++ development venues. 

> Attempting to import Parquet-Cpp to use in my own project
> ---------------------------------------------------------
>
>                 Key: PARQUET-1029
>                 URL: https://issues.apache.org/jira/browse/PARQUET-1029
>             Project: Parquet
>          Issue Type: Bug
>          Components: parquet-cpp
>         Environment: 64 Bit Ununtu 14.04
>            Reporter: Saatvik
>            Assignee: Wes McKinney
>            Priority: Minor
>              Labels: documentation, newbie, starter
>
> Relatively new to C++.
> I'm attempting to import Parquet-Cpp into my own C++ source code outside of a 
> project. I've added this questiond here as well: 
> https://stackoverflow.com/questions/44509984/importing-from-a-large-c-library,
>  
> https://stackoverflow.com/questions/44507840/linking-a-shared-library-from-a-large-github-project?noredirect=1.
>  Basically when I'm trying to link my source code to libparquet.so libraries 
> and header files, the compiler is successful but the linker fails with 
> undefined reference errors.
> I've written about the issue in a lot of detail in the questions above. If 
> required I can explain it again here?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to