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 all,
I faced with a bit problem is that the C166LIB, C51LIB, and C251LIB environment variables does nothing.
e.g. the documentation say that the C166LIB variable specifies a search path to the libraries to link them:
* https://www.keil.com/support/man/docs/c166/c166_cm_envvars.htm
In my case I have the project with the object files in the following tree:
so, as you can see, the my static libraries locates in the c:\Keil_v5\c166\Examples\foo\libs directory,
and I want to specify a path to this directory for linker search:
and then I run the linker:
but the linker fails:
*** FATAL ERROR L210: I/O ERROR ON INPUT FILE: EXCEPTION 0021H: PATH OR FILE NOT FOUND FILE: LIB-B.LIBit can't find the libraries.Why this happens? How to specify a paths to search the libraries?
As I understand, thah the documentation lies: https://www.keil.com/support/man/docs/bl51/bl51_in_libraries.htm
Quote:
"
If a library file does not include a path specification, the linker searches for it in:
but it is completelly not a true!