I got this weird error when I was trying to compile matlab to C++ using the following command:
'mcc -W lib:cshared -d ' clibdir ' -T link:lib ' mfile
The error I got was:
fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Now, I was using lcc as my compiler ( instead of the Visual Studio one), and I made sure that Windows.h was inside the lcc\include directory (C:\Program Files\MATLAB\R2006a\sys\lcc\include
), and yet, I still got the missing windows.h
error even though I do have it inside the include
folder.
Anyone has any idea why this is so?
Note: I have read similar questions at SO, and found that those problems are related to include folders not set etc. But I do have the include path set, I believe