compiling matlab example in C with mingw64
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!