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

Namespace problem, compile fails on generated code

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 0.8
    • Fix Version/s: 0.10.0
    • Component/s: C++ - Compiler
    • Labels:
      None
    • Environment:

      thrift 0.8.0

      Description

      you can find build log at
      http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/a.7.20120107170754/php5-pdo_cassandra-0.2.1.log

      , and Thrift IDL file at
      https://github.com/mkoppanen/php-pdo_cassandra/blob/master/interface/cassandra.thrift

      this problem occurred after THRIFT-1275 commited,

      I'm not c++ guy, There are two solution i found to resolve this problem,

      1. prefix all namespace with "::"
      2. avoid namespace conflict, change cpp namespace from "org.apache.cassandra" to "cassandra" in cassandra.thrift

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gasolwu Gasol Wu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: