port11.htm

来自「ST20 Embedded Toolset R2.0.5用于开发基于ST20芯片」· HTM 代码 · 共 96 行

HTM
96
字号
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Quadralay WebWorks Publisher Professional Edition 6.0.5">
<meta name="TEMPLATEBASE" content="noindex_htm">
<meta name="LASTUPDATED" content="12/04/03 16:47:30">
<title>C.10 Standard error stream on PC Windows platforms</title>

<STYLE TYPE="text/css">
<!--
	span.Signal { text-transform: uppercase; font-family: Verdana }
-->
</STYLE>

</head>

<body link="#3366CC" vlink="#9999CC" text="#000000" alink="#0000CC" bgcolor="#FFFFFF"
background="images/backgrnd.gif">

<p><img src="images/stlogo.gif" width="106" height="83" align="left"
alt="logo here!"> </p>

<table border="0" align="right" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="a_delman.htm"><img src="images/navtoc.gif" width="84" height="23"
    border="0" alt="TOC"></a></td>
    <td><a href="port10.htm"><img src="images/navprev.gif" width="80" height="23"
    border="0" alt="PREV"></a></td>
    <td><a href="port12.htm"><img src="images/navnext.gif" width="83" height="23"
    border="0" alt="NEXT"></a></td>
  </tr>
</table>

<p><br clear="all">
</p>

<hr align="left">

<blockquote>
<h2>
  <a name="1143122"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">C.10 	 Standard error stream on PC Windows platforms</font>
</h2><hr>


<p>
  <a name="1143123"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">On PC Windows platforms, for toolset versions prior to R1.7, the output from the compiler, including warnings and errors, was sent to the stream called <font size=2 face=Courier><strong>stdout</strong></font>. This stream could be redirected to a file or piped to the utility <strong>more</strong>. </font>
</p>


<p>
  <a name="1143124"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Toolset version R1.7 sends warnings and errors to <font size=2 face=Courier><strong>stderr</strong></font>. If there are many such messages, they can scroll off the top of the screen. On Windows NT, <font size=2 face=Courier><strong>stderr</strong></font> can be redirected.</font>
</p>


<p>
  <a name="1143125"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">With version R1.8 on Windows NT, the default is to combine output bound for <font size=2 face=Courier><strong>stdout</strong></font> and <font size=2 face=Courier><strong>stderr</strong></font> into <font size=2 face=Courier><strong>stdout</strong></font>, which is the same behavior as R1.6.</font>
</p>


<p>
  <a name="1143126"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">On Windows NT it may be useful to send <font size=2 face=Courier><strong>stdout</strong></font> and <font size=2 face=Courier><strong>stderr</strong></font> to different files and this can be done using the option <font size=2 face=Courier><strong>-use-stderr</strong></font>. This option is not available in UNIX. For example, to send all output to file <font size=2 face=Courier><strong>std.out</strong></font>:</font>
</p>


<a name="1143127"> </a><font size=2 face=Courier><strong>st20cc -p c2 demo.c &gt; std.out<br></strong></font>



<p>
  <a name="1143128"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">To separate <font size=2 face=Courier><strong>stdout</strong></font> and <font size=2 face=Courier><strong>stderr</strong></font> and write to two files <font size=2 face=Courier><strong>std.out</strong></font> and <font size=2 face=Courier><strong>std.err</strong></font>:</font>
</p>


<a name="1143129"> </a><font size=2 face=Courier><strong>st20cc -p c2 -use-stderr demo.c &gt; std.out 2&gt; std.err<br></strong></font>
</blockquote>

<hr>



<table border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="a_delman.htm"><img src="images/navtoc.gif" width="84" height="23"
    border="0" alt="TOC"></a></td>
    <td><a href="port10.htm"><img src="images/navprev.gif" width="80" height="23"
    border="0" alt="PREV"></a></td>
    <td><a href="port12.htm"><img src="images/navnext.gif" width="83" height="23"
    border="0" alt="NEXT"></a></td>
  </tr>
</table>
<font size=1 face="Verdana, Arial, Helvetica, sans-serif">&nbsp; &copy; 2001, 2002, 2003 STMicroelectronics. All Rights Reserved.<br>
&nbsp; ADCS 7257995G</font>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?