-fsyntax-only in addition to get it not to create any output (it will still tell you if your program has errors). Example (Linux, gcc-4.7):


echo '#include <stdbool.h>' | cpp -H -o /dev/null 2>&1 | head -n1

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-17
  • 2022-01-29
  • 2022-01-18
  • 2021-12-13
  • 2021-06-08
猜你喜欢
  • 2021-10-21
  • 2022-12-23
  • 2021-06-24
  • 2021-05-18
  • 2021-09-28
  • 2021-07-13
  • 2021-09-15
相关资源
相似解决方案