gcc -D DEBUG test.c gcc -D DEBUG test.c gcc -DDEBUG test.c 有无空格都行。编译的时候在test.c里定义了宏:DEBUG gcc 2023-05-17 393 点赞 5 评论 595 浏览