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

조회 수: 8 (최근 30일)
Ashwin Kumar
Ashwin Kumar 2022년 5월 17일
답변: Yash 2024년 1월 12일
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.

답변 (1개)

Yash
Yash 2024년 1월 12일
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!

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by