[Disksim-users] disksim compile error undefined reference to `sqrt
Michael Stroucken
stroucki at ece.cmu.edu
Thu Aug 23 23:06:53 EDT 2012
孙龙 wrote:
> "adjust the appearance of the "-lm" parameter to be the last
> parameter". It works. Thank you for your help.
>
> 2012/8/24 Yipkei Kwok <ykwok2 at miners.utep.edu
> <mailto:ykwok2 at miners.utep.edu>>
>
> 2 things that you may want to check
>
> 1. sqrt() may require the math.h header. Does the C file include
> the header?
> 2. Is your libm.a in a non-standard location? If yes, you need to use
> the gcc flag -L to indicate the location of the library
>
Hi Yipkei,
Thanks for your help. Perhaps that will help the last person who asked
about a libm issue.
Also, there's a couple disksim projects on github. Maybe there are fixes
there for everyone. :)
Greetings,
Michael.
More information about the Disksim-users
mailing list