Boost C++ Libraries: Ticket #11948: undefined reference to boost::gregorian::greg_month::get_month_map_ptr() https://svn.boost.org/trac10/ticket/11948 <p> [liukai@iZ11idlxpv6Z 20160127]$ ./waf -v Waf: Entering directory `/home/liukai/builder/20160127/build' <a class="changeset" href="https://svn.boost.org/trac10/changeset/42/42" title="*** empty log message *** ">[42/42]</a> Linking build/SceneServer/SceneServer 23:43:47 runner ['/home/liukai/local/bin/clang++', '-pthread', '-lrt', '-lz', '-ldl', '-rdynamic', '-static-libgcc', '-static-libstdc++', '<a class="missing wiki">SceneServer/SceneServer</a>.cpp.1.o', '-o', '/home/liukai/builder/20160127/build/SceneServer/SceneServer', '-Wl,-Bstatic', '-Lcommon', '-L3Party/lua-5.3.2', '-L../build/common', '-L../3Party/boost/lib', '-lcommon', '-llua-5.3.2', '-lboost_system', '-lboost_date_time', '-Wl,-Bdynamic'] <a class="missing wiki">SceneServer/SceneServer</a>.cpp.1.o:在函数‘unsigned short boost::date_time::month_str_to_ushort&lt;boost::gregorian::greg_month&gt;(std::<span class="underline">cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)’中: /home/liukai/local/include/boost/date_time/date_parsing.hpp:67:对‘boost::gregorian::greg_month::get_month_map_ptr()’未定义的引用 clang: error: linker command failed with exit code 1 (use -v to see invocation) </span></p> <p> Waf: Leaving directory `/home/liukai/builder/20160127/build' Build failed </p> <blockquote> <p> -&gt; task in '<a class="missing wiki">SceneServer</a>' failed (exit status 1): </p> <blockquote> <p> {task 140651725143760: cxxprogram <a class="missing wiki">SceneServer</a>.cpp.1.o -&gt; <a class="missing wiki">SceneServer</a>} </p> </blockquote> </blockquote> <p> ['/home/liukai/local/bin/clang++', '-pthread', '-lrt', '-lz', '-ldl', '-rdynamic', '-static-libgcc', '-static-libstdc++', '<a class="missing wiki">SceneServer/SceneServer</a>.cpp.1.o', '-o', '/home/liukai/builder/20160127/build/SceneServer/SceneServer', '-Wl,-Bstatic', '-Lcommon', '-L3Party/lua-5.3.2', '-L../build/common', '-L../3Party/boost/lib', '-lcommon', '-llua-5.3.2', '-lboost_system', '-lboost_date_time', '-Wl,-Bdynamic'] </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11948 Trac 1.4.3 565434471@… Sat, 30 Jan 2016 15:49:39 GMT attachment set https://svn.boost.org/trac10/ticket/11948 https://svn.boost.org/trac10/ticket/11948 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">QQ图片20160130234906.png</span> </li> </ul> Ticket 565434471@… Sat, 30 Jan 2016 15:53:26 GMT attachment set https://svn.boost.org/trac10/ticket/11948 https://svn.boost.org/trac10/ticket/11948 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">QQ图片20160130235257.jpg</span> </li> </ul> Ticket