dcc32如何去用?

解决方案 »

  1.   

    dcc32 xxx.pas回车。或者
    dcc32 xxxx.dpr回车这是最简单的用法,当然我想这你会的。
      

  2.   

    Borland Delphi Version 14.0
    Copyright (c) 1983,2002 Borland Software CorporationSyntax: dcc32 [options] filename [options]  -A<unit>=<alias> = Set unit alias  -LU<package> = Use package        
      -B = Build all units               -M = Make modified units         
      -CC = Console target               -N<path> = DCU output directory  
      -CG = GUI target                   -O<paths> = Object directories   
      -D<syms> = Define conditionals     -P = look for 8.3 file names also
      -E<path> = EXE output directory    -Q = Quiet compile               
      -F<offset> = Find error            -R<paths> = Resource directories 
      -GD = Detailed map file            -U<paths> = Unit directories     
      -GP = Map file with publics        -V = Debug information in EXE    
      -GS = Map file with segments       -VR = Generate remote debug (RSM)
      -H = Output hint messages          -W = Output warning messages     
      -I<paths> = Include directories    -Z = Output 'never build' DCPs   
      -J = Generate .obj file            -$<dir> = Compiler directive     
      -JP = Generate C++ .obj file       --help = Show this help screen   
      -K<addr> = Set image base addr     --version = Show name and version
    Compiler switches: -$<letter><state> (defaults are shown below)
      A8  Aligned record fields           P+  Open string params            
      B-  Full boolean Evaluation         Q-  Integer overflow checking     
      C+  Evaluate assertions at runtime  R-  Range checking                
      D+  Debug information               T-  Typed @ operator              
      G+  Use imported data references    U-  Pentium(tm)-safe divide       
      H+  Use long strings by default     V+  Strict var-strings            
      I+  I/O checking                    W-  Generate stack frames         
      J-  Writeable structured consts     X+  Extended syntax               
      L+  Local debug symbols             Y+  Symbol reference info         
      M-  Runtime type info               Z1  Minimum size of enum types    
      O+  Optimization                  
      

  3.   

    得到上面这东西,也只需要
    dcc32 >a.txt 输入到a.txt这个文本文件。
      

  4.   

    这个我也知道啊,其中常用的有哪些啊!
    比如我
    dcc32 project1.dpr -e c:\
    就出错啊!
      

  5.   

    不要加空格,
    dcc32 project1.dpr -Ec:\
      

  6.   

    非常感谢:halfdream(哈欠) 
    实在有点不在好意思问你问题了,不过还有一个问题想问你:
    我用了第三方的组件,想在dcc下编译,可说找不到dcu文件,我怎么定义liblary?
    如果你看到了,就帮我一下,谢了。
      

  7.   

    非常感谢:halfdream(哈欠)
    在你的帮助下,我有看了些delphi自带的help,终于有点眉目了,现总结如下:
    1。dcc32是delphi的command complier,是在命令行方式下运行的,在command模式下的任何路径都可以直接输入dcc32查看帮助。
    2。我主要用了两个参数:
    -e:定义exe文件的输出路径。example:dcc32 project.dpr -ec:\ 注意-e和c;\之间无空格。
    -u:如果使用了第三方控件,需要查找资源路径,
    就是界面模式下的tools-->Environment Options-->library-->library path中定义的路径一样。
    有了这两个参数,我想就可以编译生成可执行文件了。
    3。这里说一个小技巧,其实也是borland设计的一个功能。
    如果参数列表很多,如果每次在command模式下都输入相同的参数列表,那就是资源浪费,borland定义了dcc32.cfg文件,我们可以把参数列表输入这个文件。那么下次运行时,就不需要输入参数了。直接dcc32 *.dpr就可以了。
    4。以上,是我做的一点总结,望高手指点。
      

  8.   

    是的..从TURBO C开始,在BIN目录下面就可以看到一个TCC.CFG文件,
    BORLAND的好几个开发工具比如BCB,DELPHI都沿用这种方式..当然,如果你的项目比较复杂,又想命令行编译,那就试着编写MAKE文件吧..
      

  9.   

    编写MAKE文件是一个好方法,也在部分组件代码中见过。
    好了,结贴了!