Error 1 error C1083: Cannot open include file: 'mex.h': No such file or directory

조회 수: 8 (최근 30일)
margol
margol 2014년 7월 10일
편집: Johannes Kalliauer 2019년 9월 6일
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
margol
margol 2014년 7월 10일
Thanks alottt!!! This error removed, but now I'm receiving this error:
1>------ Build started: Project: nodule_agf_segmentation_approx, Configuration: Release x64 ------
1> covariance_from_hessian.cpp
1>RC : fatal error RC1110: could not open ..\..\..\..\..\..\Program Files\MATLAB\R2009a\extern\include\mexversion.rc
1>
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Can you help me also to get rid of this?

댓글을 달려면 로그인하십시오.

답변 (1개)

Johannes Kalliauer
Johannes Kalliauer 2019년 9월 6일
편집: Johannes Kalliauer 2019년 9월 6일
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

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by