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

Failed to compile Thrift0.9.1 with boost1.55 by VS2010 if select Debug-mt&x64 mode.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • 0.9.1
    • 0.9.1
    • Build Process
    • None
    • windows

    Description

      Thrift version: 0.9.1
      Boost version: 1.55
      OS: win7 x64
      Built Release-mt&x64 successfully.
      But failed to compile Thrift0.9.1 with boost1.55 by VS2010 if select Debug-mt&x64 mode.
      The detail error is as below:
      f:\work\thrift-352a50e\lib\cpp\src\thrift\windows\TWinsockSingleton.h(51): warning C4396: 'boost::call_once' : the inline specifier cannot be used when a friend declaration refers to a specialization of a function template
      1>D:\build\libs\cpp\3rd_party\boost-1_55\include\boost/smart_ptr/shared_ptr.hpp(653): error C2668: '_wassert' : ambiguous call to overloaded function
      1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\assert.h(28): could be 'void _wassert(const wchar_t *,const wchar_t *,unsigned int)'
      1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\assert.h(28): or 'void apache::thrift::protocol::_wassert(const wchar_t *,const wchar_t *,unsigned int)'
      1> while trying to match the argument list '(const wchar_t [8], const wchar_t [78], int)'
      1> D:\build\libs\cpp\3rd_party\boost-1_55\include\boost/smart_ptr/shared_ptr.hpp(652) : while compiling class template member function 'apache::thrift::transport::TTransport *boost::shared_ptr<T>::operator ->(void) const'
      1> with
      1> [
      1> T=apache::thrift::transport::TTransport
      1> ]
      1> F:\work\thrift-352a50e\lib\cpp\src\thrift/transport/TTransport.h(262) : see reference to class template instantiation 'boost::shared_ptr<T>' being compiled
      1> with
      1> [
      1> T=apache::thrift::transport::TTransport
      1> ]

      Attachments

        Activity

          People

            Unassigned Unassigned
            dds Daniel Dias
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: