About compiling c++ code to save data as matlab format in windows

1 次查看(过去 30 天)
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 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by