We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
The LIB files are the same, i took the LIB file from the one that was working, which was an example program, and attempted to use it in my own one.
Have you checked the properties for the different files in the project? Does the project file know that it should link the file and not process it as C or C++ source code? What file type has you said this library is?
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.