有没有办法编译Pascal程序而无需编译器打印其信息?

时间:2014-03-21 23:34:14

标签: freepascal

我想知道是否有一种编译pascal程序的方法,而不需要编译器打印其信息。例如,以下是每次编译操作后打印的内容:

"免费Pascal编译器版本2.6.0 [2014/03/21] for x86_64 Florian Klaempfl和其他人的版权所有(c)1993-2011 目标操作系统:FreeBSD for x86-64 编译Prob2.pas 装配lcmprog 链接Prob2 汇编138行,0.1秒"

我想在没有打印此信息的情况下编译...

感谢您的帮助!

2 个答案:

答案 0 :(得分:1)

我能找到的最近的东西是this命令行选项:

-v<x>  Be verbose. <x> is a combination of the following letters:  
      e : Show errors (default)       0 : Show nothing (except errors)  
      w : Show warnings               u : Show unit info  
      n : Show notes                  t : Show tried/used files  
      h : Show hints                  c : Show conditionals  
      i : Show general info           d : Show debug info  
      l : Show linenumbers            r : Rhide/GCC compatibility mode  
      s : Show time stamps            q : Show message numbers  
      a : Show everything             x : Executable info (Win32 only)  
      b : Write file names messages   p : Write tree.log with parse tree  
          with full path              v : Write fpcdebug.txt with  
                                          lots of debugging info  

i选项对应于编译器信息标头。我会尝试0选项,然后从那里开始工作。

答案 1 :(得分:0)

使用-l-或从-l移除fpc.cfg(可能的位置可能是/etc/fpc.cfg~/.fpc.cfg)。

编辑:此外可能需要-v0。

相关问题