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

Namespace problem, compile fails on generated code

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 0.8
    • 0.10.0
    • C++ - Compiler
    • None
    • 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

          roger Roger Meier added a comment -

          this is very old, please reopen or create a new issue

          roger Roger Meier added a comment - this is very old, please reopen or create a new issue

          People

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

            Dates

              Created:
              Updated:
              Resolved: