Delphi can't find System.dcu; what should the default path settings be?

后端 未结 5 1789
无人及你
无人及你 2021-01-04 13:55

Got this error whenever I try to compile something: \"F1027 Unit not found: \'System.pas\' or binary equivalents (.dcu)\".

Got it after installing a component, remov

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-04 14:29

    This is from the HKLM\Software\Embarcadero\BDS\8.0\Library key in the registry - you can save it to a .reg file and then import it (making any necessary fixes to the paths first, of course):

    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Embarcadero\BDS\8.0\Library]
    "Browsing Path"="$(BDS)\\SOURCE\\VCL;$(BDS)\\source\\rtl\\common;$(BDS)\\SOURCE\\RTL\\SYS;$(BDS)\\source\\rtl\\win;$(BDS)\\source\\ToolsAPI;$(BDS)\\SOURCE\\IBX;$(BDS)\\source\\Internet;$(BDS)\\SOURCE\\PROPERTY EDITORS;$(BDS)\\source\\soap;$(BDS)\\SOURCE\\XML;$(BDS)\\source\\db;$(BDS)\\source\\Indy10\\Core;$(BDS)\\source\\Indy10\\System;$(BDS)\\source\\Indy10\\Protocols;$(BDS)\\source\\database;"
    "Debug DCU Path"="$(BDSLIB)\\$(Platform)\\debug;$(BDS)\\RaveReports\\Lib"
    "HPP Output Directory"="$(BDSCOMMONDIR)\\hpp"
    "Language Library Path"="$(BDSLIB)\\$(Platform)\\release\\$(LANGDIR);$(BDS)\\lib\\$(LANGDIR)"
    "Package DCP Output"="$(BDSCOMMONDIR)\\Dcp"
    "Package DPL Output"="$(BDSCOMMONDIR)\\Bpl"
    "Package Search Path"="$(BDSCOMMONDIR)\\Bpl"
    "Translated Debug Library Path"="$(BDSLIB)\\$(Platform)\\debug\\$(LANGDIR)"
    "Translated Library Path"="$(BDSLIB)\\$(Platform)\\release\\$(LANGDIR)"
    "Translated Resource Path"="$(BDSLIB)\\$(Platform)\\release\\$(LANGDIR)"
    "Search Path"="$(BDSLIB)\\$(Platform)\\release;$(BDSUSERDIR)\\Imports;$(BDS)\\Imports;$(BDSCOMMONDIR)\\Dcp;$(BDS)\\include;C:\\Program Files\\Raize\\CS4\\Lib\\RS-XE;;$(BDS)\\RaveReports\\Lib"
    

    For MSBuild to work properly (and for project configurations), you need to make sure the following environmental variable is set properly:

    PLATFORM=ANYCPU
    

提交回复
热议问题