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