Create Matlab Mat-File Version 7.3 in C++

I have created a visual studio project in order to facilite developing an application that will read/write matlab mat files. It is required to use the HDF5 based version of the mat-files for different customers. To get started I have been following the examples in the matcreat.cpp and matdns.c files to read/write mat-files. These function calls work no problem, but when I try to call the pmat = matOpen(file, "w7.3"); the function produces a fatal error during runtime.
I have been unable to find any discussions regarding this issue.

 Accepted Answer

Mark
Mark on 22 Mar 2016
I figured it out...Visual Studio was finding another install of HDF5 in my path and was linking to this one rather than the one used by Mathworks in the matlab bin directory in the path.

More Answers (0)

Products

Asked:

on 22 Mar 2016

Answered:

on 22 Mar 2016

Community Treasure Hunt

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

Start Hunting!