终于用上了Boost.test

  终于用上了,虽然现在只是简单的做单元测试,但至少能用了,这够了。
  首先apt-get install libboost-test,诶,不得不说一句,debian就是方便啊。然后写makefile,主要是我不想每次都写那么一大串的东西来编译。其实也没什么特殊的,记得链接一下test的库,具体的用dpkg -L查看吧。然后还需要加一个常量的定义,-DBOOST_TEST_DYN_LINK,否则丫会告诉你main没有定义,昨晚折腾了我一晚上,FT。

This entry was posted in 杂九杂十^_^. Bookmark the permalink.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>