ã¿ã¤ãã«ãã®ã¾ãã¾ã§ãã
ç°å¢ã¯ä»¥ä¸ã®éãã
$ uname -rs CYGWIN_NT-10.0 2.8.2(0.313/5/3) $ ruby -v ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-cygwin]
bundle install ãã㨠extension ã®ã³ã³ãã¤ã«ã§ã³ã±ã¾ãã
g++ -I. -I/usr/include/ruby-2.3.0 -I/usr/include/ruby-2.3.0/ruby/backward -I/usr/include/ruby-2.3.0 -I. -DHAVE_UNICODE_UCNV_H -ggdb -O2 -pipe -o transliterator.o -c transliterator.cpp In file included from /usr/include/unicode/utypes.h:38:0, from /usr/include/unicode/translit.h:15, from transliterator.cpp:5: /usr/include/unicode/umachine.h:347:13: error: 'char16_t' does not name a type typedef char16_t UChar; ^
char16_t 㯠C++11 ã®æ©è½ã§ãããããg++ ã« -std=c++11 ã渡ããªãã¨ãããªãããã§ãã ã¨ãããã㧠bundle config ã§ãªãã·ã§ã³ãè¨å®ããå¿ è¦ãããã¾ãã(ãããç¥ãã®ã«ãã£ããæéãé£ã£ãã)
$ bundle config --local build.charlock_holmes --with-cxxflags=\"-std=c++11\"
bundle config ã® build.* 㯠extconf.rb å 㧠with_config ãããã®ããåãåããªãã®ãã¨æã£ã¦ã¾ããã
[追è¨] with_config ãã¦ã¾ãããã
$CXXFLAGS = (with_config("cxxflags", arg_config("CXXFLAGS", config["CXXFLAGS"]))||'').dup