title: How to use iostream in VxWorks?
body: <p>I am developing programs for VxWorks using Tornado 2.2. I meet some problem when I try to use <strong>cout</strong>. My code is here:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  void main()
  {
      cout &lt;&lt; "Hi" &lt;&lt; endl;
  }
  </code></pre>
  
  <p>The project can be compiled without error. But when I try to download the <strong>.out</strong> file to the target machine (mounted on VMware), I got the following error:</p>
  
  <p><a href="https://i.stack.imgur.com/meu24.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/meu24.png" alt="error"></a></p>
  
  <p>What's the problem and how to solve it?</p>