Getting error while building mex libIp_xfft​_v9_0_bita​cc_cmodel.​lib

1 view (last 30 days)
As the title suggests, I don't know why I am getting this error. I already have it's .dll and .h files in the library. But while making the mex function it gives this error.

Answers (1)

Yash
Yash on 12 Jan 2024
Hi Ashwin,
When you're trying to compile a MEX file, you typically need to provide the source code file(s) that should be compiled, and possibly additional flags or options as required.
The command you've written appears to be trying to link a pre-compiled library "libIp_xfft_v9_0_bitacc_cmodel.lib" rather than compiling source code. If you have the source code files (usually with extensions like .c, .cpp, .cxx, .f, etc.), you should specify those in the "mex" command.
Given that you have a ".dll" and ".h" files, you might be looking to create a MEX file that interfaces with the DLL. If that's the case, you'll need to provide the source code that includes the header file and calls the functions in the DLL.
If you're not sure what source code to compile or how to write the wrapper, you'll need to consult the documentation for the library you're using or seek out examples of how to interface with it from MATLAB. Here is the link for the same: https://www.mathworks.com/help/matlab/ref/mex.html.
Hope this helps!

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!