I am trying to add 3rd party library, which has hidden code. I’ve got header files and files with .lib extension. Im using Mbed Studio with tool version shown below:
Target: NUCLEO_L476RG
Toolchain: ARMC6
3rd party library:
When I add this to my project, library appear but got comunicat " Failed to parse the .lib file"
Hello,
I’ve tried to change .lib file to .ar and Mbed Studio library widget don’t see it (which I think is good), but linker can’t link functions correctly. Please see the result below:
I also tried to simply create a library with ARMC6 (.ar file) for a simple .cpp file and got build failure
It looks like the library build failed due to a license problem with armar. The Arm Compiler version shipped with Mbed Studio is only licensed for Mbed Studio use cases, and it looks like this use of armar is blocked. I’ll pass this on to the team to hopefully unblock this in future releases.
Could the problem be incompatibility in the compiler version?
You might make progress by changing the options passed to the compiler when you build your project. In particular, disabling short-enums and short-wchar. See Documentation – Arm Developer.
That’s because the linker is complaining that the size of enums and wchart are different in the library and application code.
Hi, were you able to get the zmod4xxx driver working? Currently, I’m in a state where everything compiles but the Renesas driver seems it does not work properly. Would you be open to share some implementation details?