Hi:
Can external dynamic link library DLL or static link library Lib be called in S32DS? If so, how should it be configured? Can libraries written in other programming languages (not C language) be called?
Looking forward to your reply
Hi,
What is your target MCU? Basically - .dll is library used on MS Windows OS, it is not possible use it on target device.
You can link functions from static library archive (.a) - doesn't matter in which language is library source code written, but the library needs to be compiled for target architecture.
Jiri
Hi @jiri_kral ,
Thank you for your reply, My target MCU is NXP MPC5744P Development board.
Can only .a files be called in S32DS? Is it possible to call .lib files?
How should the library be compiled for the target architecture? Can you provide some help documentation.
Hi,
create New S32DS Library project for target MCU, add library source code into project and compile it - the very same procedure as an executable project, but the output is library archive:
To be honest, I never try to link .lib file, but technically it should be okay.
Anyway - what is your goal?
Jiri
Hi @jiri_kral ,
I want to call the function in a .lib file provided by a third party, they don’t want to provide the source code.
I have an idea that maybe they can write their source code in s32ds, and then generate .a files for me to call. But they can only provide .lib files and .h files, so I want to try to call their .lib files in s32ds, I want to know if this is feasible.
I see, well, if it is existing compiled library without sources - I'm afraid that there is no way how to use it with target MCU (assume that the library is compiled for x86/x64 architecture). What kind of library it is? It is possible, that there is already existing one (or similar one) for PorwerPC.
By the way, I am using the S32 Design Studio for Power Architecture