MEX-file error: Afx.h not found
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello,
I wrote a MATLAB code that uses mex-file with a computer that uses windows 32bits, and this code worked. Then, I imported this code on an other computer that uses windows 64bits (I'm still building this code with Microsoft Windows SDK 7.1 - C++) and I have the following error: C:\users\documents\matlab\StdAfx.h(19): fatal error C1083: Cannot open include file: 'Afx.h': No such file or directory
I made some researches about my issues, and I think it could be a compatibility error, but I cannot find how to solve it, do you have any idea?
댓글 수: 0
답변 (1개)
Walter Roberson
2015년 11월 19일
See http://stackoverflow.com/questions/4726155/whats-the-use-for-stdafx-h-in-visual-studio for more about stdafx.h
Basically it is an optimization. You should be able to comment out the #include "stdafx.h" and continue compiling.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!