在XCode中运用CPPUnit

Use CPPUnit with XCode

  1. Download cppunti from sourceforge

  2. Compile and install

      ./configure

      make install

  3. Create new C++ Tool project and add source files in cppunit/examples/simple except SimplePlugIn.cpp

  4. Add the library libcppunit.dylib (/usr/local/lib) in the project also

  5. Check the project properties, and remove below definition in Preprocessor key:

     _GLIBCXX_DEBUG=1 _GLIBCXX_DEBUG_PEDANTIC=1

 

CPPUnit won't support universal binary well. So the testing project is only for native architecture of build machine. 

 

What are these two macro definitions?

   _GLIBCXX_DEBUG to enable stl debugging

  _GLIBCXX_DEBUG_PEDANTIC, Which will force your app to use the __gnu_debug_def namespace for any stl containers在XCode中运用CPPUnit

 

原文链接: https://www.cnblogs.com/c-source/archive/2010/10/28/2564809.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    在XCode中运用CPPUnit

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/16729

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月7日 下午5:05
下一篇 2023年2月7日 下午5:05

相关推荐