Why are my units “compiled with a different version” of my own files?

前端 未结 14 1990
误落风尘
误落风尘 2020-12-16 16:22

I\'m building a program that uses plugins. Unfortunately, the plugin framework\'s dynamic linking forces the RTL and VCL out of my project EXE and into the BPL versions, an

14条回答
  •  粉色の甜心
    2020-12-16 17:10

    How I solved the 'path madness' in Delphi XE7:

      Rule1: Always separate the DCU from the PAS files
    
      Tools -> Option -> Library path: 
                     Path to global (3rd party) libraries (DCU folder) that never change.
    
                        c:\Delphi\Tools\FastMM\
                        c:\MyProjects\Packages\Third party packages\$(Platform)
                        c:\MyProjects\Packages\DragDrop\$(Platform)
                        c:\MyProjects\Packages\Graphics32\$(Platform)
    
      Project -> Options -> Search path: 
                     Path to personal libraries, that changes often. 
                     Enter the path to the DCU folder first, then path to PAS file. 
                     This way, the compiler will use the DCU files first, instead of recomilin every time from PAS files. 
                     It will recompile anyway if you do a Build.
    
                        c:\MyProjects\Packages\cCommonControls\$(Platform)_$(Config)
                        c:\MyProjects\Packages\cCommonControls\
    
      Project -> Options -> Output directory: 
                     Leave it empty so the exe file is generated in project's folder 
    
      Project -> Options -> DCU output directory: 
                     Use .\$(Platform)_$(Config) in order to enforce Rule1
    

提交回复
热议问题