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

Error compiling cpp tutorials

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.1
    • Fix Version/s: 0.9.2
    • Component/s: Tutorial
    • Labels:
      None
    • Environment:

      GCC 4.8.1 Linux and GCC 4.8.0 Solaris 10

    • Patch Info:
      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. CppClient.patch
          0.7 kB
          Chris Stylianou
        2. CppServer.patch
          1 kB
          Chris Stylianou

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: