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

Using .LIB file in uvision3

Hi, I am trying to incorporate a library file into my project in uvision3. The library file is halLib_small.LIB, and is provided with the CC1010 development kit, and available from the texas instruments website. I have included the hal.h file in the project however it will not allow me to compile the project with the .LIB file in it. The following error is produced.

FATAL ERROR L218: NOT AN OBJECT FILE
FILE: .\halLib_small.LIB
Target not created

I know that the .LIB file is not an c source file, but in some of the provided example programs the .LIB file is included in the project and when i compile it it does not produce the error. Could someone please give me help in using a .LIB file in uvision3, thanks.

Parents Reply Children
  • I am not sure where i can change the preferences to tell it that it is not a source code file. I was thinking that could be the cause of the problem. If you could direct me to the relevant menu item that would be good, I wasn't able to find anything in the menu's or help documents. The type of file is a .LIB file.

  • I don't use the C51 environment. I'm using the ARM tools. There, I can right-click on a file name and select 'Options for File xx'. If I do, I get a property sheet where there is a setting 'File Type' where I can specify "C Source file", "Object file", "Library file", ... and thereby specify exactly where in the build process the file should be used.

  • I found where i can set the file type as being a library file, but it was already correct. There must some other setting somewhere. I think i may just have to be a bit dodgy and create my program by editing the one that already has the working library file in it.