Why does my MATLAB-compiled library (DLL) fail to initialize when deploying a driver application built with LabWindows/CVI?
Afficher commentaires plus anciens
I have compiled a C shared library (DLL) using the MATLAB Compiler. I am using the DLL in a project I am developing with the National Instruments LabWindows/CVI IDE.
In debug mode, I am able to successfully initialize the MATLAB Compiler Runtime along with my DLL, and use the DLL functions from the application. I then create a Distribution via a .cds file configuration and build my application in Release mode. This creates an installation package for my application.
I then run the installer and install my application on a deployment machine. My MATLAB-compiled DLL is also installed by the package, as it was detected as a file dependency. When I run the deployed application, however, the MATLAB-compiled DLL fails to initialize; that is, the <libname>Initialize() routine returns as failure.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur C Shared Library Integration dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!