"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