You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Gasol Wu (Created) (JIRA)" <ji...@apache.org> on 2012/01/09 05:11:41 UTC
[jira] [Created] (THRIFT-1487) Namespace problem, compile fails on
generated code
Namespace problem, compile fails on generated code
--------------------------------------------------
Key: THRIFT-1487
URL: https://issues.apache.org/jira/browse/THRIFT-1487
Project: Thrift
Issue Type: Bug
Components: C++ - Compiler
Affects Versions: 0.8
Environment: thrift 0.8.0
Reporter: Gasol Wu
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. replace all prefix all namespace with "::"
2. avoid namespace conflict, change cpp namespace from "org.apache.cassandra" to "cassandra" in cassandra.thrift
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (THRIFT-1487) Namespace problem, compile fails on
generated code
Posted by "Gasol Wu (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gasol Wu updated THRIFT-1487:
-----------------------------
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
was:
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. replace all prefix all namespace with "::"
2. avoid namespace conflict, change cpp namespace from "org.apache.cassandra" to "cassandra" in cassandra.thrift
> Namespace problem, compile fails on generated code
> --------------------------------------------------
>
> Key: THRIFT-1487
> URL: https://issues.apache.org/jira/browse/THRIFT-1487
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Compiler
> Affects Versions: 0.8
> Environment: thrift 0.8.0
> Reporter: Gasol Wu
>
> 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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira