[
https://issues.apache.org/jira/browse/PARQUET-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16048167#comment-16048167
]
Saatvik edited comment on PARQUET-1029 at 6/13/17 5:48 PM:
-----------------------------------------------------------
Yes, with the change in the zlib argument and by switching off multithreading
in the make command things worked.
However the error still persists as earlier:
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
gives the following error
{quote}/tmp/ccwOP7fB.o: In function `main':
test.cpp:(.text+0xc4d): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)0>
>::WriteBatch(long, short const*, short const*, bool const*)'
test.cpp:(.text+0xcb6): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)1>
>::WriteBatch(long, short const*, short const*, int const*)'
test.cpp:(.text+0xd6d): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)2>
>::WriteBatch(long, short const*, short const*, long const*)'
test.cpp:(.text+0xdf7): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)3>
>::WriteBatch(long, short const*, short const*, parquet::Int96 const*)'
test.cpp:(.text+0xe74): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)4>
>::WriteBatch(long, short const*, short const*, float const*)'
test.cpp:(.text+0xef1): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)5>
>::WriteBatch(long, short const*, short const*, double const*)'
test.cpp:(.text+0x1034): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)6>
>::WriteBatch(long, short const*, short const*, parquet::ByteArray const*)'
test.cpp:(.text+0x1065): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)6>
>::WriteBatch(long, short const*, short const*, parquet::ByteArray const*)'
test.cpp:(.text+0x1153): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)7>
>::WriteBatch(long, short const*, short const*, parquet::FixedLenByteArray
const*)'
test.cpp:(.text+0x146f): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)0>
>::ReadBatch(long, short*, short*, bool*, long*)'
test.cpp:(.text+0x15c1): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)1>
>::ReadBatch(long, short*, short*, int*, long*)'
test.cpp:(.text+0x1702): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)2>
>::ReadBatch(long, short*, short*, long*, long*)'
test.cpp:(.text+0x18c3): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)3>
>::ReadBatch(long, short*, short*, parquet::Int96*, long*)'
test.cpp:(.text+0x1a5a): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)4>
>::ReadBatch(long, short*, short*, float*, long*)'
test.cpp:(.text+0x1bc3): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)5>
>::ReadBatch(long, short*, short*, double*, long*)'
test.cpp:(.text+0x1d3f): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)6>
>::ReadBatch(long, short*, short*, parquet::ByteArray*, long*)'
test.cpp:(.text+0x1fe7): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)7>
>::ReadBatch(long, short*, short*, parquet::FixedLenByteArray*, long*)'
collect2: error: ld returned 1 exit status{quote}
was (Author: tangy):
{{Yes, with the change in the zlib argument and by switching off multithreading
in the make command things worked.
However the error still persists as earlier:
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
gives the following error
{quote}/tmp/ccwOP7fB.o: In function `main':
test.cpp:(.text+0xc4d): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)0>
>::WriteBatch(long, short const*, short const*, bool const*)'
test.cpp:(.text+0xcb6): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)1>
>::WriteBatch(long, short const*, short const*, int const*)'
test.cpp:(.text+0xd6d): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)2>
>::WriteBatch(long, short const*, short const*, long const*)'
test.cpp:(.text+0xdf7): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)3>
>::WriteBatch(long, short const*, short const*, parquet::Int96 const*)'
test.cpp:(.text+0xe74): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)4>
>::WriteBatch(long, short const*, short const*, float const*)'
test.cpp:(.text+0xef1): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)5>
>::WriteBatch(long, short const*, short const*, double const*)'
test.cpp:(.text+0x1034): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)6>
>::WriteBatch(long, short const*, short const*, parquet::ByteArray const*)'
test.cpp:(.text+0x1065): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)6>
>::WriteBatch(long, short const*, short const*, parquet::ByteArray const*)'
test.cpp:(.text+0x1153): undefined reference to
`parquet::TypedColumnWriter<parquet::DataType<(parquet::Type::type)7>
>::WriteBatch(long, short const*, short const*, parquet::FixedLenByteArray
const*)'
test.cpp:(.text+0x146f): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)0>
>::ReadBatch(long, short*, short*, bool*, long*)'
test.cpp:(.text+0x15c1): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)1>
>::ReadBatch(long, short*, short*, int*, long*)'
test.cpp:(.text+0x1702): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)2>
>::ReadBatch(long, short*, short*, long*, long*)'
test.cpp:(.text+0x18c3): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)3>
>::ReadBatch(long, short*, short*, parquet::Int96*, long*)'
test.cpp:(.text+0x1a5a): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)4>
>::ReadBatch(long, short*, short*, float*, long*)'
test.cpp:(.text+0x1bc3): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)5>
>::ReadBatch(long, short*, short*, double*, long*)'
test.cpp:(.text+0x1d3f): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)6>
>::ReadBatch(long, short*, short*, parquet::ByteArray*, long*)'
test.cpp:(.text+0x1fe7): undefined reference to
`parquet::TypedColumnReader<parquet::DataType<(parquet::Type::type)7>
>::ReadBatch(long, short*, short*, parquet::FixedLenByteArray*, long*)'
collect2: error: ld returned 1 exit status{quote}
}}
> 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)