###前提・実現したいこと
GiNaCというライブラリをmakeしたいです。
configureはうまくいきました。
しかし,makeを実行すると失敗しました。
おそらくstd名前空間にto_string関数がないことが原因だと思われます。
こういう場合,どのようにすればmakeできるのでしょうか。
###発生している問題・エラーメッセージ
$ make Making all in ginac make[1]: Entering directory `/c/ginac-1.7.1/ginac' make all-am make[2]: Entering directory `/c/ginac-1.7.1/ginac' /bin/sh ../libtool --tag=CXX --mode=compile g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../config -DLIBEXECDIR='"/usr/local/libexec/"' -I C:/cln-1.3.4/include -g -O2 -MT libginac_la-add.lo -MD -MP -MF .deps/libginac_la-add.Tpo -c -o libginac_la-add.lo `test -f 'add.cpp' || echo './'`add.cpp libtool: compile: g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../config -DLIBEXECDIR=\"/usr/local/libexec/\" -I C:/cln-1.3.4/include -g -O2 -MT libginac_la-add.lo -MD -MP -MF .deps/libginac_la-add.Tpo -c add.cpp -DDLL_EXPORT -DPIC -o .libs/libginac_la-add.o libtool: compile: g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../config -DLIBEXECDIR=\"/usr/local/libexec/\" -I C:/cln-1.3.4/include -g -O2 -MT libginac_la-add.lo -MD -MP -MF .deps/libginac_la-add.Tpo -c add.cpp -o libginac_la-add.o >/dev/null 2>&1 mv -f .deps/libginac_la-add.Tpo .deps/libginac_la-add.Plo /bin/sh ../libtool --tag=CXX --mode=compile g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../config -DLIBEXECDIR='"/usr/local/libexec/"' -I C:/cln-1.3.4/include -g -O2 -MT libginac_la-archive.lo -MD -MP -MF .deps/libginac_la-archive.Tpo -c -o libginac_la-archive.lo `test -f 'archive.cpp' || echo './'`archive.cpp libtool: compile: g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../config -DLIBEXECDIR=\"/usr/local/libexec/\" -I C:/cln-1.3.4/include -g -O2 -MT libginac_la-archive.lo -MD -MP -MF .deps/libginac_la-archive.Tpo -c archive.cpp -DDLL_EXPORT -DPIC -o .libs/libginac_la-archive.o archive.cpp: In function 'std::istream& GiNaC::operator>>(std::istream&, GiNaC::archive&)': archive.cpp:274:50: error: 'to_string' is not a member of 'std' throw (std::runtime_error("archive version " + std::to_string(version) + " cannot be read by this GiNaC library (which supports versions " + std::to_string(min_version) + " thru " + std::to_string(max_version))); ^ archive.cpp:274:144: error: 'to_string' is not a member of 'std' throw (std::runtime_error("archive version " + std::to_string(version) + " cannot be read by this GiNaC library (which supports versions " + std::to_string(min_version) + " thru " + std::to_string(max_version))); ^ archive.cpp:274:185: error: 'to_string' is not a member of 'std' throw (std::runtime_error("archive version " + std::to_string(version) + " cannot be read by this GiNaC library (which supports versions " + std::to_string(min_version) + " thru " + std::to_string(max_version))); ^ make[2]: *** [libginac_la-archive.lo] Error 1 make[2]: Leaving directory `/c/ginac-1.7.1/ginac' make[1]: *** [all] Error 2 make[1]: Leaving directory `/c/ginac-1.7.1/ginac' make: *** [all-recursive] Error 1
###補足情報(言語/FW/ツール等のバージョンなど)
g++ (GCC) 5.3.0
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。