I am working on smart card reader application. Some problems came in front when I tried to compile my application code.
While compilation, I added there following files, 1. main.c 2. tdalib.h <related to TDA8007B smart card reader IC
Main.c relates to my application code & tdalib.h relates to function prototypes declaration
after doing this compilation I have generated .lib file.
After compiling it showed me following message. But I also got one error & some warnings.
".\80072512+.LIB" TO "80072512+.LIB" LIBX51 LIBRARY MANAGER V4.24 COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2002 *** ERROR 224: ATTEMPT TO ADD DUPLICATE MODULE FILE: .\80072512+.LIB MODULE: ?C_STARTUP "80072512+.LIB" - 0 Error(s), 8 Warning(s).
How can I deal with this problem.
Thanks in anticipation......
Regards Vinit
"I also got one error & some warnings"
What error? What warnings?
An Error means that the build failed - so it is pointless pursuing anything else until you have fixed the Error!
You should also investigate the warnings - they may be the cause of the subsequent error:
"*** ERROR 224: ATTEMPT TO ADD DUPLICATE MODULE"
Did you look-up this message in the Manual to find what it means? http://www.keil.com/support/man/docs/lib51/lib51_224.htm
Do you understand what the word "duplicate" means? If not, look it up - it is key to solving the problem!
eg, www.dictionary.cambridge.org/define.asp
Thanks for your reply
But,,,,,,,
Actually I am confused about word duplicate used there & not getting what changes should I make in program. also can u please tell me why we are going to create '-.lib' files.
I have removed the warnings, but the I wont get what todo with error...... *** ERROR 224: ATTEMPT TO ADD DUPLICATE MODULE
While compiling I get following messages;.....
Build target 'Target 1' assembling STARTUP.A51... compiling main.c...MAIN.C(133): warning C209: '_init_system': too few actual parameters this same error repeats in many functions creating library 80072512+.LIB... TRANSFER "STARTUP.obj", "main.obj", ".\80072512+.LIB" TO "80072512+.LIB" LIBX51 LIBRARY MANAGER V4.24 COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2002 *** ERROR 224: ATTEMPT TO ADD DUPLICATE MODULE FILE: .\80072512+.LIB MODULE: ?C_STARTUP "80072512+.LIB" - 0 Error(s), 8 Warning(s).
also tell me should I create this .lib file or not. If I wont do so there are no errors but 56 warnings as that are above{too few actual parameters}.
Thanks in anticipation.
Did you read the explanation in the manual?
Again, there is no point worrying about this message while your 'C' files aren't even compiling yet!
You need to fix the compiler error First
"MAIN.C(133): warning C209: '_init_system': too few actual parameters this same error repeats in many functions"
You need to fix this before you move on to subsequent messages!
also can u please tell me why we are going to create '-.lib' files.
Nobody can tell why you configured the IDE to do that.