Ubuntu下编译c程序,报错: undefined reference to `sin' 可是有很确定程序包含了头文件<math.h>.经查阅资料发现,在编译的时候还需要加上选项-lm,指明链接到数学库