Including files in C

前端 未结 1 1736
被撕碎了的回忆
被撕碎了的回忆 2021-01-29 08:20

I want to make a simple function involving sqrt(), floor() and pow(). So, I included . When I try to use my fun

相关标签:
1条回答
  • 2021-01-29 09:04

    You're probably missing the -lm argument to gcc, required to link the math library. Try:

    gcc ... <stuff> ... -lm
    

    There are at least two C FAQs relevant to your problem:

    • 14.3
    • 13.26
    0 讨论(0)
提交回复
热议问题