Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3534

Link error when building with Qt5

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: C++ - Library
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Flags:
      Patch

      Description

      When building thrift with CMakeLists.txt and Qt5 support, I'm getting:

      Undefined symbols for architecture x86_64:
      "apache::thrift::TOutput::strerror_s(int)", referenced from:
      apache::thrift::transport::TTransportException::TTransportException(apache::thrift::transport::TTransportException::TTransportExceptionType, std::_1::basic_string<char, std::1::char_traits<char>, std::_1::allocator<char> > const&, int) in TQIODeviceTransport.cpp.o
      "typeinfo for apache::thrift::transport::TTransportException", referenced from:
      apache::thrift::transport::TQIODeviceTransport::open() in TQIODeviceTransport.cpp.o
      apache::thrift::transport::TQIODeviceTransport::read(unsigned char*, unsigned int) in TQIODeviceTransport.cpp.o

      The Qt5 lib is not linking to thriftcpp, thus, the linker complains.

        Attachments

        1. THRIFT-3534-qt5-build-fix.patch
          0.5 kB
          Harald Fernengel

          Activity

            People

            • Assignee:
              haraldF Harald Fernengel
              Reporter:
              haraldF Harald Fernengel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: