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)
Mostrar comentarios más antiguos
MathWorks Support Team
el 10 de Nov. de 2011
Editada: MathWorks Support Team
el 4 de Nov. de 2020
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
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:
https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1074?view=vs-2019
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.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!