gcc 带参数进行编译

gcc -DYES -o helloyes hello.c  

在hello.c中存在

#ifdefine YES

  ........

原文地址:https://www.cnblogs.com/practicer/p/3682073.html