I have a third-party DLL that prints to stdout and stderr. How do I view this in MATLAB?

2 views (last 30 days)
Hi guys. As the title suggests, I'm trying to use a shared library with MATLAB (r2017a). When called from Qt or Visual Studio, text is printed to the Qt/Visual Studio console with no issues. However, when I try and call it from a mex file, no text is printed to the MATLAB console.
I have access to the source of the library and most calls are done through printf (stdout) and fprintf (stderr). Is there a simple way to redirect these calls to the MATLAB command window? If not, is there a way to redirect them to any kind of console at all?
Thanks, ~Chris

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!