title: GCC libm not working
body: <p>I have a c program that calls sin, cos, and acos. When I compile I get the following errors:</p>
  
  <pre><code>/tmp/ccDfW98S.o: In function `zip_search':
  main.c:(.text+0xf30): undefined reference to `sin'
  main.c:(.text+0xf45): undefined reference to `sin'
  main.c:(.text+0xf66): undefined reference to `cos'
  main.c:(.text+0xf7b): undefined reference to `cos'
  main.c:(.text+0xf9c): undefined reference to `cos'
  main.c:(.text+0xfc6): undefined reference to `acos'
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>I know this is common when you don't use the -lm gcc flag. I AM using this flag. I'm calling GCC like this:</p>
  
  <pre><code>gcc -o zipcode-server -lm main.c
  </code></pre>
  
  <p>When I compile on one of my computers this works fine. The only difference that I can think of is that this isn't working on x86_64 and the computer it does work on is i686. Both are Ubuntu. The file libm.a is present on the computer it isn't working on and I don't get any errors saying it can't be found. What could be causing this?</p>