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

Error compiling cpp tutorials

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.1
    • 0.9.2
    • Tutorial
    • None
    • GCC 4.8.1 Linux and GCC 4.8.0 Solaris 10

    • Patch Available

    Description

      Error details (several cases in CppServer.cpp and CppClient.cpp):

      CppServer.cpp: In function 'int main(int, char**)':
      CppServer.cpp:116:3: error: reference to 'shared_ptr' is ambiguous
      

      This is caused due to the inclusion of both 'std' and 'boost' namespaces, which both define 'shared_ptr'. Code expects the use of 'boost::shared_ptr'.

      Attachments

        1. CppServer.patch
          1 kB
          Chris Stylianou
        2. CppClient.patch
          0.7 kB
          Chris Stylianou

        Issue Links

          Activity

            People

              roger Roger Meier
              chris5287 Chris Stylianou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: