[
https://issues.apache.org/jira/browse/PARQUET-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16023332#comment-16023332
]
yugu commented on PARQUET-1001:
-------------------------------
Thanks Wes!
Just figured that the problem lies in my makefile...
I've been trying to compile reader-writer with custom modules.
I think the lib is included in the makefile tho
The errors are like
---
r/home/yu/Desktop/project_arrow/apache_arrow/.build/opt/redhat-64/src/main.o:
In function `operator()':
/r/data_ssd/tools/gcc/redhat/6/6.3.0/include/c++/6.3.0/bits/unique_ptr.h:76:
undefined reference to `parquet::ParquetFileWriter::~ParquetFileWriter()'
/r/home/yu/Desktop/project_arrow/apache_arrow/.build/opt/redhat-64/src/main.o:
In function
`parquet::schema::PrimitiveNode::Make(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
parquet::Repetition::type, parquet::Type::type, parquet::LogicalType::type,
int, int, int)':
/tools/apache/parquet-cpp/1.1.0/include/parquet/schema.h:196: undefined
reference to
`parquet::schema::PrimitiveNode::PrimitiveNode(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
parquet::Repetition::type, parquet::Type::type, parquet::LogicalType::type,
int, int, int, int)'
/r/home/yu/Desktop/project_arrow/apache_arrow/.build/opt/redhat-64/src/main.o:
In function `parquet::schema::GroupNode::~GroupNode()':
/tools/apache/parquet-cpp/1.1.0/include/parquet/schema.h:237: undefined
reference to `vtable for parquet::schema::GroupNode'
> undefined reference to open function in fileoutputstream
> --------------------------------------------------------
>
> Key: PARQUET-1001
> URL: https://issues.apache.org/jira/browse/PARQUET-1001
> Project: Parquet
> Issue Type: Bug
> Components: parquet-cpp
> Affects Versions: cpp-1.1.0
> Environment: linux arrow 0.4.0; parquet 1.1.0
> Reporter: yugu
> Attachments: log.txt
>
>
> when trying to compile the reader-writer.cc per this
> https://github.com/apache/parquet-cpp/tree/master/examples
> the compiler throws undefined reference.
> that being said, this is probably not a bug with parquet-cpp, rather with the
> makefile configuration. yet I cannot pinpoint the issue - the linker seems
> functional.
> using FileClass = ::arrow::io::FileOutputStream;
> std::shared_ptr<FileClass> out_file;
> PARQUET_THROW_NOT_OK(FileClass::Open(PARQUET_FILENAME, &out_file));
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)