DLL from MinGW has different architecture than the host
이전 댓글 표시
I am using MinGW to create a shared library, so the shared library is created with extension DLL, and I can use it to link programs in Windows.
But when I try to load the library using loadlibrary, I get a message "has different architecture than the host". Thus, the library cannot be loaded.
If my library was crerated using MinGW and that is teh compiler used by MATLAB why it cannot load the library?
답변 (1개)
Etsuo Maeda
2019년 6월 7일
1 개 추천
This is a limitation of loadlibrary function.
loadlibrary does not support libraries generated by the MATLAB Compiler SDK™ product.
HTH
카테고리
도움말 센터 및 File Exchange에서 MATLAB Support for MinGW-w64 C/C++ Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!