Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5932

[C++] undefined reference to `__cxa_init_primary_exception@CXXABI_1.3.11'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 0.14.0
    • Fix Version/s: None
    • Component/s: C++
    • Labels:
      None
    • Environment:
      Linux Mint 19.1 Tessa
      g++-6

      Description

      I was installing Apache Arrow in my Linux Mint 19.1 Tessa server. I followed the instructions on the official arrow website (using the ubuntu 18.04 method). However, when I was trying to compile the examples, the g++ compiler threw out some errors.

      I have updated my g++ to g+-6, update my libstdc+ library, and using flag -lstdc++, but it still didn't work.

       

      //代码占位符
      g++-6 -std=c++11 -larrow -lparquet main.cpp -lstdc++ 
      

      The error message:

      /usr/lib/x86_64-linux-gnu/libarrow.so: undefined reference to `__cxa_init_primary_exception@CXXABI_1.3.11'
      /usr/lib/x86_64-linux-gnu/libarrow.so: undefined reference to `std::__exception_ptr::exception_ptr::exception_ptr(void*)@CXXABI_1.3.11'
      collect2: error: ld returned 1 exit status.

       

      I do not know what to do this moment. Can anyone help me?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tson Cong Ding
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: