Board index » cppbuilder » BDS2006: Delphi-Component, C++Builder needs *.OBJ-file
Udo Weik
![]() CBuilder Developer |
BDS2006: Delphi-Component, C++Builder needs *.OBJ-file2007-01-14 01:14:20 AM cppbuilder96 I have again the problem that after successfull installing Delphi-Components the (C++Builder-)linker misses an *.OBJ-file. There are some infos in the newsgroups that BDS2006 doesn't need *.OBJ-files anymore and that the *.LIB-file should be added to the project. My questions are as follows: 1. What means "adding the *.LIB-File to the project"? And which *.LIB-file - that of the created package (let's name the package COMPD10.bpl)? 2. When I add the component to the form there are two pragmas added: #pragma link "COMPDerived" #pragma link "COMPBase" Is that sufficient? To clarify: Installed is COMPDerived, COMPBase is defined in the uses-section of that component. In more detail the package has the following structure: Delphi-Package COMPD10.bpl: --------------------------- ...contains COMPReg.pas COMPReg.pas: ------------ procedure Register; begin RegisterComponents( '...', [TCOMPDerived]); end; COMPDerived.pas --------------- unit COMPDerived; interface uses ... COMPBase, ... type TCOMPDerived = class(TCOMPBase) ... 3. When I (1) use the Linker-option "Generate all C++Builder files" only the *.HPP-files are created. What means then here "all"? And when I (2) select "Generate C++ object files" with "Generate header files" I MUST use Build, otherwise the *.OBJ-files aren't created. Needed some time to figure that out. There are two other options - "Include namespaces" - "Export all symbols" Must these options be checked? When I now try to install the component, I get the error message [Pascal Warning] W1031 Package '.COMPD10' will not be written to disk because -J option is enabled Only with (1) package installation is successful. Any comments and hints? Many thanks in advance. Udo |