undefined reference to “only some math.h” functions

前端 未结 4 635
说谎
说谎 2020-12-06 06:06

I am having a strange problem.

The math libraries has been added to my makefile.

# include standard C library
LDFLAGS += -lc
# include standard math          


        
4条回答
  •  自闭症患者
    2020-12-06 06:33

    You can use "filename.c -lm" to solve this problem . And please don't forget to use header file math.h

提交回复
热议问题