Azzera filtri
Azzera filtri

compiling matlab example in C with mingw64

1 visualizzazione (ultimi 30 giorni)
Ki
Ki il 22 Feb 2016
Hi all, I am developing a code in c++ to do simulation. I am using mingw64. But I need to output the data in matlab's format (*.mat). I found one example here http://www.mathworks.com/help/matlab/matlab_external/creating-a-mat-file-in-c.html?refresh=true, I download the code, set the searching path for the includes and link all libraries (*.lib) under MatLAB\extern\lib\win64\mingw64. It compiles without any problem. But when I try to run the executable, it compiles missing so many *.dll, I following the info and copy a whole bunch of missing DLL from MatLAB\bin\win64, I succeed in running the compiled executable. But is it any way I could compile the example in one whole static file instead of depending on all those DLL? Thanks.

Risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by