Boost C++ Libraries: Ticket #11460: cannot compile date_time_format_parser.cpp https://svn.boost.org/trac10/ticket/11460 <p> Compiling date_time_format_parser.cpp on SunOS with Oracle Solaris Studio12.4, we see </p> <p> /ws/pythia/builds/pse/m7/biweekly/latest/inst/sparc-S2/bin/CC -compat=5 -library=stlport4 -xO4 -mt -erroff=%none -m64 -KPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_DYN_LINK=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_DATE_TIME_DYN_LINK=1 -DBOOST_FILESYSTEM_DYN_LINK=1 -DBOOST_HAS_ICU=1 -DBOOST_LOG_BUILDING_THE_LIB=1 -DBOOST_LOG_DLL -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_EVENT_LOG -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_DONT_USE_CHRONO=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_DLL=1 -DDATE_TIME_INLINE -DNDEBUG -D_XOPEN_SOURCE=500 -D<span class="underline">EXTENSIONS</span> -D<span class="underline">typeof</span>=<span class="underline">typeof</span> -I.. -c -o ./date_time_format_parser.o ./date_time_format_parser.cpp "./date_time_format_parser.cpp", line 399: Error: Linker scopes may not change after symbol definition. "./date_time_format_parser.cpp", line 412: Error: Linker scopes may not change after symbol definition. </p> <p> The following change seems to resolve this issue. </p> <p> diff date_time_format_parser.cpp date_time_format_parser.cpp_new 346c346 &lt; template&lt; typename CharT &gt; --- </p> <blockquote class="citation"> <p> template&lt; typename CharT &gt; BOOST_LOG_API </p> </blockquote> <p> 356c356 &lt; template&lt; typename CharT &gt; --- </p> <blockquote class="citation"> <p> template&lt; typename CharT &gt; BOOST_LOG_API </p> </blockquote> <p> 366c366 &lt; template&lt; typename CharT &gt; --- </p> <blockquote class="citation"> <p> template&lt; typename CharT &gt; BOOST_LOG_API </p> </blockquote> <p> 375c375 &lt; template&lt; typename CharT &gt; --- </p> <blockquote class="citation"> <p> template&lt; typename CharT &gt; BOOST_LOG_API </p> </blockquote> <p> This prevents building libboost_log.so.1.59.0 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11460 Trac 1.4.3 Andrey Semashev Fri, 10 Jul 2015 18:48:27 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11460#comment:1 https://svn.boost.org/trac10/ticket/11460#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Duplicates <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11459" title="#11459: Bugs: cannot compile date_time_format_parser.cpp (closed: fixed)">#11459</a>. </p> Ticket