Boost C++ Libraries: Ticket #176: Compile Smart_ptr library on Forte (Sun One) https://svn.boost.org/trac10/ticket/176 <pre class="wiki">Please support Shared_ptr : Smart_ptr on Sun Solaris platform compiling with Forte (Sun One). I am unable to link to the checked_deleter method. Thank you, aaron.campbell@siemens.com </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/176 Trac 1.4.3 nobody Tue, 22 Jul 2003 18:42:34 GMT <link>https://svn.boost.org/trac10/ticket/176#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/176#comment:1</guid> <description> <pre class="wiki">Logged In: NO Note: this is Forte version 5.4 </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>cgc</dc:creator> <pubDate>Tue, 22 Jul 2003 20:54:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/176#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/176#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=67343 This is due to a bug in the Solaris Forte 5.4 compiler. Sun has it as bug number 4878628. It has trouble properly instantiating run-time type info for template classes. One workaround is to explictly instantiate an instance of boost::checked_deleter&lt;YourClass&gt; in your source code: // YourClass.cpp #include &lt;typeinfo&gt; class YourClass; namespace { std::type_info const &amp; ti = typeid( boost::checked_deleter&lt;YourClass&gt; ); } Another workaround is to use command-line flags to change how the C++ compiler generates template instances. One is to use -instances=global, to give template instances global linkages (I haven't tested this, it might result in duplicate symbols). Another is to use the undocument flags "-Qoption CC -xcomdat", which switches the compiler to a new, unsupported linkage mode for templates. This linkage mode will be the default when SunONE studio 8 is officially released. This option does work, and makes Sun CC's handling of templates much better, but is not compatible with some third party tools such as Purify. YMMV. If none of these options is acceptable to you, I urge you to contact your Sun support representative and demand a patch for bug 4878628 for Sun CC 5.4. It does not appear that Sun is willing to fix bugs for which there are code workarounds, unless customers insist. Hope this helps, Christopher </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Mon, 07 Feb 2005 12:46:10 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/176#comment:3 https://svn.boost.org/trac10/ticket/176#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket