Problems Using Matlab in C++
Mostra commenti meno recenti
Hi everyone,
I'm trying to code a C++ program to use MatLab to calculate DFT for my application (without using MEX). I've tried the following means to link to MatLab libraries: - Adding the include path to the header files and #include the proper header files - Linking to the appropriate .lib files. 'libeng.lib' & 'libmx.lib' - Adding the path to the .dll files.
I am using Visual Studio 2010. When I tried running my application, I get a cryptic error message from MatLab that says: "The application was unable to start correctly. 0xc000003b".
I can't seem to find anything at all. Any help is appreciated. Thanks
Risposta accettata
Più risposte (1)
Kaustubha Govind
il 10 Mar 2011
0 voti
As described on the documentation page for Compiling and Linking MATLAB Engine Programs, please also ensure that:
- $matlabroot\bin\win32 or $matlabroot\bin\win64 is on the System Path
- If you have multiple versions of MATLAB, make sure that one you compiled against is first on the system Path
- Start MATLAB as a COM server
1 Commento
Yong Wen
il 10 Mar 2011
Categorie
Scopri di più su C Shared Library Integration in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!