"No results for clib.libname" error

조회 수: 4 (최근 30일)
Aniket
Aniket 2022년 12월 27일
편집: Aniket 2022년 12월 30일
Hello,
Using Visual Studio 2017 compiler, I have built a compiled library for C++ interface with Matlab, follwing the steps mentioned here, but the command doc clib.libname returns nothing. The .lib, .h and .dll files are in the Downloads folder and the path has been added to the Matlab path. To make sure the path is not an issue, I followed the steps in matrixOperations example provided here, and that works fine. What can this "load the package" command be replaced with?-
At the MATLAB command prompt, display help for the interface. In the example, the clibgen.generateLibraryDefinition command changed the name of the interface to matrixOperations to matrixlib. Type this command to load the package.
doc clib.matrixlib.Mat
I tried few struct names from the C++ header file, but not able to load the dll to Matlab. I would appreciate if anyone can guide me through this last step.
Thanks.
  댓글 수: 1
Aniket
Aniket 2022년 12월 30일
편집: Aniket 2022년 12월 30일
Got it to work.
The header file I was using to create the defnition files and build the compied library had 2 other dependent header files and hence it needed the corresponding compiled libraries in the same folder as the final interface library. I had copied just 1 .dll file and hence was running into the error. After copying ALL the dependent .dll files into the same folder as libNameInterface.dll file, the error went away.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by