Xcode 5.0.1 on Mavericks: fatal error: 'cxxabi.h' file not found

543 views
Skip to first unread message

Ken Turkowski

unread,
Oct 26, 2013, 6:40:49 PM10/26/13
to Google C++ Testing Framework
I just upgraded my Mac to Mavericks and Xcode 5.0.1, and my tests no longer compile, yielding the message:

gtest/include/gtest/internal/gtest-type-util.h:52:12: fatal error: 'cxxabi.h' file not found

What is the intended way to get around this?

-Ken

Ken Turkowski

unread,
Oct 26, 2013, 7:08:09 PM10/26/13
to Google C++ Testing Framework, Zhanyong Wan
I looked in the .../usr/include folders, and there is indeed no cxxabi.h file.

$ c++ -v
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix

The culprit seems to be the lines:

// _LIBCPP_VERSION is defined by the libc++ library from the LLVM project.
#if defined(__GLIBCXX__) || defined(_LIBCPP_VERSION)
# define GTEST_HAS_CXXABI_H_ 1
#else
# define GTEST_HAS_CXXABI_H_ 0
#endif

Obviously those lines work on some platform; which platform(s) is that?

-Ken

Ken Turkowski

unread,
Nov 1, 2013, 8:59:17 PM11/1/13
to Google C++ Testing Framework, Zhanyong Wan
Never mind. I got it working without changing gtest.
It was a makefile problem
Reply all
Reply to author
Forward
0 new messages