title: MSP430 (msp430-gcc) linker undefined reference to
body: <p>I'm trying to compile my MSP430 project using the Linux msp430-gcc compiler.</p>
  
  <p>When I try to compile it using the CCS IDE it works just fine, but when I try to compile it using the msp430-gcc commandline tool, I get linker errors about functions like calloc and __no_operation.</p>
  
  <p>The beginning of my source file looks like this:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  </code></pre>
  
  <p>I compile the program using the following command:</p>
  
  <pre><code>msp430-gcc -mmcu=msp430g2553 -o test.out source_file.c
  </code></pre>
  
  <p>So it looks like I include the stdio.h and stdlib.h just fine, but I still get linker errors about functions like calloc.
  I also tried using arguments like -lc, but that doesn't seem to help.
  I read that both stdio and stdlib get included automatically by the compiler so I guess there is no need to use additional arguments for these files.</p>
  
  <p>Does anyone have any idea how I could fix this?</p>
  
  <p>Thanks.</p>