"No results for clib.libname" error

4 visualizzazioni (ultimi 30 giorni)
Aniket
Aniket il 27 Dic 2022
Modificato: Aniket il 30 Dic 2022
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 Commento
Aniket
Aniket il 30 Dic 2022
Modificato: Aniket il 30 Dic 2022
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.

Accedi per commentare.

Risposte (0)

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by