Keil Logo

µVISION: SPECIFYING USER LIB DIRECTORIES


Information in this article applies to:

  • C51 Version 5.50a
  • C51 Version 6.00 Beta
  • C51 Version 6.00

QUESTION

I need to specifiy multiple directories for my libraries in my project. I have tried to do this in the File Extensions Tab in the Environment Setup for my Project. However, I receive the following error message:

*** FATAL ERROR 210: I/O ERROR ON INPUT FILE:
    EXCEPTION 0021H: PATH OR FILE NOT FOUND
    FILE: C:\KEIL\C51\LIB\;C\PROJECTS\VTLHRT\TARGET\LIB\C51S.LIB

I've tried separting the libraries with a semicolon (;), a comma, and a space, but to no avail.

How can I get µVision to recognize multiple library paths?

ANSWER

The linker does not search paths for user libraries. Instead, you must specify the complete path to the user library.

To do that, on the linker command line, add the library files as you would an object file: For example:

bl51 myfile.obj, mylib.lib to output.abs

In µVision, add a lib file to your project. The IDE sets all appropriate options to include it in the linkage.

Last Reviewed: Tuesday, June 29, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.