[ 
https://issues.apache.org/jira/browse/PARQUET-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

yugu updated PARQUET-1001:
--------------------------
    Docs Text: 
mkdir -p bin


  was:
mkdir -p bin
/tools/gcc/redhat/6/6.3.0/bin/g++ -D_UNIX_ -D_LINUX_ -D_LINUX_2_6_ 
-DHEADER_ONLY_TEMPLATES -DLINUX  -DHAS_MUTABLE -D__STDC_LIMIT_MACROS -std=c++14 
-pipe -fexceptions -fPIC -pthread -D_REENTRANT -I . -march=westmere 
-mtune=westmere -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -maes -mpclmul 
-mpopcnt -msse4.2 -msse4.1 -mfxsr -fopenmp -Wall -Wno-parentheses 
-Wno-deprecated -fpermissive -Wpointer-arith -Wformat-nonliteral -Winit-self 
-fstrict-aliasing -Wstrict-aliasing -Wno-unused-local-typedefs 
-ftrack-macro-expansion=0 -isystem 
/tools/anaconda/redhat/7/4.2.0/include/python2.7 -isystem 
/tools/anaconda/redhat/7/4.2.0/include/python2.7 -Werror -isystem 
/tools/boost/redhat/x_64/1_63_0_gcc6.3.0/include -isystem 
/tools/google-benchmark/redhat/6/1.1.0_gcc6.1.0/include -isystem 
/tools/google-test/redhat/6/1.81.0_gcc6.3.0//include -isystem 
/tools/rapidjson/any/any/0.12/include -isystem 
/tools/eigen/redhat/6/3.3.3/include/eigen3 -isystem 
/tools/apache/arrow-cpp/0.4.0/include -isystem 
/tools/apache/parquet-cpp/1.1.0/include   -O3 -ggdb -L/usr/local/lib 
-L./lib/opt -rdynamic -L/tools/gcc/redhat/6/6.3.0/lib64 
-Wl,-rpath=/tools/gcc/redhat/6/6.3.0/lib64 
-L/tools/boost/redhat/x_64/1_63_0_gcc6.3.0/lib 
-Wl,-rpath=/tools/boost/redhat/x_64/1_63_0_gcc6.3.0/lib 
-L/tools/google-benchmark/redhat/6/1.1.0_gcc6.1.0/lib 
-Wl,-rpath=/tools/google-benchmark/redhat/6/1.1.0_gcc6.1.0/lib 
-L/tools/google-test/redhat/6/1.81.0_gcc6.3.0//lib 
-Wl,-rpath=/tools/google-test/redhat/6/1.81.0_gcc6.3.0//lib 
-L/tools/apache/arrow-cpp/0.4.0/lib64 
-Wl,-rpath=/tools/apache/arrow-cpp/0.4.0/lib64 
-L/tools/apache/parquet-cpp/1.1.0/lib64 
-Wl,-rpath=/tools/apache/parquet-cpp/1.1.0/lib64 -lstdc++ -lboost_iostreams 
-lboost_filesystem -lboost_system -lboost_thread -lboost_date_time -o 
./bin/test 
/home/yu/Desktop/project_arrow/apache_arrow/.build/opt/redhat-64/src/main.o 
/home/yu/Desktop/project_arrow/apache_arrow/.build/opt/redhat-64/src/main.o: In 
function `arrow_file_handler::csv_to_parquet(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >)':
/home/yu/Desktop/project_arrow/apache_arrow/src/main.cpp:76: 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>*)'
/home/yu/Desktop/project_arrow/apache_arrow/src/main.cpp:76: undefined 
reference to `_ZNK5arrow6Status8ToStringB5cxx11Ev'
/home/yu/Desktop/project_arrow/apache_arrow/src/main.cpp:76: undefined 
reference to `parquet::ParquetException::Throw(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make: *** [bin/test] Error 1



> 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.4.14#64029)

Reply via email to