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

2 visualizzazioni (ultimi 30 giorni)
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

Risposte (0)

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by