Why does my MATLAB-compiled library (DLL) fail to initialize when deploying a driver application built with LabWindows/CVI?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu C Shared Library Integration finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!