Static linkage of libmat when developing standalone application

조회 수: 8 (최근 30일)
Roger
Roger 2011년 10월 30일
I'm using the C-api for external usage of matlab function. I'm developing this on a machine which has a full installation of Matlab. My application will be used a machine with no matlab installation. I have linked my app with libmat.lib and libmx.lib. When executing the application on the machine without matlab installation it complains "libmat.dll not found". Is there a way around this without having to provide the dll in runtime? I expected the lib to be statically linked with my app.
BR, /Roger

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2011년 10월 31일
libmat.lib is the import library for libmat.dll, so even though you have linked your application against it, you still need to make the corresponding DLL available at runtime. Please add $matlabroot/bin/win32/ or $matlabroot/bin/win64/ to your system path.

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by