Hello,
New to using the framework, and I'm sure I'm just doing something dumb, but I can't seem to find a solution, despite tirelessly searching. I do want to note, though, that I was able to find some basic information on the topic relating to c++98 on these boards (
https://groups.google.com/forum/#!topic/googletestframework/F1B9LArL9_U), but it isn't too helpful to me in my current scenario. It seems as those the former solution was to patch the gtest-port.h file to get past some minor compatibility issues, which appear to have since been incorporated into the main development branch of the framework (at least as of version 1.7.0 RC1). Anywho, here is my problem...
As I said, new to the GTest framework, but have managed to compile it with Cmake, and got it installed and operational (for the most part). My problem lies in the process of converting a few smaller programs to c++11, and trying to associate unit tests with them during the conversion process. My typical (functioning) compilation statement for the tests looks like the following:
clang++ -std=c++11 -lgtest <file.cpp> -o <file>
Nothing too outrageous, but for several of the programs I need to link against the libc++ variant of the standard library in order to incorporate some desired functionality (it appears to be a bit more feature complete). Upon using the -stdlib=libc++ option, it all fails... Any suggestions on how to alleviate this issue? Is this simple because the framework doesn't fully support c++11 yet?
I've tried doing this on the latest version of OS X (10.8.4) and on Ubuntu 12.04, merely using sample1 in the official documentation to test against. OS X will compile and run smoothly on tests that don't require libc++, but those that do will give me an extremely verbose linking error. As for Ubuntu, I can't get it to budge either way; there are different (from OS X), but still largely verbose, linking errors I can't seem to get past (with or without the inclusion of libc++)...
Thanks in advance for the help, and, again, I apologize if there are any redundancies in my question compared to any other open threads!
- Chris