This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Smart Card Reader Code compilation error.....

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

Parents Reply Children
  • 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.

    Regards
    Vinit

  • 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.