title: C - Undefined reference - is there an alternative to compiling with -lm?
body: <p>I have a problem much like the one <a href="https://stackoverflow.com/questions/5248919/c-undefined-reference-to-sqrt">here</a> where the error is "Undefined reference to sqrt".  I understand how using the -lm flag when compiling fixes the problem by linking it to the math library, however, are there any other possible ways to fix the problem without using any special compiler flags?</p>
  
  <p>I've been happily using "-lm" while compiling my project so far, but my instructor uses try which won't accept a submission unless it compiles.... they do not use -lm. </p>
  
  <p>Is there a way to solve this that doesn't require me to write my own square root function?</p>