|
When upgrading Pascal Component Design Packages, it may be necessary to add design packages to the Requires list for the package and to specify the Object Pascal compiler 'Use package' switch. For example, you may encounter errors such as the following:
[Linker Fatal Error] Fatal: Unable to open file 'PROXIES.OBJ'
[Pascal Fatal Error] : File not found: 'DesignIntf.dcu'
[Pascal Fatal Error] : File not found: 'DesignEditors.dcu'
If you encounter this type of error, open the design package in the IDE and follow these steps:
1. In the Package Manager, select the Requires node, right-click and choose Add to add DesignIDE.bpi.
2. Edit the XML source of the package by choosing Project|Edit Option Source.
3. In the source displayed, change the PFLAGS setting by adding an -LU switch to make the PFLAGS line look something like the following:
<PFLAGS value="-$YD -$W -$O- -v -JPHNE -M -LUDesignIde"/>
If you have components that combine design and runtime code in one package, it is recommended that you separate these into design and runtime packages. Otherwise, you may receive similar errors when linking applications that use the component.
윌리 님이 쓰신 글 :
: BCB50에서는 project.bpk.xml 의 이 라인에
: <PFLAGS value="..."/>
:
: '-LUvcl50 '를 붙이면 된다는 글을 찾아 냈는데여
: <PFLAGS value="... -LUvcl50"/>
:
: BCB60에서는 어떻게 해야 할까요?
: (만일을 위해 컴포넌트를 같이 올립니다. )
: ////////////////////////////////////////////////////////원래 글
:
: Error message: [Pascal Fatal Error] file.pas(line #): File not found: 'DsgnIntf.dcu'
: Posted: October 17, 2000
: Problem: When I try to install a Delphi component I get the above error message. The error refers to a file DsgnIntf.dcu in the Uses section of the source code but I don't have the file. What do I do?
:
: Solution: Apparently, the file DsgnIntf.dcu is proprietary and isn't distributed with newer versions of BCB and Delphi. The problem and solution are described in the "Using C++Builder" help file in the section
:
: Upgrading to Borland C++Builder 5
: VCL and global functions
: Compiling packages with DsgnIntf.pas.
: In short, click on the menu option Project > Edit Option Source to to open project.bpk.xml. Then find the line
:
: <PFLAGS value="..."/>
:
: and append option -LUvcl50 so it looks like
: <PFLAGS value="... -LUvcl50"/>
:
: Finally, choose File > Save all and Project > Make ... to rebuild and install the component.
:
:
|