14 the P.I.P.S. components installed before using the library.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
14 the P.I.P.S. components installed before using the library.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
15 <section id="GUID-D42A187D-603E-4D66-BAA8-86782B9C2717"><title>C++ IOstream |
15 <section id="GUID-D42A187D-603E-4D66-BAA8-86782B9C2717"><title>C++ IOstream |
16 and Standard Template Library Documentation</title><p>C++ IOStream library |
16 and Standard Template Library Documentation</title><p>C++ IOStream library |
17 documentation can be found at <xref href="http://www.slac.stanford.edu/comp/unix/gnu-info/iostream_toc.html" scope="external">http://www.slac.stanford.edu/comp/unix/gnu-info/iostream_toc.html</xref>.</p><p>Similarly, |
17 documentation can be found at <xref href="http://www.slac.stanford.edu/comp/unix/gnu-info/iostream_toc.html" scope="external">http://www.slac.stanford.edu/comp/unix/gnu-info/iostream_toc.html</xref>.</p><p>Similarly, |
18 Standard Template Library (STL) documentation can be found at <xref href="http://www.informatik.uni-freiburg.de/~danlee/fun/STL-doc/STL.html" scope="external">http://www.informatik.uni-freiburg.de/~danlee/fun/STL-doc/STL.html</xref>.</p></section> |
18 Standard Template Library (STL) documentation can be found at <xref href="http://www.informatik.uni-freiburg.de/~danlee/fun/STL-doc/STL.html" scope="external">http://www.informatik.uni-freiburg.de/~danlee/fun/STL-doc/STL.html</xref>.</p></section> |
19 <section id="GUID-BF521201-7BE5-4AC5-8D35-1E15AC4887C7-GENID-1-7-1-11-1-1-9-1-5-1-3-2"><title>Changes to |
19 <section id="GUID-BF521201-7BE5-4AC5-8D35-1E15AC4887C7-GENID-1-10-1-12-1-1-9-1-5-1-3-2"><title>Changes to |
20 the MMP file</title><p><b>Add needed libraries used by the MMP file structure: </b></p><p>If |
20 the MMP file</title><p><b>Add needed libraries used by the MMP file structure: </b></p><p>If |
21 developers want to use any of Standard C++ library, they must link to the |
21 developers want to use any of Standard C++ library, they must link to the |
22 corresponding library in the MMP file using the <codeph>LIBRARY</codeph> keyword.</p><p>If |
22 corresponding library in the MMP file using the <codeph>LIBRARY</codeph> keyword.</p><p>If |
23 the application has <codeph>main()</codeph> as the entry point, the library <filepath>libcrt0.lib</filepath> must |
23 the application has <codeph>main()</codeph> as the entry point, the library <filepath>libcrt0.lib</filepath> must |
24 be specified as the first library otherwise, it results in linker errors. |
24 be specified as the first library otherwise, it results in linker errors. |
51 OPTION CW -wchar_t on |
51 OPTION CW -wchar_t on |
52 MACRO _WCHAR_T_DECLARED</codeblock><note> Standard C++ applications may require |
52 MACRO _WCHAR_T_DECLARED</codeblock><note> Standard C++ applications may require |
53 more stack space. The recommended stack size is 10K. To set the stack size |
53 more stack space. The recommended stack size is 10K. To set the stack size |
54 to 10K add: </note><codeblock xml:space="preserve">EPOCSTACKSIZE 0x10000</codeblock><p>in the MMP |
54 to 10K add: </note><codeblock xml:space="preserve">EPOCSTACKSIZE 0x10000</codeblock><p>in the MMP |
55 file.</p></section> |
55 file.</p></section> |
56 <section id="GUID-BF521201-7BE5-4AC5-8D35-1E15AC4887C7-GENID-1-7-1-11-1-1-9-1-5-1-3-3"><title>Example using <codeph>main()</codeph></title> |
56 <section id="GUID-BF521201-7BE5-4AC5-8D35-1E15AC4887C7-GENID-1-10-1-12-1-1-9-1-5-1-3-3"><title>Example using <codeph>main()</codeph></title> |
57 <p>A simple example using <codeph>main()</codeph> as an entry point is |
57 <p>A simple example using <codeph>main()</codeph> as an entry point is |
58 described below. The example writes a text to a console.</p><ul> |
58 described below. The example writes a text to a console.</p><ul> |
59 <li><p>Modify the MMP file as mentioned before.</p></li> |
59 <li><p>Modify the MMP file as mentioned before.</p></li> |
60 <li><p>Do usual C++ style coding.</p></li> |
60 <li><p>Do usual C++ style coding.</p></li> |
61 </ul><codeblock xml:space="preserve">// Include Files |
61 </ul><codeblock xml:space="preserve">// Include Files |