Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make check fails on OS X Mavericks #7

Open
sebastianludwig opened this issue Jul 22, 2014 · 1 comment
Open

make check fails on OS X Mavericks #7

sebastianludwig opened this issue Jul 22, 2014 · 1 comment

Comments

@sebastianludwig
Copy link

Hey,

make check fails with

In file included from src/gtest-all.cc:39:
In file included from ./include/gtest/gtest.h:57:
In file included from ./include/gtest/internal/gtest-internal.h:40:
./include/gtest/internal/gtest-port.h:449:10: fatal error: 'tr1/tuple' file not found
#include <tr1/tuple>  // NOLINT
         ^
1 error generated.

I guess it's because on Mavericks g++ is just a disguised LLVM (don't know about other versions) and AFAIK all the C++11 tr1 goodies are under plain std:: - however, that's just a vague idea.

I fixed that error by removing the tr1 and got plenty others in the form

./include/gtest/internal/gtest-param-util-generated.h:2837:46: error: no member named 'tr1' in namespace 'std'
    : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2> > {
                                      ~~~~~~~^

Regards,
Sebastian

@Kentzo
Copy link
Member

Kentzo commented Jul 23, 2014

Not sure what I can do with that. It's a cross platform project and being dependent on tr1 feature was the big mistake in the first place.

I'll see if there is a cross platform substitution for this.

As of compiler, you can try CC/CXX env variables to specify compiler you want, like

CC=/usr/bin/clang CXX=/usr/bin/clang++ make check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants