Hi,
I'm trying to use the weak attribute for the some public API definition to replace once the real APIs were NOT linked.
The step I did is like below:
1. Put kinds of components APIs /w weak attribute function definition in one "c" file, and build it out as a library. Name it "libweak" since all functions in it is weak definition.
And these APIs by components named "libweak.A", "libweak.B", "libweak.C" etc.
2. For these components APIs, there are strong implementation in other libraries, named "libstrong.A", "libstrong.B", "libstrong.C"
3. Now, in the final image linking once libstrong.B was removed, the final image may link libweak.B, libweak.A, libstrong.C.
while the expectation linking is libweak.B, libstrong.A, libstrong.C
* I don't know following info. will help:
The APIs of B were referenced by the c file in the project which produces the final image.
The Weak references and definitions has already referenced but didn't find the answer to this problem.
My Keil version is 5.17
Any idea on it ?
Thanks in advance
BR
hengxing
Hello Hengxing,
mdk 5.17 is too old, could you try it with the latest MDK 5.28a https://www.keil.com/download/ ?
thanks
zheng
Hello Zheng,
You're right, I've also met other build issue that confirmed w/ KEIL supporter "it need upgrade".
I'm suggesting my management to upgrade the latest MDK.
Thanks
Hengxing