mex linker doesn't recognise fstream when compiling c++ with Visual Studio 2003 or Visual Studio 2008

1 view (last 30 days)
I am trying to compile C++ code to work with an S model in simulink which reads binary data from a file. I am declaring the file as an fstream file with ios options. I have included the Statement #include fstream at the beginning of the file. The MEX compilation doesn't recognise fstream or the ios options. I would be grateful for any assistance in trying to resolve this issue, PS the code works okay in Visual Studio.
  3 Comments

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!