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

gcc 4.8.5 not pass

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Blocker
    • Resolution: Information Provided
    • 0.11.0
    • None
    • C++ - Library
    • None
    • Centos 7

      GCC 4.8.5

      boost 1.6.4

    Description

      > Configure

       ./configure --prefix=/home/test/.var/ --with-cpp --with-php=no --with-python=no --with-ruby=no --with-nodejs=no --with-qt4=no --with-java=no --enable-tests=no --with-boost=/home/test/.var/

      But when I switch to gcc 4.8.5, below error often annoy me most.

      undefined reference to `apache::thrift::protocol::TJSONProtocol::TJSONProtocol(boost::shared_ptr<apache::thrift::transport::TTransport>)'
       
      My code segment

      int32_t TBaseOPImp::writeTbaseToJsonFile(const boost::filesystem::path &filePath, const apache::thrift::TBase &tbase)

      { boost::shared_ptr<TMemoryBuffer> memoryBuffer(new TMemoryBuffer); boost::shared_ptr<TBufferedTransport> transportOut(new TBufferedTransport(memoryBuffer)); --------------------Here alway fail ----------------------- boost::shared_ptr<TJSONProtocol> protocolOut(new TJSONProtocol(transportOut)); ...... }

      My makefile output

      g++ -g3 -DTEST_SIMULATE -DBOOST_NO_CXX11_SMART_PTR test_case.o -isystem /home/test/.var/include -L/home/test/.var/lib -lboost_system -lboost_thread -lboost_filesystem -lboost_date_time -lthrift -lgcov -lrt -lpthread -o test

      Attachments

        Activity

          People

            jking3 James E. King III
            eeliu eeliu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: