title: "undefined reference to" error caused by number representation
body: <p>When I try compiling my C file, part of the code shown below gives me an error. The compiler I am using is arm-none-eabi.</p>
  
  <pre><code>int len = 9;
  uint8_t i;
  
  for(i=0; i&lt;len; i++){
    float min = ((3.3f*i)/len);  //this is line 32 in my code
    float max = ((3.3f+(3.3f*i))/len); //this is line 33 in my code
  }
  </code></pre>
  
  <p>The error produced is:</p>
  
  <pre><code>template.o: In function `main':
  template.c:32: undefined reference to `__aeabi_i2f'
  template.c:32: undefined reference to `__aeabi_fmul'
  template.c:32: undefined reference to `__aeabi_i2f'
  template.c:32: undefined reference to `__aeabi_fdiv'
  template.c:33: undefined reference to `__aeabi_i2f'
  template.c:33: undefined reference to `__aeabi_fmul'
  template.c:33: undefined reference to `__aeabi_fadd'
  template.c:33: undefined reference to `__aeabi_i2f'
  template.c:33: undefined reference to `__aeabi_fdiv'
  </code></pre>
  
  <p>This obviously has to do with the number representations. Since I am still a beginner in C programming, I can not figure out how to solve this problem, even after doing some research. My attempt was to make 3.3 a float by adding an 'f' to it which did not fix anything. Any help would be highly appreciated.</p>