Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 CppUnit 来测试我的软件项目,该项目目前广泛使用 C++0x/C++11 功能,如std::shared_ptr和auto变量。由于项目使用这些功能,并且我正在使用 构建它clang,因此我需要-stdlib=libc++在编译时传递标志。但是,使用此版本的标准库会阻止我使用 CppUnit,这需要我使用libstdc++标准库。
std::shared_ptr
auto
clang
-stdlib=libc++
libstdc++
有什么方法可以让我的测试代码和程序代码使用这些单独的库共存,或者有什么其他方法可以使用 CppUnit 来测试这个代码?