Why do I get a fatal error when I try to create a MEX file with debugging information on Windows 7?

2 visualizaciones (últimos 30 días)
I am trying to create a MEX file with debugging information using the MEX command against Microsoft Visual Studio 9.0 on Windows 7 as follows:
mex -g myFile.c -v
However, I get the following error:\n
ERROR: Fatal Error C1074: 'IDB' is illegal extension for PDB file: filename

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 4 de Nov. de 2020
Editada: MathWorks Support Team el 4 de Nov. de 2020
According to MSDN, this happens because the compiler expects the program database files, which contain the debugging symbols, to have PDB extension:
This error has been reported to occur if the Windows 7 machines have Windows XP compatibility mode turned on. To resolve the error, turn off the Windows XP compatibility mode and recompile the MEX file.

Más respuestas (0)

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.

Productos


Versión

R2009a

Community Treasure Hunt

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

Start Hunting!

Translated by