Using c language to call the dll file generated by matlab, there is an error when running

조회 수: 1 (최근 30일)
I use matlab to generate a matlab code dll file (including library files and header files), and then write a c program to call this dll file, but the following error:

답변 (1개)

Venkat Siddarth Reddy
Venkat Siddarth Reddy 2024년 4월 24일
Hi,
It is difficult to understand the underlying issue there, just with the error message.
However, from the given error it seems the C program isn't able to access these methods from the DLL file.
Check out the following to troubleshoot the issue:
  • Verify the DLL is linked properly
  • Generate a EXE/MEX file for the matlab code for which DLL has been created and verify the results.
  • Check whether corresponding header files have been included in the C porgram
I hope it helps!

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by