{"id":5823,"date":"2016-02-14T07:42:28","date_gmt":"2016-02-13T22:42:28","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=5823"},"modified":"2016-02-14T07:42:28","modified_gmt":"2016-02-13T22:42:28","slug":"windows-%e3%81%ab-boost-c-libraries-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%ef%bc%88%e3%83%93%e3%83%ab%e3%83%89%ef%bc%89%ef%bc%88%e3%81%9d%e3%81%ae%ef%bc%92%ef%bc%89","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=5823","title":{"rendered":"Windows \u306b boost C++ libraries \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u30d3\u30eb\u30c9\uff09\uff08\u305d\u306e\uff12\uff09"},"content":{"rendered":"<p>Boost.Test \u3092\u4f7f\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092 Visual Studio \u306e IDE \u4e0a\u3067\u66f8\u3044\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001libboost_unit_test_framework-vc120-mt-gd-1_60.lib \u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3001\u3068\u3044\u3046\u30ea\u30f3\u30af\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u540d\u306e mt-gd \u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30bf\u30a4\u30d7\u3092\u8868\u3057\u3066\u3044\u3066\u3001\u300c\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u300d\u300c\u30c7\u30d0\u30c3\u30b0\u30d3\u30eb\u30c9\u300d\u300cC\/C++\u30e9\u30f3\u30bf\u30a4\u30e0\u306fDLL\u3092\u4f7f\u3046\u300d\u3067\u3059\u3002\u3042\u3068\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u81ea\u4f53\u306f\u300c\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u300d\u3067\u3059\u3002\u78ba\u304b\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u3068\u3057\u3066\u306f\u30e9\u30f3\u30bf\u30a4\u30e0\u306fDLL\u3092\u4f7f\u3046\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u540d\u306e\u81ea\u52d5\u5224\u5b9a\u306f\u6b63\u3057\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/?p=5781\">\u30d3\u30eb\u30c9\u3057\u305f\u6642<\/a>\u306f\u3001\u300c\u30e9\u30a4\u30d6\u30e9\u30ea\u81ea\u4f53\u304cDLL\u3067\u30e9\u30f3\u30bf\u30a4\u30e0\u3082DLL\u3092\u4f7f\u3046\u300d\u300c\u30e9\u30a4\u30d6\u30e9\u30ea\u81ea\u4f53\u304c\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u3067\u30e9\u30f3\u30bf\u30a4\u30e0\u3082\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u3092\u4f7f\u3046\u300d\u306e2\u901a\u308a\u3057\u304b\u30d3\u30eb\u30c9\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u300c\u30e9\u30a4\u30d6\u30e9\u30ea\u81ea\u4f53\u304c\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u3067\u30e9\u30f3\u30bf\u30a4\u30e0\u306fDLL\u3092\u4f7f\u3046\u300d\u3092\u30ea\u30f3\u30af\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u898b\u3064\u304b\u3089\u306a\u3044\u306e\u306f\u5f53\u7136\u3067\u3059\u3002<\/p>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b <code>#define BOOST_DYN_LINK 1<\/code> \u3068\u66f8\u3044\u3066 DLL \u7248\u306e boost \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30ea\u30f3\u30af\u3057\u3066\u3082\u3044\u3044\u3093\u3067\u3059\u304c\u3001DLL \u306e\u3042\u308b\u3068\u3053\u308d\u306b\u30d1\u30b9\u306f\u901a\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u51fa\u6765\u4e0a\u304c\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u304c\u3061\u3087\u3063\u3068\u3081\u3093\u3069\u304f\u3055\u304f\u306a\u308a\u307e\u3059\u3002\u306a\u306e\u3067\u3001\u304a\u3068\u306a\u3057\u304f\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u30e9\u30f3\u30bf\u30a4\u30e0\u3092\u4f7f\u3046\u7528\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u3053\u3046\u3059\u308b\u3068 boost \u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u306e\u3082\u306e\u3092\u30ea\u30f3\u30af\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr \/>\n<p>\u5225\u306e\u65b9\u6cd5\u3068\u3057\u3066\u3001\u300c\u30e9\u30a4\u30d6\u30e9\u30ea\u81ea\u4f53\u304c\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u3067\u30e9\u30f3\u30bf\u30a4\u30e0\u306fDLL\u3092\u4f7f\u3046\u300d\u3092\u30d3\u30eb\u30c9\u3057\u3066\u3053\u3063\u3061\u3092\u4f7f\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n<blockquote>\n<pre>cd C:\\boost\\boost_1_60_0\r\nb2 toolset=msvc threading=multi variant=debug,release link=static runtime-link=shared address-model=32 --stagedir=stage\/x86 -j 8\r\nb2 toolset=msvc threading=multi variant=debug,release link=static runtime-link=shared address-model=64 --stagedir=stage\/x64 -j 8\r\n<\/pre>\n<\/blockquote>\n<p>\u306a\u304a\u3001\u3053\u306e\u9006\u3001\u3064\u307e\u308a\u300c\u30e9\u30a4\u30d6\u30e9\u30ea\u81ea\u4f53\u304cDLL\u3067\u30e9\u30f3\u30bf\u30a4\u30e0\u306f\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u3092\u4f7f\u3046\u300d\u306e\u7d44\u307f\u5408\u308f\u305b\u306f\u300c\u5371\u967a\u300d\uff08\u305f\u3068\u3048\u3070 boost \u30e9\u30a4\u30d6\u30e9\u30ea\u5074\u3067\u78ba\u4fdd\u3057\u305f\u30e1\u30e2\u30ea\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u5074\u3067\u89e3\u653e\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u304a\u304b\u3057\u306a\u52d5\u4f5c\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff09\u3067\u3042\u308b\u305f\u3081\u3001\u30d3\u30eb\u30c9\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u6012\u3089\u308c\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>C:\\boost\\boost_1_60_0>b2 toolset=msvc threading=multi variant=debug,release link=shared runtime-link=static address-model=64 --stagedir=stage\/x64 -j 4\r\nerror: link=shared together with runtime-link=static is not allowed\r\nerror: such property combination is either impossible\r\nerror: or too dangerious to be of any use\r\n<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Boost.Test \u3092\u4f7f\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092 Visual Studio \u306e IDE \u4e0a\u3067\u66f8\u3044\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001libboost_unit_test_framework-vc120-mt-gd-1_60.lib  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-5823","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5823"}],"version-history":[{"count":3,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5823\/revisions"}],"predecessor-version":[{"id":5826,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5823\/revisions\/5826"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5823"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}