undefined reference to “only some math.h” functions

前端 未结 4 638
说谎
说谎 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:38

    The sequence for -lm -lc -lgcc plays a very important role. Only this sequence works for me.

    These commands go to the Linker Options!

提交回复
热议问题