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!
kuzulis said: I want to specify a path to this directory for linker search: set C166LIB="c:\Keil_v5\c166\Examples\foo\libs;c:\Keil_v5\c166\lib"
I want to specify a path to this directory for linker search:
Are you sure that setting is actually applied in the environment where the linker is running?
eg, if I open a Command Prompt:
and then open another (with the first still open):
you can see that the setting is not inherited by the second process
> Are you sure that setting is actually applied in the environment where the linker is running?
Yes.
I use the same Command Prompt