编译错误: 解决方法: 将编译的语句 gcc hello.c -o hello.exe 改为 gcc hello.c -lm -o hello.exe 原因: sin函数定义在libm.so文件中。lm是libm的缩写。