blob: 88d797425bde7ec8ec57710db1347139807892ae [file] [log] [blame]
<div class="wiki-content maincontent"><structured-macro ac:macro-id="e46d64c6-643d-4c72-9b67-1a85207ca018" ac:name="info" ac:schema-version="1"><parameter ac:name="title">Use the Correct Compiler</parameter><rich-text-body><p>This Entry only applies to the Sun Studio 11 and above compiler. The Sun Workshop compiler does not seem to support building this library.</p></rich-text-body></structured-macro><p>In order to use the Solaris compiler you must set some environment variables and then run the autogen.sh and configure scripts.</p><p>The following variable need to be set</p><ul><li>CC = cc</li><li>CXX = CC</li></ul><p>Underneath the configure script will append -library=stlport4 to the CC command so that the Sun Compiler will use STLPort instead of the broken version of STL that they link in by default and ActiveMQ-CPP uses features that it does not support. By using the STLPort library you get access to the features we need, but you must compile your application with STLPort as well to insure compatibility with our library.</p><p>So in you own makefiles you must pass -library=stlport4 to CC when you build and link.</p><p>You can find out more from Sun on this at <a shape="rect" href="http://www.oracle.com/technetwork/server-storage/solaris/cmp-stlport-libcstd-142559.html">STL Library Comparison</a></p></div>