title: Adding my own library to Contiki OS
body: <p>I want to add some third party libraries to Contiki, but at the moment I can't.
  So I wanted to just test with a simple library.</p>
  
  <p>I wrote two files hello.c hello.h, in hello.c I have:</p>
  
  <pre><code>printf(" Hello everbody, library call\n");
  </code></pre>
  
  <p>In hello.h I have:</p>
  
  <pre><code>extern void print_hello();
  </code></pre>
  
  <p>I created hello.o using the command:</p>
  
  <pre><code>msp430-gcc -mmcu=msp430f1611 hello.c -o hello.o
  </code></pre>
  
  <p>I created an archive file:</p>
  
  <pre><code>ar -cvq libhello.a hello.o
  </code></pre>
  
  <p>I move to contiki, i write a simple program that calls hello.h to execute a function.I try to include hello.a using PROJECT LIBRARIES variable in the makefile, when i compile i get this :</p>
  
  <pre><code>  Hello_lib.sky section .vectors' will not fit in region'vectors'
    ...
    region vectors overflowed by 32 Bytes
  </code></pre>
  
  <p>Can someone please explain me what is the problem (I am new to the field) ?</p>
  
  <p>And how to correct it if possible? ( What options should i specify for msp430-gcc)
  Thanks.</p>