Thanks Daniel!
I figure it out with some help over the slack channel. I ended up using the
following command.

g++ -std=c++11 parquet_rw.cc -Iparquet-cpp_install/release/include/
parquet-cpp_install/release/libarrow.so.0  -lparquet

But the suggested way to do it would be to just install arrow and parquet
from standard repos so I don't have to pass the shared library at linking
time. I think I might do that next time.


Renato M.


2017-12-07 22:44 GMT+01:00 Daniel Lemire <lem...@gmail.com>:

> You might be missing a "-l" flag or two in addition to the "-I" flag. You
> might also need a "-L" flag.
>
> On Thu, Dec 7, 2017 at 1:34 PM, Renato Marroquín Mogrovejo <
> renatoj.marroq...@gmail.com> wrote:
>
> > Hi devs,
> >
> > I have also sent this question to the parquet mailing list, but I guess
> > this is the right place for it.
> > Anyway, this is a really novice question, so please excuse.
> > I am trying to link against parquet-cpp installation with the following
> > command
> >
> > g++ -std=c++11 parquet_rw.cc -I/parquet-cpp_install/release/include/
> >
> > But I am getting the following error messages
> >
> > undefined reference to `arrow::io::FileOutputStream::
> > Open(std::__cxx11::basic_string<char, std::char_traits<char>,
> > std::allocator<char> > const&, std::shared_ptr<arrow::io::
> > FileOutputStream>*)'parquet_rw.cc:(.text+0x409): undefined reference to
> > `arrow::Status::ToString[abi:cxx11]() const'parquet_rw.cc:(.text+0x46d):
> > undefined reference to `parquet::ParquetException::
> > Throw(std::__cxx11::basic_string<char, std::char_traits<char>,
> > std::allocator<char> > const&)'
> > ...
> >
> > Could you please help to figure out what I am missing?
> > Thanks in advanced!
> >
> >
> > Renato M.
> >
>

Reply via email to