I get the below error while linking a .LIB which was created using Keil Linker(version unknown) to my .OBJs on my Keil Linker BL51.V6.22 :
*** FATAL ERROR L218: NOT AN OBJECT FILE FILE: ..\Library\API.LIB Target not created
There were many threads discussing the same issue in this forum but none were conclusive. Pls can someone point out as to why this is happening?
Thanks!
If you don't know exactly what created the library, then you have no guarantee that it's going to be compatible - and, aparrently, it isn't!
You're just going to have to go back to the supplier of that library and ask specifically for one that's compatible with the tools that you have. Or ask what tools are needed to be compatible with the Library as-is.
Thanks for the reply! I have asked the supplier for more info on the toolset. Meanwhile please can you tell me whether a .LIB created using LX51 is compatible with BL51? Should i change any linker variables to make them compatible?
Thanks.
Only if you make it so.
Please can you tell me how to do that , so that the .LIBs are compatible?
Also, I would also like to know whether linking will work if I use LX51 Linker instead of the BL51 which iam using now. And will I be able to link a .LIB from LARGE Memory Model to .OBJs from a SMALL Memory model?
I don't think there's anything that BL51 does that LX51 can't?
However, the controls are not (always) identical - you are going to need to detailed study of both the BL51 manual and the LX51 manual.
If you have LX51, then you must have a full licence - so you could contact Keil support direct for definitive answers...
Meanwhile please can you tell me whether a .LIB created using LX51 is compatible with BL51?
Of course not --- LX51 doesn't create .LIB files.