Error With Custom Component Installation
Posted on 2005-02-25
I built a new component in Delphi, which works great and installs perfectly there.
I moved it over to my C++Builder (6, with update pack 4 installed) LIB folder. The first time I built the new "dclusr" package, it built and installed fine and the component worked well.
Then I made an update to the component in Delphi. No problems there.
Again, I moved it over to the C++Builder LIB folder and re-opened the dclusr package, so I could rebuild it. I got 29 error messages, similar to the following:
[Linker Error] Unresolved external '__fastcall Outline::TCustomOutline::~TCustomOutline()' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\BCBSMP.LIB|.\cdiroutl.cpp
With some searching in google, I found that I had to hand-edit the BPK file and remove the "bcbsmp.lib" from the source (found TWICE...both must be removed). This works, but only for ONE-SHOT. I find that this reference is added back in EACH TIME I open and close the project, so I have to hand-edit the BPK file before opening the project EACH TIME, if I need to rebuild it.
So...the first part of my question is...can that be solved?
The second part of my question is...In trying to fix the above, I ended up removing my component from the dclusr package and putting it into it's own NEW package (still exhibits the same behavior described above). However, now when I attempt to re-compile the dclusr package, I get the following error:
[Linker Error] 'C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\LIB\DCLUSR.LIB' contains invalid OMF record, type 0x00
I haven't found any solutions to this. I cannot even compile my old apps any longer, getting the same error message.
What the heck happened?