필터 지우기
필터 지우기

Mex function -Error:Module could not be found-Checked with dependency walker and added the folder to the path but still the same problem

조회 수: 19 (최근 30일)
Hi All,
I have compiled the following code http://www.shivakar.com/programming/creating-matlab-mex-function-for-postgresql-database-connectivity/ using visual C++ compiler to create a mex32 file. When I try to run a MEX-file I created, I receive the following error: ??? Invalid MEX-file 'MEX-file name': The specified module could not be found. where "MEX-file name" is the name of my MEX-file. However, I did not receive any errors when compiling the file.
I used dependecywalker to check the dll depedency and it shows the 'libmx.dll and libmex.dll' missing. Thereafter I have added the path 'C:\Program Files\MATLAB\R2011a\bin\win32' where these dlls reside and also tried to add these dlls directly to the folder of the mex function but I am still getting the same error.
please help me how can I attach these dlls to my mex function.
Regards Sumit
  댓글 수: 2
Kaustubha Govind
Kaustubha Govind 2011년 5월 18일
libmx.dll and libmex.dll should already been added to the system path in the MATLAB environment. To verify, execute the following command at the MATLAB prompt:
!echo %PATH%
You should find that C:\Program Files\MATLAB\R2011a\bin\win32 is already on the path (preferably the first directory on the path).
Hemin He
Hemin He 2022년 7월 18일
I have the same problem too. Have you found the way to solve it?

댓글을 달려면 로그인하십시오.

답변 (1개)

Gautam Vallabha
Gautam Vallabha 2011년 5월 19일
Make sure that the Visual C++ compiler that you are using is one of the supported compilers for R2011a.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by