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

Newbie .LIB file and error L218

Hello Forum!

I have a problem when I wan't to include a .LIB file into my project.

In the project workspace I have created a group for my .LIB files. In this group I have added my .LIB file.

Now, when I try to compile, I get this error:

*** FATAL ERROR L218: NOT AN OBJECT FILE
    FILE: C:\DevKit_5_00_Beta1\....\zw_slave_ZW030xs.lib

The helpfile isn't that helpfull - it just tells me that the file is not an .OBJ file. Well, I can see that, but how can I make the compiler accept a .LIB file, and what have I ignored to do right?

Parents
  • You can't!

    The Compiler accepts only source files!

    It's the Linker that takes the .LIB file.

    You need to give more details on how, exactly, you added this .LIB file for anyone to be able to say what you've done wrong!

    Are you sure that it's a valid Library format for the Linker that you're using?
    Where did it come from?
    Have you asked the author/supplier?

Reply
  • You can't!

    The Compiler accepts only source files!

    It's the Linker that takes the .LIB file.

    You need to give more details on how, exactly, you added this .LIB file for anyone to be able to say what you've done wrong!

    Are you sure that it's a valid Library format for the Linker that you're using?
    Where did it come from?
    Have you asked the author/supplier?

Children
  • Hi Andy!

    Right - the Linker won't accept the .LIB file.

    When I said "compiler" I meant the hole setup - my bad!
    The .LIB file was added under guidance of a step-by-step guide, and I believe that it is done correct - at least according to the guide.
    The .LIB file comes from a development kit for Zwave, and before you ask again - I haven't checked with them yet. But I will.

    Generally speaking I am not sure of anything at the moment - new compiler (!) and new wireless technology.

    Can you give me any idea of what I should check in my setup?

  • a step-by-step guide
    does not sound like the Keil documentation.

    Erik