david tran wrote:...another linker error came up:
[linker error] fatal: Unable to open file"LMDONEINSTANCE.OBJ"
LMDOneInstance is probably a reference introduced on your computer by a component or software from LMD Innovations.
Similarly,
ABCC.lib may have been a hangover from software or a component from ABC Software.
Only you know the history of what has happened on your computer previously. We can only speculate.
There is one definite way of confusing the compiler and linker and causing unpredictable behaviour, and that is to manually edit the IDE managed section of the project header files.
For example, if a component is dropped onto a form, the IDE will automatically insert a pointer statement into the unit header. If the component is subsequently deleted in design mode, the IDE will also automatically remove the previously inserted pointer statement - and also remove any other references that may have been automatically made elsewhere.
Manual editing of sections that are automatically maintained by C++Builder may leave orphaned references that can interfere with orderly compilation and linking.
I am not suggesting that this is what has happened in your case. It is an example of a possibility that could lead to the symptoms you are experiencing. There are other circumstances that could also produce similar results.
If all else fails, there is one way of getting out of a contaminated project. Start a new project entirely, add in any components, and finally copy your own code to the new units. Laborious, and a nuisance, but you will finish with a project that compiles and links correctly.
Aris