thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James E. King III (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (THRIFT-4630) gcc 4.8.5 not pass
Date Thu, 13 Sep 2018 00:04:00 GMT

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

James E. King III resolved THRIFT-4630.
---------------------------------------
       Resolution: Information Provided
    Fix Version/s:     (was: 0.11.0)

It is better to use apache::thrift::stdcxx::shared_ptr instead of the macro.

> gcc 4.8.5 not pass
> ------------------
>
>                 Key: THRIFT-4630
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4630
>             Project: Thrift
>          Issue Type: Question
>          Components: C++ - Library
>    Affects Versions: 0.11.0
>         Environment: Centos 7
> GCC 4.8.5
> boost 1.6.4
>            Reporter: eeliu
>            Assignee: James E. King III
>            Priority: Blocker
>
> > 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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message