title: How do cross-compilie on mips without error?
body: <p>I want to cross compile for MIPS. I am compiling this simple hello world:</p>
  <pre><code>#include &lt;stdio.h&gt;
  int main(){
      printf(&quot;HELLO WORLD\n&quot;); 
      return 0; 
  }
  </code></pre>
  <p>I compile it's so: <code>mips-gcc e.c -static -o hello</code>  .</p>
  <p>It is <code>hello: ELF 32-bit MSB executable, MIPS, MIPS-I version 1 (SYSV), statically linked, not stripped</code></p>
  <p>uname -a on MIPS system is:</p>
  <p><code>Linux RT-AC1200 2.6.36 #1 Thu Mar 15 11:18:53 CST 2018 mips GNU/Linux</code></p>
  <p>However, when I'm trying to start hello, I'm getting:</p>
  <p><code>./hello: line 1: syntax error: unexpected &quot;(&quot;</code></p>
  <p>I tried to compile with different MIPS cross compilers(including gcc-mips-linux-gnu), however always I get this error. What do I do wrong? How to compile right ?</p>