[ 
https://issues.apache.org/jira/browse/PARQUET-470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15139477#comment-15139477
 ] 

Mark Nelson commented on PARQUET-470:
-------------------------------------

I ran into what I think is this same problem. I am able to demonstrate a 
workaround, I think, with this:

#define GTEST_USE_OWN_TR1_TUPLE 0
#include <gmock/gmock.h>
#include <thrift/cxxfunctional.h>

This is using 0.9.2 - but it appears to be the same problem.

- Mark

> Thrift 0.9.3 cannot be used in conjunction with googletest and C++11 on Linux
> -----------------------------------------------------------------------------
>
>                 Key: PARQUET-470
>                 URL: https://issues.apache.org/jira/browse/PARQUET-470
>             Project: Parquet
>          Issue Type: Bug
>          Components: parquet-cpp
>            Reporter: Wes McKinney
>
> Thrift 0.9.3 introduces a {{#include <thrift/cxxfunctional.h>}} include which 
> causes {{tr1/functional}} to be included, causing a compiler conflict with 
> googletest, which has its own portability macros surrounding its use of 
> {{std::tr1::tuple}}. I spent a bunch of time twiddling compiler flags to try 
> to resolve this conflict, but wasn't able to figure it out. 
> If this is a Thrift bug, we should report it to Thrift. If it's fixable by 
> compiler flags, then we should figure that out and track the issue here, 
> otherwise users with the latest version of Thrift will be unable to compile 
> the parquet-cpp test suite.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to