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

Link error when building with Qt5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.10.0
    • C++ - Library
    • None
    • Patch Available
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: