This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
HI,
I'm currently using an IAR workbench for MSP430. I have a simple project and trying to link a library file with .a extension. also gave a header file for the same. But when calling the function defined in Library, IAR workbench is throwing an error saying the function call is of undefined reference. The same library I'm able to use/link with gcc. I tried with both C based library build on GCC and external C library call built on Rust.
Can we link any external static library file to IAR workbench to call the external libraries? If so what would be the procedure? I don't find any helpful topics or info regarding this from forums or documents available.
Thanks & Regards,
Pranoop.
Hi Dennis Lehman, Thank you for the link. But i have already gone through it. It doesn't work for what I'm trying. I have been actually experimenting with Rust on a MSP430 eval board. I have been able to work with Rust on the board as required. Now started experimenting in a way to produce a Rust based Library, in which i would declare some Public C functions and link this library to C code. When working on x86 arch, this too worked seamlessly. Then started trials on building same Rust code for MSP430 arch and link to a C based code in IAR for MSP430. But it doesn't work in IAR. I even tried similar experiments on IAR for ARM where no issue was seen. But when it comes to IAR for MSP430, I'm not able to find any valid points which is not letting mw go ahead. Repeatedly it says undefined reference. Couldn't find any document or blogs related to this kind of experiments too.
**Attention** This is a public forum