Error 1 error C1083: Cannot open include file: 'mex.h': No such file or directory
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I've just installed Matlab 2014 and Microsoft Visual Studio Professional 2013. I've already set mex compiler up in my matlab, and tested it with a simple mex-file (arrayProduct.c). But, when I wnat to debug a project in Visual Studio, I get the following Error:
Error 1 error C1083: Cannot open include file: 'mex.h': No such file or directory
Can anybody help me to get rid of this error. pleaseeeee :(
Thanks.
5 comentarios
Sruthi Ayloo
el 10 de Jul. de 2014
Refer to this doc page for steps to debug a mex file with Microsoft Visual Studio.
Respuestas (1)
Johannes Kalliauer
el 6 de Sept. de 2019
Editada: Johannes Kalliauer
el 6 de Sept. de 2019
Following worked for me:
gcc -c -I /opt/MATLAB/R2018b/extern/include myMEXfile.c
if I run mex I get: This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018)
If I run `which mex` i get /usr/local/texlive/2018/bin/x86_64-linux/mex
0 comentarios
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!