{"id":1487,"date":"2013-01-04T03:16:23","date_gmt":"2013-01-03T18:16:23","guid":{"rendered":"http:\/\/daily.belltail.jp\/?p=1487"},"modified":"2013-01-04T03:30:27","modified_gmt":"2013-01-03T18:30:27","slug":"google-glog%e3%81%a7%e6%9c%80%e4%bd%8e%e9%99%90%e4%bd%bf%e3%81%84%e3%81%9f%e3%81%84%ef%bc%8c%e3%81%9f%e3%81%a01%e3%81%a4%e3%81%ae%e6%a9%9f%e8%83%bd-%e3%80%9c%e8%87%aa%e5%8b%95%e3%82%b9%e3%82%bf","status":"publish","type":"post","link":"https:\/\/daily.belltail.jp\/?p=1487","title":{"rendered":"google-glog\u3067\u6700\u4f4e\u9650\u4f7f\u3044\u305f\u3044\uff0c\u305f\u30601\u3064\u306e\u6a5f\u80fd \u301c\u81ea\u52d5\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u51fa\u529b\u301c"},"content":{"rendered":"<p>\u3082\u304610\u5e74\u4ee5\u4e0a\u3082\u524d\u306b\u306a\u308a\u307e\u3059\u3051\u3069\u3082\uff0c\u8fd1\u5834\u306e\u6f01\u6e2f\u306b\u3088\u304f\u9023\u308c\u3066\u884c\u3063\u3066\u3082\u3089\u3063\u3066\u9b5a\u91e3\u308a\u3057\u3066\u3044\u307e\u3057\u305f\uff0e<br \/>\n\u3061\u3087\u3046\u3069\u30a2\u30b8\u306f\u897f\u65e5\u672c\u306e\u65e5\u672c\u6d77\u5074\u304c\u672c\u5834\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u3063\u3066\uff0c\u50d5\u306e\u5730\u5143\u3067\u306f\u5cb8\u58c1\u306b\u7acb\u3063\u3066\u30b5\u30d3\u30ad\u3092\u3059\u308b\u3068\u5c0f\u30a2\u30b8\u304c\u305f\u304f\u3055\u3093\u91e3\u308c\u307e\u3057\u305f\uff0e<\/p>\n<p>\u3055\u3066\uff0cgoogle-glog\u3068\u8a00\u3048\u3070google\u8b39\u88fd\u306e\u30ed\u30b0\u30e9\u30a4\u30d6\u30e9\u30ea\uff0e<br \/>\n[http:\/\/googlejapan.blogspot.jp\/2009\/04\/c.html:title=Google Japan Blog: C++ \u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30c7\u30d0\u30c3\u30b0\u3092\u697d\u306b\u3059\u308b\u65b9\u6cd5]\u306b\u3066\u6982\u8981\u304c\u7d39\u4ecb\u3055\u308c\u3066\u3044\u3066\uff0c\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f[http:\/\/google-glog.googlecode.com\/svn\/trunk\/doc\/glog.html:title=\u7c21\u5358\u306a\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb]\u304c\u3042\u308a\u307e\u3059\uff0e\u57fa\u672c\u7684\u306b\u306f\u4f7f\u3044\u65b9\u306b\u96e3\u3057\u3044\u3068\u3053\u308d\u306f\u4f55\u3082\u7121\u3044\u3067\u3059\uff0e<\/p>\n<p>\u304a\u9b5a\u3055\u3093\u7684\u306b\u306f\u5b66\u90e8\u5352\u8ad6\u306e\u3068\u304d\u304b\u3089\u4f7f\u3063\u3066\u3066\u3082\u306f\u3084\u624b\u653e\u305b\u306a\u3044\u3093\u3067\u3059\u304c\uff0c\u4f5c\u696d\u304c\u5207\u7fbd\u8a70\u3063\u3066\u304f\u308b\u3068\u3042\u3093\u307e\u308a\u5f8b\u5100\u306b\u30ed\u30b0\u3092\u51fa\u3059\u4f59\u88d5\u304c\u306a\u304f\u306a\u3063\u3066\u304d\u307e\u3059\uff57<br \/>\n\u305d\u3093\u306a\u6642\u3067\u3082\u305f\u3060\u4e00\u3064\u3044\u3064\u3067\u3082\u4f7f\u3063\u3066\u305f\u306e\u304c\uff0c<font color=\"red\">\u300c\u843d\u3061\u305f\u6642\u306b\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3092\u5410\u304f\u6a5f\u80fd\u300d<\/font>\u3067\u3059\uff0e<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u4eca\u56de\u306f\u305d\u308c\u306b\u7d5e\u3063\u3066\u7d39\u4ecb\uff0e\u307e\u3068\u307e\u3063\u305f\u8a18\u4e8b\u3092\u66f8\u304f\u306b\u306f\u4eca\u6642\u9593\u7684\u4f59\u88d5\u304c\u306a\u3044\uff1e\uff1c<\/p>\n<p>[:contents]<br \/>\n<!--more--><\/p>\n<p>*google-glog\u306e\u5c0e\u5165<br \/>\nLinux\u3092\u60f3\u5b9a\u3057\u3066\u307e\u3059\uff0e<br \/>\n[http:\/\/code.google.com\/p\/google-glog\/:title=google-glog &#8211; Logging library for C++ &#8211; Google Project Hosting]\u304b\u3089\u843d\u3068\u3057\u3066\uff0c\u666e\u901a\u306b\u3084\u308b\u3060\u3051\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n% wget http:\/\/google-glog.googlecode.com\/files\/glog-0.3.2.tar.gz\r\n% tar xf glog-0.3.2.tar.gz\r\n% cd glog-0.3.2\r\n% .\/configure\r\n% make\r\n% make check\r\n% sudo make install\r\n<\/pre>\n<p>\u4e00\u822c\u7684\u306a\u8a71\u3067\u3059\u304cconfigure\u306e\u5f15\u6570\u306b&#8221;&#8211;prefix=hoge&#8221;\u3092\u3064\u3051\u308b\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u3092\u5909\u3048\u3089\u308c\u307e\u3059\uff0e\u3059\u306a\u308f\u3061\uff0choge\/include\u3084hoge\/lib\u306b\u305d\u308c\u305e\u308c\u683c\u7d0d\u3055\u308c\u308b\u5f62\u306b\u306a\u308a\u307e\u3059\uff0e<\/p>\n<p>*\u4f7f\u3044\u65b9<br \/>\n\u6700\u4f4e\u9650\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u3059\uff0e\u30b9\u30cb\u30da\u30c3\u30c8\u3068\u3057\u3066\u4f7f\u3063\u3066\u3082\u3089\u3048\u308b\u3068\u601d\u3044\u307e\u3059\uff0e<br \/>\n<script src=\"https:\/\/gist.github.com\/4445353.js\"><\/script><\/p>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306flibglog.a\u3092\u30ea\u30f3\u30af\u3057\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n% g++ prog.cpp -lglog\r\n<\/pre>\n<p>*\u7d50\u679c\u306e\u4f8b<br \/>\n\u4f8b\u306b\u8f09\u305b\u305f\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306ffunc\u3067\u6b7b\u306c\u306e\u3067\u3059\u304c\uff0c\u305d\u306e\u6642\u306b\u3053\u3093\u306a\u304b\u3093\u3058\u3067\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3092\u5410\u3044\u3066\u304f\u308c\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n terminate called without an active exception\r\n *** Aborted at 1357235745 (unix time) try &quot;date -d @1357235745&quot; if you are using GNU date ***\r\n PC: @     0x7f31bffa93e5 (unknown)\r\n *** SIGABRT (@0xd3e00007bc0) received by PID 31680 (TID 0x7f31c0ed1740) from PID 31680; stack trace: ***\r\n     @     0x7f31bffa9460 (unknown)\r\n     @     0x7f31bffa93e5 (unknown)\r\n     @     0x7f31bffacb4b (unknown)\r\n     @     0x7f31c086bd7d (unknown)\r\n     @     0x7f31c0869f26 (unknown)\r\n     @     0x7f31c0869f53 (unknown)\r\n     @     0x7f31c086a096 (unknown)\r\n     @           0x400775 func()\r\n     @           0x40079d main\r\n     @     0x7f31bff9430d (unknown)\r\n     @           0x400689 \r\n zsh: abort      .\/a.out\r\n<\/pre>\n<p>*\u6700\u9069\u5316\u306b\u3088\u308b\u51fa\u529b\u5185\u5bb9\u306e\u9055\u3044<br \/>\n\u3053\u3053\u304b\u3089\u306f\u308f\u308a\u3068\u8208\u5473\uff0e<br \/>\n\u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u898b\u3066\u307f\u305f\uff0e<br \/>\n\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\uff0c\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u304c\u3061\u3083\u3093\u3068\u610f\u5473\u306e\u3042\u308b\u304b\u3093\u3058\u306b\u306a\u308b\u305f\u3081\u306b\u306f\uff0c\u6700\u9069\u5316\u306a\u3057\u306e\u30c7\u30d0\u30c3\u30b0\u30b7\u30f3\u30dc\u30eb\u4ed8\u304d(&#8220;-O0 -g&#8221;)\u306b\u3057\u3066\u304a\u304f\u3068\u3088\u3044\u3067\u3059\uff0e<\/p>\n<p>**&#8221;-O3&#8243;\u30aa\u30d7\u30b7\u30e7\u30f3<br \/>\n\u30b7\u30f3\u30dc\u30eb\u6d88\u3048\u3061\u3083\u3046\u304b\u3089\u3067\u3057\u3087\u3046\u306d\uff0c\u4f55\u304b\u306e\u7121\u9650\u30eb\u30fc\u30d7\u306b\u9665\u3063\u3066\u6b62\u307e\u3063\u3066\u308b\u3088\u3046\u3067\u3059\uff0e<br \/>\nO2\u304a\u3088\u3073Os\u3067\u3082\u7d50\u679c\u306f\u4e00\u7dd2\u3067\u3057\u305f\uff0e<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n terminate called without an active exception\r\n *** Aborted at 1357236054 (unix time) try &quot;date -d @1357236054&quot; if you are using GNU date ***\r\n PC: @     0x7f9e56cb43e5 (unknown)\r\n *** SIGABRT (@0xd3e00007bfc) received by PID 31740 (TID 0x7f9e57bdc740) from PID 31740; stack trace: ***\r\n     @     0x7f9e56cb4460 (unknown)\r\n     @     0x7f9e56cb43e5 (unknown)\r\n     @     0x7f9e56cb7b4b (unknown)\r\n     @     0x7f9e57576d7d (unknown)\r\n     @     0x7f9e57574f26 (unknown)\r\n     @     0x7f9e57574f53 (unknown)\r\n     @     0x7f9e57575096 (unknown)\r\n ^C\r\n<\/pre>\n<p>**&#8221;-O3 -g&#8221;\u30aa\u30d7\u30b7\u30e7\u30f3<br \/>\n-g\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u30c7\u30d0\u30c3\u30b0\u30b7\u30f3\u30dc\u30eb\u3092\u6709\u52b9\u306b\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\uff0cgdb\u306a\u3093\u304b\u3067\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u306e\u306b\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\uff0e<br \/>\n\u3053\u308c\u3067\u3082\u3084\u3063\u3071\u308aO3\u52b9\u679c\u3067\u95a2\u6570\u540d\u304c\u843d\u3068\u3055\u308c\u3066\u3066\u540d\u524d\u304c\u898b\u3048\u307e\u305b\u3093\uff0e<br \/>\nO3\u306f\u3042\u307e\u308a\u3057\u306a\u3044\u307b\u3046\u304c\u3044\u3044\u3068\u8a00\u3046\u3057\u306a\u3041\uff0e<br \/>\n\u3053\u3063\u3061\u3082O2\u3084Os\u3068\u7d50\u679c\u306f\u4e00\u7dd2\u3067\u3057\u305f\uff0e<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n terminate called without an active exception\r\n *** Aborted at 1357236131 (unix time) try &quot;date -d @1357236131&quot; if you are using GNU date ***\r\n PC: @     0x7f28307fa3e5 (unknown)\r\n *** SIGABRT (@0xd3e00007c14) received by PID 31764 (TID 0x7f2831722740) from PID 31764; stack trace: ***\r\n     @     0x7f28307fa460 (unknown)\r\n     @     0x7f28307fa3e5 (unknown)\r\n     @     0x7f28307fdb4b (unknown)\r\n     @     0x7f28310bcd7d (unknown)\r\n     @     0x7f28310baf26 (unknown)\r\n     @     0x7f28310baf53 (unknown)\r\n     @     0x7f28310bb096 (unknown)\r\n     @           0x400676 main\r\n     @     0x7f28307e530d (unknown)\r\n     @           0x4006a1 \r\n zsh: abort      .\/a.out\r\n<\/pre>\n<p>**&#8221;-O1&#8243;\u30aa\u30d7\u30b7\u30e7\u30f3\u3068&#8221;-O1 -g&#8221;\u30aa\u30d7\u30b7\u30e7\u30f3<br \/>\n\u7701\u7565\u3057\u307e\u3059\u304cO2\u3084O3\u306e\u3068\u304d\u306e\u3068-O0\u306e\u3068\u304d\u306e\u3061\u3087\u3046\u3069\u4e2d\u9593\u307f\u305f\u3044\u306a\u7d50\u679c\u306b\u306a\u308a\u307e\u3057\u305f\uff0e<br \/>\n\u4e00\u5fdc\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3068\u3057\u3066\u306f\u3061\u3083\u3093\u3068\u51fa\u307e\u3057\u305f\uff0e<\/p>\n<p>**&#8221;-O0 -g&#8221;\u30aa\u30d7\u30b7\u30e7\u30f3<br \/>\n\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u3068\u304d\u306e\u4e00\u822c\u7684\u306a\u30e2\u30fc\u30c9\u3067\u3059\u306d\uff0e<br \/>\n\u306a\u306e\u3067\u30b7\u30f3\u30dc\u30eb\u3082\u3057\u3063\u304b\u308a\u6b8b\u3063\u3066\u3066\u304f\u308c\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n terminate called without an active exception\r\n *** Aborted at 1357236257 (unix time) try &quot;date -d @1357236257&quot; if you are using GNU date ***\r\n PC: @     0x7f9c9e95a3e5 (unknown)\r\n *** SIGABRT (@0xd3e00007c35) received by PID 31797 (TID 0x7f9c9f882740) from PID 31797; stack trace: ***\r\n     @     0x7f9c9e95a460 (unknown)\r\n     @     0x7f9c9e95a3e5 (unknown)\r\n     @     0x7f9c9e95db4b (unknown)\r\n     @     0x7f9c9f21cd7d (unknown)\r\n     @     0x7f9c9f21af26 (unknown)\r\n     @     0x7f9c9f21af53 (unknown)\r\n     @     0x7f9c9f21b096 (unknown)\r\n     @           0x400775 func()\r\n     @           0x40079d main\r\n     @     0x7f9c9e94530d (unknown)\r\n     @           0x400689 \r\n zsh: abort      .\/a.out\r\n<\/pre>\n<p>*\u307e\u3068\u3081<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\uff0c\u7279\u306b\u7814\u7a76\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u304b\u3060\u3068\uff0c\u3068\u308a\u3042\u3048\u305a\u30b3\u30fc\u30c9\u66f8\u304d\u59cb\u3081\u305f\u3089\u307e\u305a\u306f\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u5410\u304f\u30b9\u30cb\u30da\u30c3\u30c8\u8cbc\u3063\u3066\uff0c\u305d\u3053\u304b\u3089\u30b3\u30fc\u30c9\u66f8\u304f\u3068\uff0c\u843d\u3061\u3066\u304b\u3089\u539f\u56e0\u8ffd\u6c42\u306e\u305f\u3081\u306b\u3042\u308c\u3053\u308c\u3059\u308b\u30b3\u30b9\u30c8\u304c\u7121\u8996\u3067\u304d\u306a\u3044\u30ec\u30d9\u30eb\u3067\u6e1b\u308b\u3068\u601d\u3044\u307e\u3059\uff0e<br \/>\n\u305c\u3072\u6d3b\u7528\u3057\u3066\u304f\u3060\u3055\u3044\uff0e<\/p>\n<p>1\u5e74\u4ee5\u4e0a\u524d\u304b\u3089\u4f7f\u3063\u3066\u308b\u306e\u306b\u3053\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u66f8\u3044\u305f\u306e\u306f\u30aa\u30d6\u30e9\u30fc\u30c8\u306b\u5305\u3093\u3067\u8a00\u3046\u3068\u73fe\u5b9f\u9003\u907f\u3067\u3059\uff0e\uff08\u2190<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3082\u304610\u5e74\u4ee5\u4e0a\u3082\u524d\u306b\u306a\u308a\u307e\u3059\u3051\u3069\u3082\uff0c\u8fd1\u5834\u306e\u6f01\u6e2f\u306b\u3088\u304f\u9023\u308c\u3066\u884c\u3063\u3066\u3082\u3089\u3063\u3066\u9b5a\u91e3\u308a\u3057\u3066\u3044\u307e\u3057\u305f\uff0e \u3061\u3087\u3046\u3069\u30a2\u30b8\u306f\u897f\u65e5\u672c\u306e\u65e5\u672c\u6d77\u5074\u304c\u672c\u5834\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u3063\u3066\uff0c\u50d5\u306e\u5730\u5143\u3067\u306f\u5cb8\u58c1\u306b\u7acb\u3063\u3066\u30b5\u30d3\u30ad\u3092\u3059\u308b\u3068\u5c0f\u30a2\u30b8\u304c\u305f\u304f\u3055\u3093\u91e3\u308c\u307e\u3057\u305f\uff0e \u3055 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12,7,39],"class_list":["post-1487","post","type-post","status-publish","format-standard","hentry","category-1","tag-c","tag-linux","tag-tips"],"_links":{"self":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/1487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1487"}],"version-history":[{"count":0,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/1487\/revisions"}],"wp:attachment":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}