假设有下面几个c++文件: wherewhen.h wherewhen.c countdown.h countdown.c 包含了math.h, 需要连接库文件 main.c 主函数, main.c 包含了两个头文件 wherewhen.h and countdown.h 1、第一种编译方法: g++ -Wall -g wherewhen.c countdown.