- 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
Using c language to call the dll file generated by matlab, there is an error when running
3 ビュー (過去 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:![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1658376/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1658376/image.png)
0 件のコメント
回答 (1 件)
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:
I hope it helps!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!