工作原因,常需在别人机器改动若干程序,但不能给他人安装delphi;所以将dcc32.exe、关键pas文件放进一张软盘;
实验结果:在干净机器上,编译时报错,"system.pas not found",尽管将system.pas置于dcc32.exe目录下\<WINDIR>\SYSTEM32下;
单独编译system.pas,说不允许单元名为system.pas;将system.pas改名,且改内部unit名,编译时仍报错"system.pas not found",;
现在的想法,system.pas的位置:
1,system.pas;
2,delphi bin目录某个data文件内置;
3,需事先注册?征询各位意见

解决方案 »

  1.   

    转摘:
      这个工具,很不错 
    The program Quick Delphi Project Compiler is a tool to Delphi programers. 
    It suits to Delphi of all versions: from 1 to 4. 
    With the help of  this program you will have no dificulties while:  Compiling Delphi project file (*.dpr) file to executable file (*.exe);  
    Compiling Delphi unit file (*.pas)  to Delphi compiled unit  file (*.dcu);  
    Compiling Delphi 3 package collection file (*.dpc) to Delphi 3  package library file (*.dpl);  
    Compiling Delphi 4 package collection file (*.dpc) to Delphi 4 package library file (*.bpl);  
    Quick installing of Delphi 3 package library (*.dpl) to Delphi 3 with automatic directing of paths. The opposite process - uninstalling - is also possible.  
    Quick installing of Delphi 4 package library (*.bpl) to Delphi 4 with automatic directing of paths. The opposite process - uninstalling - is also possible.  
    Integrating Dll to Delphi IDE and automatic uninstalling.  
    By the way, all these actions are possible without setting up Delphi, and without using dos command line and registry. 
    Just click right mouse button of the above mentioned files... The thought to create this program came to me when I bought a CD containing a Torry Delphi Page. There were a lot of  VCL with demos. It took me two days to review VCL: to install them, to compile demo projects or to uninstall the components if I didn't like them. Then an idea came to me why I couldn't make this work easier. So in two weeks this program appeared. It can save you a lot of time and time is money. 行了别忘了给分!
      

  2.   

    直接在命令行方式下运行 
    dcc32 便可以看到所有的编译开关。如果有更好的办法,通知我一下!
    [email protected]
    多谢!
      

  3.   

    好象没说明白,不过会给分;我是要收集最小化的delphi(no gui);
      

  4.   

    就这么简单(推断):收集.dcu文件而非.pas文件。前者是关键,后者只是Delphi为开发者提供参考和调试而用的,Delphi总是优先考虑用Lib目录中的.dcu文件。准确地说,Lib目录中大多数的.dcu文件是由Source目录中对应的.pas文件编译得到的,但也有相当一部分不是(如System.dcu就不是由System.pas编译得到)或者根本没有(如Jpeg.dcu就没有相应的Jpeg.pas)。
    楼主的精神实在可嘉。祝你成功并鼓励中...