About compiling c++ code to save data as matlab format in windows
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi there, I find a code to create *.mat in c++ at https://www.mathworks.com/help/matlab/matlab_external/creating-a-mat-file-in-c.html
I am trying to compile the code in mingw compile under windows 10 (64bit). My matlab is 64 bits. But I got the error about undefined reference to `matOpen'. I think it is because the compiler didn't find the related library. I try to link this library "MatLAB\extern\lib\win64\mingw64\libmat.lib" into my project but it still doesn't work, same error. Any one has idea how to fix it? Thanks.
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Support for MinGW-w64 C/C++ Compiler dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!